Hi,
CANCEL message for INVITE request was not having proper "from tag".Changes
are made to keep the same "from tag" in the CANCEL message as in the INVITE
request.
Without this change , INVITE mesage in the server will never get cancelled;
since the " from tag" differs in CANCEL & INVITE request.
Chage is made in call.cpp : abortCall()
the diff output:
--- c:\sipp1\sipp\trunk\call.cpp 2007-03-30 15:06:32.640625000 +0530
+++ c:\sipp1\sipp\trunk\call.cpp_new 2007-03-30 11:00:08.531250000 +0530
@@ -1761,7 +1761,9 @@
/* Send a CANCEL */
strcpy(L_param, "CANCEL sip:[EMAIL PROTECTED]:[remote_port] SIP/2.0\n");
sprintf(L_param, "%s%s", L_param, "Via: SIP/2.0/[transport]
[local_ip]:[local_port];branch=[branch]\n");
- sprintf(L_param, "%s%s", L_param, "From: sipp
<sip:[EMAIL PROTECTED]:[local_port]>;tag=[call_number]\n");
+ char lastTag[30];
+ getKeywordParam(last_send_msg, "tag", lastTag);
+ sprintf(L_param, "%s%s%s\n", L_param, "From: sipp
<sip:[EMAIL PROTECTED]:[local_port]>;tag=",lastTag);
sprintf(L_param, "%s%s", L_param, "To: sut
<sip:[EMAIL PROTECTED]:[remote_port]>[peer_tag_param]\n");
sprintf(L_param, "%s%s", L_param, "Call-ID: [call_id]\n");
sprintf(L_param, "%sCSeq: 1 CANCEL\n", L_param);
Regards
Anandadip
--- c:\sipp1\sipp\trunk\call.cpp 2007-03-30 15:06:32.640625000 +0530
+++ c:\sipp1\sipp\trunk\call.cpp_new 2007-03-30 11:00:08.531250000 +0530
@@ -1761,7 +1761,9 @@
/* Send a CANCEL */
strcpy(L_param, "CANCEL sip:[EMAIL PROTECTED]:[remote_port]
SIP/2.0\n");
sprintf(L_param, "%s%s", L_param, "Via: SIP/2.0/[transport]
[local_ip]:[local_port];branch=[branch]\n");
- sprintf(L_param, "%s%s", L_param, "From: sipp <sip:[EMAIL
PROTECTED]:[local_port]>;tag=[call_number]\n");
+ char lastTag[30];
+ getKeywordParam(last_send_msg, "tag", lastTag);
+ sprintf(L_param, "%s%s%s\n", L_param, "From: sipp <sip:[EMAIL
PROTECTED]:[local_port]>;tag=",lastTag);
sprintf(L_param, "%s%s", L_param, "To: sut <sip:[EMAIL
PROTECTED]:[remote_port]>[peer_tag_param]\n");
sprintf(L_param, "%s%s", L_param, "Call-ID: [call_id]\n");
sprintf(L_param, "%sCSeq: 1 CANCEL\n", L_param);
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Sipp-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sipp-users