Hi all,

I am using SIPp3.1.

When I use any variable inside the send tag of invite to store the
[remote_ip] value then it shows error message - Variable $1 is referenced 1
times!

Does anyone know about this? Can't I use any variable name instead of using
number as variable name?

Please help me to resolve this issue


Please find attached the scenario file.


Thanks and Regards
Sumeet

 

 

 

<send start_txn="invite">
<![CDATA[
INVITE sip:+911;[EMAIL PROTECTED];user=phone SIP/2.0
CSeq: [cseq] INVITE
i:[call_id]
t: "911"<sip:[EMAIL PROTECTED]:[remote_port]>
From:<sip:[EMAIL PROTECTED]>;tag=[call_number]
Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
Max-Forwards:65
Min-Expires:12
Session-Expires:360;refresher=uac
Contact: <sip:[EMAIL PROTECTED]:[local_port];transport=udp>
Route: <sip:[EMAIL PROTECTED]:[remote_port];lr>,<sip:[EMAIL 
PROTECTED]:[terminating_port];lr>
Record-Route: <sip:[EMAIL PROTECTED]:[local_port];lr>
P-Asserted-Identity:<sip:[EMAIL PROTECTED]>
P-Charging-Vector:icid-value="[pid];orig-ioi=[remote_ip]"
P-Charging-Function-Addresses:ccf="ccf1.[remote_ip]"
P-Access-Network-Info: IEEE-802.16e;MAC-ID="DDDD8BE385CF"
Supported: 100rel,timer
Allow: INVITE, ACK, CANCEL, BYE, PRACK, OPTIONS
Content-Length: [len]
Content-Type:application/SDP

v=0
o=user1 53655765 2353687637 IN IP[local_ip_type] [local_ip]
s=mysession session
p=+46 8 52018010
c=IN IP[media_ip_type] [media_ip]
t=0 0
m=audio [media_port] RTP/AVP 99
a=rtpmap:99 EVRC/4000


]]>
<action>
<assignstr assign_to="1" value="[remote_ip]" />
</action>
</send>
<recv response="100" optional="false" timeout="10000" response_txn="invite">
<action>
<ereg regexp="6666278301" search_in="hdr" header="From:" check_it="true" 
assign_to="6"/>
</action>
</recv>

<recv response="183" optional="false" timeout="10000" response_txn="invite">
<action>
<ereg regexp=" .*;" search_in="hdr" header="Via:" check_it="false" 
assign_to="2"/>
<ereg regexp=".*" search_in="hdr" header="RSeq:" check_it="true" assign_to="4" 
/>
<ereg regexp=".*" search_in="hdr" header="CSeq:" check_it="true" assign_to="5" 
/>
</action>
</recv>
<send start_txn="prack">
<![CDATA[

      PRACK [remote_ip]:[remote_port];transport=udp SIP/2.0
      Via: [$2]branch=[branch]
      [last_From:]
      [last_To:]
      [last_Call-ID:]
      CSeq: [cseq] PRACK
      Allow: INVITE, ACK, CANCEL, BYE, PRACK
      Max-Forwards: 70
      Contact: <sip:[EMAIL PROTECTED]:[local_port];transport=udp>
      P-Access-Network-Info: IEEE-802.16e;MAC-ID="DDDD8BE385CF"
      Route: <sip:[EMAIL PROTECTED]:[remote_port];lr>,<sip:[EMAIL 
PROTECTED]:[terminating_port];lr>
      RAck:[$4][$5]
      Content-Length: 0

  ]]>
</send>

<recv response="200" optional="false" timeout="10000" response_txn="prack"/>
<recv response="200" optional="false" timeout="10000" response_txn="invite"/>
<send>
<![CDATA[

      ACK [remote_ip]:[remote_port] SIP/2.0
      Via: [$2]branch=[branch]
      [last_From:]
      [last_To:]
      [last_Call-ID:]
      CSeq: [cseq-1] ACK
      Route: <sip:[EMAIL PROTECTED]:4444;lr>,<sip:[EMAIL PROTECTED]:4443;lr>
      Contact: <sip:[EMAIL PROTECTED]:[local_port];transport=udp>
      Content-Length: 0

  ]]>
</send>
<pause milliseconds="5000"/>
<send start_txn="bye">
<![CDATA[

      BYE [remote_ip]:[remote_port] SIP/2.0
      Via: [$2]branch=[branch]
      [last_From:]
      [last_To:]
      [last_Call-ID:]
      CSeq: [cseq] BYE
      Contact: <sip:[EMAIL PROTECTED]:[local_port];transport=udp>
      Content-Length: 0

  ]]>
</send>

<recv response="200" optional="false" timeout="10000" response_txn="bye"/>
</scenario>

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Sipp-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sipp-users

Reply via email to