I have  a simple presence test setup as below:

Sipp --> opensips_dispatcher --> opensips_presence_server

The SUBSCRIBE request and its 200 response pass thru dispatcher while the
NOTIFY goes directly to the Sipp.

The problem is, the 200 OK response to NOTIFY is sent to dispatcher instead
of the presence server, the dispatcher rejects the response as it does not
finds any transaction for it.

I understand that the reponse is sent to the via header address and the via
on NOTIFY msg is of the presence server then  why the response is sent
to dispatcher?

Below is the command I used:

*./sipp -sf ../SubscribeNotify.xml -m 1 -i*

and the used scenario file:

<?xml version="1.0" encoding="ISO-8859-1" ?>
<scenario name="subscribe">
  <send start_rtd="1">
      SUBSCRIBE sip:[service]-[call_number]@opensipstest.org SIP/2.0
      Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch];rport
      Max-Forwards: 20
      From: <sip:[service]@opensipstest.org>;tag=[call_number]
      To: <sip:[service]-[call_number]@opensipstest.org:[remote_port]>
      Call-ID: [call_id]
      CSeq: 1 SUBSCRIBE
      Contact: <sip:[service]@[local_ip]:[local_port];transport=[transport]>
      Expires: 3600
      Accept: multipart/related, application/rlmi+xml, application/pidf+xml
      Event: presence
      Content-Length: 0
      User-Agent: Sipp v1.1-TLS, version 20061124
      Supporte: path

  <recv response="200">

  <recv request="NOTIFY" rtd="1">

  <send crlf="true">
      SIP/2.0 200 OK
      User-Agent: Sipp v1.1-TLS, version 20061124
      Content-Length: 0
<ResponseTimeRepartition value="10, 20, 30, 40, 50, 100, 200"/>

If required I can provide pcap too.
Please help me understand the issue.

Thanks & Regards,
Suryaveer Singh Chauhan
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
Sipp-users mailing list

Reply via email to