Hello,

I'm trying to understand what happens with the ports and why sipp uses ports
different by the ones that are specified in the Via headers.

How can I force sipp to use the ports I want?

 

I have a sipp server scenario that sends a Ringing or  200 OK message, but
it sends it on the port it actually received it from, and the port is
different by the one specified in the headers.

Looking at the logs file it seems that the port used is 5060, but traces in
wireshark shows that port 51597 is used instead.

Example:

SIPp Logs:

UDP message received [1458] bytes :

INVITE sip:[EMAIL PROTECTED]:5061 SIP/2.0^M

Via: SIP/2.0/UDP xxx:5060 ..

 

Wireshark:

22:30:48.538211 xxx:51597 xxx:5061 Request: INVITE sip:[EMAIL PROTECTED]:5061

 

So, when SIPp server scenario sends a message back, it looks like it sends
it back to port 5060, but actually it uses 51597.

 

SIPp log:

UDP message sent to 0.0.0.0:

SIP/2.0 180 Ringing^M

Via: SIP/2.0/UDP xxx:5060

 

Wireshark: 

22:30:48.538862 xxx:5061 xxx: 51597 Status: 180 Ringing

 

And the proxy on port 5060 never receives these messages and it goes in
timeout.

 

I'd like to understand why this is happening.

Is the rrs="true" in the recv scenario making a difference? (I actually
never used routes in the scenario. I guess I may as well remove it).

If I use the command line 

-rsa host:port

Would take force sipp to use the port specified in the command line?

BTW, is SIPp using the port in Via header or what? Where does it gets the
port to answer to from?

 

And since later in the scenario I need to send BYE to another proxy on port
5080, if I put -rsa localHost:5060 would that affect the BYE message too?

 

What can I do to specify the ports to use in different part of the
scenarios?

 

My command line right now is: 

   ./sipp -sf uasl.xml -trace_msg  -p 5061

 

 

The scenario is:

 

<recv request="INVITE" rrs="true" crlf="true">

 

<send>

    <![CDATA[

 

      SIP/2.0 180 Ringing

      Via:[$1]    //this just get the Via in two different lines instead of
1

      Via:[$2]

      [last_From:]

      [last_To:];tag=[call_number]

      [last_Call-ID:]

      [last_CSeq:]

      Content-Length: 0

 

    ]]>

  </send>

 

 

 

Thanks!

 

  Anna 

 

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Sipp-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sipp-users

Reply via email to