Paul, >From a quick look at the code, it seems that the peer tag is only picked up out of responses and not replies, and in your scenario there are no received replies before you use the peer_tag_param.
You should take a look at this bit of code: /* It is a response: update peer_tag */ ptr = get_peer_tag(msg); if (ptr) { if(strlen(ptr) > (MAX_HEADER_LEN - 1)) { ERROR("Peer tag too long. Change MAX_HEADER_LEN and recompile sipp"); } if(peer_tag) { free(peer_tag); } peer_tag = strdup(ptr); if (!peer_tag) { ERROR("Out of memory allocating peer tag."); } } In call.cpp and possibly move it outside of the /* Is it a response ? */ statement. I hope these hints are helpful. Charles "Paul Antinori (pantinor)" <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 03/06/2007 10:25 AM To <sipp-users@lists.sourceforge.net> cc Subject [Sipp-users] reinvite with UAS and peer_tag_param issue Hi, I am sending a re-invite with a UAS script in SIPp and am having trouble with the [peer_tag_param] not getting populated on the To header. Is there anything I am missing? See my script below. Thanks for any help, Paul <recv request="INVITE"></recv> <send> <![CDATA[ SIP/2.0 180 Ringing [last_Via:] [last_From:] [last_To:];tag=[call_number] [last_Call-ID:] [last_CSeq:] Contact: <sip:[local_ip]:[local_port];transport=[transport]> Content-Length: 0 ]]> </send> <send retrans="500"> <![CDATA[ SIP/2.0 200 OK [last_Via:] [last_From:] [last_To:];tag=[call_number] [last_Call-ID:] [last_CSeq:] Contact: <sip:[local_ip]:[local_port];transport=[transport]> Content-Type: application/sdp Content-Length: [len] ]]> </send> <recv request="ACK" rtd="true" crlf="true"></recv> <!-- some 10 second talk time before putting caller on hold --> <pause milliseconds="10000" crlf="true"/> <send retrans="500"> <![CDATA[ INVITE sip:[EMAIL PROTECTED]:[remote_port] SIP/2.0 Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch] From: <sip:[EMAIL PROTECTED]:[local_port];transport=[transport]>;tag=[call_number] To: <sip:[EMAIL PROTECTED]:[remote_port]>[peer_tag_param] [last_Call-ID:] CSeq: 101 INVITE Remote-Party-ID: <sip:[EMAIL PROTECTED]>;party=calling;screen=no;privacy=off Contact: <sip:[local_ip]:[local_port];transport=[transport]> Paul Antinori Software Engineering CCBU - Voice Technology Group [EMAIL PROTECTED] Phone :978-936-1798 Cisco Systems, Inc. 500 Beaver Brook Road Boxborough, MA 01719 www.cisco.com ------------------------------------------------------------------------- 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 Sipp-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sipp-users
gif2QktNwQqrk.gif
Description: GIF image
gifO2F0FdKI9s.gif
Description: GIF image
------------------------------------------------------------------------- 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 Sipp-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sipp-users