Hi,

I'm trying to simulate a SIP call with SIPp, with two instances and a
SIP proxy/registrar between them. 

And I have a problem I don't understand.

The beginning of the call is ok, the callee receives the messages (the
INVITE), and responds with 180 and 200.

After that, the caller sends an ACK and, finally, a BYE. These two
messages are never forwarded to the callee, and I have a response 481
Call/Transaction does not exist for the BYE, sent by the SIP proxy.

I don't know if the error comes from my use of SIPp, or from an
missing/wrong header in a message (Route maybe?), ... 
Or is it the way I try to extract the info from the contact header in
the 2xx response to put in the Request-URI for the ACK and the BYE. I
don't think so, requests seem correct but...

Here are the two files:

FYI, the registration has been done for both the caller and the callee.


CALLER:

<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE scenario SYSTEM "sipp.dtd">

<scenario name="caller">

  <send retrans="500">
    <![CDATA[

      INVITE sip:cal...@cym.com SIP/2.0
      Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
      From: caller <sip:cal...@cym.com:[local_port]>;tag=[call_number]
      To: callee <sip:cal...@cym.com:[remote_port]>
      Call-ID: [call_id]
      CSeq: 1 INVITE
      Route: <sip:[remote_ip]:[remote_port];lr>
      Contact: sip:cal...@[local_ip]:[local_port]
      Max-Forwards: 70
      Subject: Performance Test
      Content-Type: application/sdp
      Content-Length: [len]

      v=0
      o=user1 53655765 2353687637 IN IP[local_ip_type] [local_ip]
      s=-
      c=IN IP[media_ip_type] [media_ip]
      t=0 0
      m=audio [media_port] RTP/AVP 0
      a=rtpmap:0 PCMU/8000

    ]]>
  </send>

  <recv response="100" optional="true">
</recv>

  <recv response="180" optional="true">
  </recv>


  <recv response="200">
   <action>
     <ereg regexp="sip:[^&gt;]+" search_in="hdr" header="Contact:"
check_it="true" assign_to="1"/>
  </action>
  </recv>

  <send>
    <![CDATA[

      ACK [$1] SIP/2.0
      Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
      [last_From:]
      [last_To:]
      Call-ID: [call_id]
      CSeq: 1 ACK
      Contact: sip:cal...@[local_ip]:[local_port]
      Max-Forwards: 70
      Subject: Performance Test
      Content-Length: 0

    ]]>
  </send>

  <send retrans="500">
    <![CDATA[

      BYE [$1] SIP/2.0
      Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
      Call-ID: [call_id]
      [last_From:]
      [last_To:]
      CSeq: 2 BYE
      Contact: sip:cal...@[local_ip]:[local_port]
      Max-Forwards: 70
      Subject: Performance Test
      Content-Length: 0

    ]]>
  </send>

  <recv response="200" crlf="true">
  </recv>

</scenario>

____________________________________________________________________________________________________________

CALLEE:

<?xml version="1.0" encoding="ISO-8859-1" ?>

<scenario name="callee">

  <recv request="INVITE" crlf="true">
  </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:]
      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:cal...@[local_ip]:[local_port]>
      Content-Type: application/sdp
      Content-Length: [len]

      v=0
      o=user1 53655765 2353687637 IN IP4 127.0.0.1
      s=-
      t=0 0
      c=IN IP4 [media_ip]
      m=audio [media_port] RTP/AVP 0
      a=rtpmap:0 PCMU/8000

    ]]>
  </send>

  <recv request="ACK">
  </recv>

  <recv request="BYE">
  </recv>

  <send>
    <![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-Length: 0

    ]]>
  </send>

</scenario>



Does someone have an idea? Where is my mistake?

Regards

Antoine

Attachment: caller.xml
Description: XML document

Attachment: callee.xml
Description: XML document

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Sipp-users mailing list
Sipp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sipp-users

Reply via email to