]> git.pld-linux.org Git - packages/sipp.git/blame - sipp-OPTIONS_is_ping.patch
- distfiles friendly source0 url
[packages/sipp.git] / sipp-OPTIONS_is_ping.patch
CommitLineData
3807eea2
JK
1diff -dur -x '*~' sipp-3.3.orig/call.cpp sipp-3.3/call.cpp
2--- sipp-3.3.orig/call.cpp 2013-06-14 15:24:31.000000000 +0200
3+++ sipp-3.3/call.cpp 2013-06-14 15:37:04.000000000 +0200
4@@ -3963,7 +3963,7 @@
5 return E_AM_UNEXP_BYE;
6 } else if (strcmp(P_recv, "CANCEL") == 0) {
7 return E_AM_UNEXP_CANCEL;
8- } else if (strcmp(P_recv, "PING") == 0) {
9+ } else if (strcmp(P_recv, "PING") == 0 || strcmp(P_recv, "OPTIONS") == 0) {
10 return E_AM_PING;
11 } else if (((strcmp(P_recv, "INFO") == 0) || (strcmp(P_recv, "NOTIFY") == 0) || (strcmp(P_recv, "UPDATE") == 0))
12 && (auto_answer == true)){
13Only in sipp-3.3.orig: call.cpp.orig
14diff -dur -x '*~' sipp-3.3.orig/sipp.cpp sipp-3.3/sipp.cpp
15--- sipp-3.3.orig/sipp.cpp 2013-02-07 00:11:47.000000000 +0100
16+++ sipp-3.3/sipp.cpp 2013-06-14 15:38:04.000000000 +0200
17@@ -3410,6 +3410,7 @@
18 } else if (auto_answer &&
19 ((strstr(msg, "NOTIFY") == msg) ||
20 (strstr(msg, "INFO") == msg) ||
21+ (strstr(msg, "OPTIONS")== msg) ||
22 (strstr(msg, "UPDATE") == msg))) {
23 // If auto answer mode, try to answer the incoming message
24 // with automaticResponseMode
This page took 0.050748 seconds and 4 git commands to generate.