Hi Folks, I am having issues inserting the correct to-tag in a ReInvite of a Call, where I at first received a Invite. SIPp is talking to a Softswitch, the scenario is the following (I simplified it a little):
1. sipp receives a INVITE (msg_1), 2. responds with a 200 OK (msg_3) and 3. recveives a ACK(msg_3). The Call is established. 4. Now, I want sipp to send a ReINVITE (to put the opposite side on hold). Problem here: How do I get the correct to-tag? UAS/ UAC changes in this situation, so [last_to] doesn't work. At first, from the examples I thought it might be [peer_tag_param]. But using this, the param doesn't get populated. Google brought me this from 2007: https://www.mail-archive.com/[email protected]/msg01007.html I really tried, like suggested to take the assignment out of the if()-Statement. But the result is, that the wrong tag is inserted. SIPp takes the tag of the to-header of the first transaction. I also tried something else: The tag I need is from the ACK(msg_3)-from-header and has to be inserted into the to:-header of the ReInvite. So I tried the following: <recv request="ACK" rrs="true"> <action> <ereg regexp="tag=[-0-9A-Za-z]*" searchin="hdr" header="From:" assign_to="1" /> </action> </recv> This actually works. The tag is inserted correctly and the softswitch responds. Problem: SIPp does not recognise the answerpacket correctly and throws ICMP messages, the test fails. Any suggestions? Is this even possible? thanks in advance, moritz -- Moritz Graf G-FIT Gesellschaft für innovative Telekommunikationsdienste mbH & Co. KG, Kommanditgesellschaft, Sitz Regensburg, Registergericht Regensburg, HRA 7626; Geschäftsführer: Dipl.Inf. (FH) Alfred Rauscher
<?xml version="1.0" encoding="ISO-8859-1" ?>
<scenario name="ClientB_listen">
<recv request="INVITE" timeout="100000">
</recv>
<send>
<![CDATA[
SIP/2.0 180 Ringing
[last_Via:]
[last_From:]
[last_To:];tag=[call_number]
[last_Call-ID:]
[last_CSeq:]
[last_Record-Route:]
User-Agent: fiojgsdkldgjkggkjd
Contact: <sip:[local_ip]:[local_port];transport=udp>
Content-Length: 0
]]>
</send>
<pause milliseconds="500"/>
<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=udp>
User-Agent: fiojgsdkldgjkggkjd
Content-Type: application/sdp
Content-Length: [len-2]
v=0
o=[field0 line=1] 0 0 IN IP[local_ip_type] [local_ip]
s=-
c=IN IP[local_ip_type] [local_ip]
t=0 0
m=audio [auto_media_port] RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
]]>
<action>
<exec rtp_stream="sound.alaw" />
</action>
</send>
<recv request="ACK" rrs="true">
</recv>
<pause milliseconds="2000"/>
<send retrans="2000">
<![CDATA[
INVITE sip:[field=0 line=2]@sip.voip.mycompany.de SIP/2.0
[last_Via:]
From: <sip:[field=0 line=1]@[local_ip]:[local_port]>;tag=[call_number]
To: <sip:[field=0 line=2]@[remote_ip]:[remote_port]>[peer_tag_param]
[last_Call-ID:]
CSeq: [cseq] INVITE
Contact: <sip:[local_ip]:[local_port];transport=udp>
User-Agent: fiojgsdkldgjkggkjd
Content-Type: application/sdp
Content-Length: [len-2]
v=0
o=[field0 line=1] 0 1 IN IP[local_ip_type] [local_ip]
s=-
c=IN IP[local_ip_type] [local_ip]
t=0 0
m=audio [auto_media_port] RTP/AVP 8
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-11,16
a=sendonly
]]>
</send>
<recv response="100" optional="true"></recv>
<recv response="200"
optional="false">
</recv>
<pause milliseconds="5000"/>
<send retrans="2000">
<![CDATA[
INVITE sip:[field=0 line=2]@sip.voip.mycompany.de SIP/2.0
[last_Via:]
From: <sip:[field=0 line=1]@[local_ip]:[local_port]>;tag=[call_number]
To: <sip:[field=0 line=2]@[remote_ip]:[remote_port]>[peer_tag_param]
[last_Call-ID:]
CSeq: [cseq] INVITE
Contact: <sip:[local_ip]:[local_port];transport=udp>
User-Agent: fiojgsdkldgjkggkjd
Content-Type: application/sdp
Content-Length: [len-2]
v=0
o=[field0 line=1] 0 1 IN IP[local_ip_type] [local_ip]
s=-
c=IN IP[local_ip_type] [local_ip]
t=0 0
m=audio [auto_media_port] RTP/AVP 8
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-11,16
a=sendrecv
]]>
</send>
<recv response="100" optional="true"></recv>
<recv response="200"
optional="false">
</recv>
<pause milliseconds="5000"/>
<recv request="BYE">
</recv>
<send>
<![CDATA[
SIP/2.0 200 OK
[last_Via:]
[last_From:]
[last_To:]
[last_Call-ID:]
[last_CSeq:]
[last_Record-Route:]
Contact: <sip:[local_ip]:[local_port];transport=udp>
Content-Type: application/sdp
Content-Length: 0
]]>
</send>
</scenario>
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------------ Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________ Sipp-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sipp-users
