Hi,

the attached message was sent to the wrong list 
address.

-- 
--- Begin Message ---
Hi,

Sofia SIP sending incorrect offer SDP in 200 OK when the network resumes the 
call after putting it on hold. The offer SDP contains "a=recvonly" attribute. 
Also it does not advertise the complete list of supported codecs, instead it 
re-uses the initially negotiated codec.  Network uses delayed media scenario on 
resuming the call. The offer send by Sofia SIP in 200 OK looks like the copy of 
the answer SDP sent in the previous INVITE transaction made to put on hold.

 

How can I get the Sofia SIP to make a fresh offer in the re-invite scenario? At 
least have the offer advertise "a=sendrecv" instead of "a=recvonly".

 

Any help in this regard will be very useful.

 

 

The call flow is as shown below

 

Sofia                N/W

INVITE  -->

            <--        100/180/200

ACK     -->

 

<== 2-Way Voice ==>

 

            <--        INVITE   (SDP for On hold)

200       -->

            <--        ACK

 

<== No Voice ==>

 

            <--        INVITE   (w/o SDP)

200       -->

            <--        ACK (w/ SDP)

 

 

 

 

The SIP trace is given below:

 

send 753 bytes to udp/[10.20.30.18]:5060 at 00:31:37.638345:

   ------------------------------------------------------------------------

   INVITE sip:[EMAIL PROTECTED] SIP/2.0

   Via: SIP/2.0/UDP 10.20.30.36;rport;branch=z9hG4bKmDDQDN6rNt0XF

   Max-Forwards: 70

   From: inPhone <sip:[EMAIL PROTECTED]>;tag=B9r0UgUe6Qv0a

   To: <sip:[EMAIL PROTECTED]>

   Call-ID: 58e9947e-2160-1222-b681-31b428cd4c6e

   CSeq: 100060340 INVITE

   Contact: inPhone <sip:[EMAIL PROTECTED];user=phone>

   User-Agent: sofia-sip/1.12.1

   Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE, NOTIFY, 
REFER, UPDATE, REGISTER

   Supported: timer, 100rel

   Min-SE: 120

   Content-Type: application/sdp

   Content-Disposition: session

   Content-Length: 152

   

   v=0

   o=- 3081347780568533424 15046803205496196825 IN IP4 10.20.30.37

   s=-

   t=0 0

   m=audio 10000 RTP/AVP 0 8 4 4 18 99 100 98 101

   c=IN IP4 10.20.30.36

   ------------------------------------------------------------------------

 

 

recv 331 bytes from udp/[10.20.30.18]:5060 at 00:31:38.307247:

   ------------------------------------------------------------------------

   SIP/2.0 100 Trying

   Via: SIP/2.0/UDP 10.20.30.36;rport;branch=z9hG4bKmDDQDN6rNt0XF

   From: inPhone <sip:[EMAIL PROTECTED]>;tag=B9r0UgUe6Qv0a

   To: <sip:[EMAIL PROTECTED]>

   Date: Mon, 31 Mar 2008 11:35:39 GMT

   Call-ID: 58e9947e-2160-1222-b681-31b428cd4c6e

   CSeq: 100060340 INVITE

   Allow-Events: presence

   Content-Length: 0

   

   ------------------------------------------------------------------------   

 

 

recv 595 bytes from udp/[10.20.30.18]:5060 at 00:31:38.311864:

   ------------------------------------------------------------------------

   SIP/2.0 180 Ringing

   Via: SIP/2.0/UDP 10.20.30.36;rport;branch=z9hG4bKmDDQDN6rNt0XF

   From: inPhone <sip:[EMAIL PROTECTED]>;tag=B9r0UgUe6Qv0a

   To: <sip:[EMAIL PROTECTED]>;tag=cfa850bf-a180-4e71-9b81-62d43df3a4f0-25310240

   Date: Mon, 31 Mar 2008 11:35:39 GMT

   Call-ID: 58e9947e-2160-1222-b681-31b428cd4c6e

   CSeq: 100060340 INVITE

   Allow: INVITE, OPTIONS, INFO, BYE, CANCEL, ACK, PRACK, UPDATE, REFER, 
SUBSCRIBE, NOTIFY, PUBLISH

   Allow-Events: presence

   Remote-Party-ID: <sip:[EMAIL PROTECTED]>;party=called;screen=yes;privacy=off

   Contact: <sip:[EMAIL PROTECTED]:5060>

   Content-Length: 0

   

   ------------------------------------------------------------------------

 

 

recv 854 bytes from udp/[10.20.30.18]:5060 at 00:31:39.480334:

   ------------------------------------------------------------------------

   SIP/2.0 200 OK

   Via: SIP/2.0/UDP 10.20.30.36;rport;branch=z9hG4bKmDDQDN6rNt0XF

   From: inPhone <sip:[EMAIL PROTECTED]>;tag=B9r0UgUe6Qv0a

   To: <sip:[EMAIL PROTECTED]>;tag=cfa850bf-a180-4e71-9b81-62d43df3a4f0-25310240

   Date: Mon, 31 Mar 2008 11:35:39 GMT

   Call-ID: 58e9947e-2160-1222-b681-31b428cd4c6e

   CSeq: 100060340 INVITE

   Allow: INVITE, OPTIONS, INFO, BYE, CANCEL, ACK, PRACK, UPDATE, REFER, 
SUBSCRIBE, NOTIFY, PUBLISH

   Allow-Events: presence

   Remote-Party-ID: <sip:[EMAIL PROTECTED]>;party=called;screen=yes;privacy=off

   Contact: <sip:[EMAIL PROTECTED]:5060>

   Supported: replaces

   Session-Expires:  1800;refresher=uas

   Require:  timer

   Content-Type: application/sdp

   Content-Length: 155

   

   v=0

   o=SIP 2000 1 IN IP4 10.20.30.18

   s=SIP Call

   c=IN IP4 10.20.30.130

   t=0 0

   m=audio 17656 RTP/AVP 0

   a=rtpmap:0 PCMU/8000

   a=ptime:20

   ------------------------------------------------------------------------

 

 

send 354 bytes to udp/[10.20.30.18]:5060 at 00:31:39.494284:

   ------------------------------------------------------------------------

   ACK sip:[EMAIL PROTECTED]:5060 SIP/2.0

   Via: SIP/2.0/UDP 10.20.30.36;rport;branch=z9hG4bKDK3HF3yZj3SyH

   Max-Forwards: 70

   From: inPhone <sip:[EMAIL PROTECTED]>;tag=B9r0UgUe6Qv0a

   To: <sip:[EMAIL PROTECTED]>;tag=cfa850bf-a180-4e71-9b81-62d43df3a4f0-25310240

   Call-ID: 58e9947e-2160-1222-b681-31b428cd4c6e

   CSeq: 100060340 ACK

   Content-Length: 0

   

   ------------------------------------------------------------------------

 

  

recv 1000 bytes from udp/[10.20.30.18]:5060 at 00:31:46.402500:

   ------------------------------------------------------------------------

   INVITE sip:[EMAIL PROTECTED]:5060;user=phone SIP/2.0

   Via: SIP/2.0/UDP 10.20.30.18:5060;branch=z9hG4bKdb5eaf096d

   Remote-Party-ID: <sip:[EMAIL PROTECTED]>;party=calling;screen=yes;privacy=off

   From: <sip:[EMAIL 
PROTECTED]>;tag=cfa850bf-a180-4e71-9b81-62d43df3a4f0-25310240

   To: inPhone <sip:[EMAIL PROTECTED]>;tag=B9r0UgUe6Qv0a

   Date: Mon, 31 Mar 2008 11:35:48 GMT

   Call-ID: 58e9947e-2160-1222-b681-31b428cd4c6e

   Supported: timer,replaces

   Min-SE:  1800

   Allow: INVITE, OPTIONS, INFO, BYE, CANCEL, ACK, PRACK, UPDATE, REFER, 
SUBSCRIBE, NOTIFY, PUBLISH

   CSeq: 101 INVITE

   Max-Forwards: 70

   Contact: <sip:[EMAIL PROTECTED]:5060>

   Expires: 180

   Allow-Events: presence

   Session-Expires:  1800;refresher=uac

   Content-Type: application/sdp

   Content-Length: 162

   

   v=0

   o=SIP 2000 2 IN IP4 10.20.30.18

   s=SIP Call

   c=IN IP4 0.0.0.0

   t=0 0

   m=audio 17656 RTP/AVP 0

   a=rtpmap:0 PCMU/8000

   a=ptime:20

   a=inactive

   ------------------------------------------------------------------------

 

 

send 822 bytes to udp/[10.20.30.18]:5060 at 00:31:46.419202:

   ------------------------------------------------------------------------

   SIP/2.0 200 OK

   Via: SIP/2.0/UDP 10.20.30.18:5060;branch=z9hG4bKdb5eaf096d

   From: <sip:[EMAIL 
PROTECTED]>;tag=cfa850bf-a180-4e71-9b81-62d43df3a4f0-25310240

   To: inPhone <sip:[EMAIL PROTECTED]>;tag=B9r0UgUe6Qv0a

   Call-ID: 58e9947e-2160-1222-b681-31b428cd4c6e

   CSeq: 101 INVITE

   Contact: inPhone <sip:[EMAIL PROTECTED];user=phone>

   User-Agent: sofia-sip/1.12.1

   Accept: application/sdp

   Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE, NOTIFY, 
REFER, UPDATE, REGISTER

   Require: timer

   Supported: timer, 100rel

   Session-Expires: 1800;refresher=uac

   Min-SE: 1800

   Content-Type: application/sdp

   Content-Disposition: session

   Content-Length: 141

   

   v=0

   o=- 3081347780568533424 15046803205496196825 IN IP4 10.20.30.37

   s=-

   t=0 0

   m=audio 10000 RTP/AVP 0

   c=IN IP4 10.20.30.36

   a=recvonly

   ------------------------------------------------------------------------

 

 

recv 416 bytes from udp/[10.20.30.18]:5060 at 00:31:47.095094:

   ------------------------------------------------------------------------

   ACK sip:[EMAIL PROTECTED]:5060;user=phone SIP/2.0

   Via: SIP/2.0/UDP 10.20.30.18:5060;branch=z9hG4bKdc608b08a0

   From: <sip:[EMAIL 
PROTECTED]>;tag=cfa850bf-a180-4e71-9b81-62d43df3a4f0-25310240

   To: inPhone <sip:[EMAIL PROTECTED]>;tag=B9r0UgUe6Qv0a

   Date: Mon, 31 Mar 2008 11:35:48 GMT

   Call-ID: 58e9947e-2160-1222-b681-31b428cd4c6e

   Max-Forwards: 70

   CSeq: 101 ACK

   Allow-Events: presence

   Content-Length: 0

   

   ------------------------------------------------------------------------

 

 

recv 804 bytes from udp/[10.20.30.18]:5060 at 00:31:47.773223:

   ------------------------------------------------------------------------

   INVITE sip:[EMAIL PROTECTED]:5060;user=phone SIP/2.0

   Via: SIP/2.0/UDP 10.20.30.18:5060;branch=z9hG4bKddd34486c

   Remote-Party-ID: <sip:[EMAIL PROTECTED]>;party=calling;screen=yes;privacy=off

   From: <sip:[EMAIL 
PROTECTED]>;tag=cfa850bf-a180-4e71-9b81-62d43df3a4f0-25310240

   To: inPhone <sip:[EMAIL PROTECTED]>;tag=B9r0UgUe6Qv0a

   Date: Mon, 31 Mar 2008 11:35:48 GMT

   Call-ID: 58e9947e-2160-1222-b681-31b428cd4c6e

   Supported: timer,replaces

   Min-SE:  1800

   Allow: INVITE, OPTIONS, INFO, BYE, CANCEL, ACK, PRACK, UPDATE, REFER, 
SUBSCRIBE, NOTIFY, PUBLISH

   CSeq: 102 INVITE

   Max-Forwards: 70

   Contact: <sip:[EMAIL PROTECTED]:5060>

   Expires: 180

   Allow-Events: presence

   Session-Expires:  1800;refresher=uac

   Content-Length: 0

   

   ------------------------------------------------------------------------

 

 

send 821 bytes to udp/[10.20.30.18]:5060 at 00:31:48.449168:

   ------------------------------------------------------------------------

   SIP/2.0 200 OK

   Via: SIP/2.0/UDP 10.20.30.18:5060;branch=z9hG4bKddd34486c

   From: <sip:[EMAIL 
PROTECTED]>;tag=cfa850bf-a180-4e71-9b81-62d43df3a4f0-25310240

   To: inPhone <sip:[EMAIL PROTECTED]>;tag=B9r0UgUe6Qv0a

   Call-ID: 58e9947e-2160-1222-b681-31b428cd4c6e

   CSeq: 102 INVITE

   Contact: inPhone <sip:[EMAIL PROTECTED];user=phone>

   User-Agent: sofia-sip/1.12.1

   Accept: application/sdp

   Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE, NOTIFY, 
REFER, UPDATE, REGISTER

   Require: timer

   Supported: timer, 100rel

   Session-Expires: 1800;refresher=uac

   Min-SE: 1800

   Content-Type: application/sdp

   Content-Disposition: session

   Content-Length: 141

   

   v=0

   o=- 3081347780568533424 15046803205496196825 IN IP4 10.20.30.37

   s=-

   t=0 0

   m=audio 10000 RTP/AVP 0

   c=IN IP4 10.20.30.36

   a=recvonly

   ------------------------------------------------------------------------

   

 

recv 614 bytes from udp/[10.20.30.18]:5060 at 00:31:49.802088:

   ------------------------------------------------------------------------

   ACK sip:[EMAIL PROTECTED]:5060;user=phone SIP/2.0

   Via: SIP/2.0/UDP 10.20.30.18:5060;branch=z9hG4bKde3ac27db9

   From: <sip:[EMAIL 
PROTECTED]>;tag=cfa850bf-a180-4e71-9b81-62d43df3a4f0-25310240

   To: inPhone <sip:[EMAIL PROTECTED]>;tag=B9r0UgUe6Qv0a

   Date: Mon, 31 Mar 2008 11:35:50 GMT

   Call-ID: 58e9947e-2160-1222-b681-31b428cd4c6e

   Max-Forwards: 70

   CSeq: 102 ACK

   Allow-Events: presence

   Content-Type: application/sdp

   Content-Length: 165

   

   v=0

   o=SIP 2000 3 IN IP4 10.20.30.18

   s=SIP Call

   c=IN IP4 10.20.30.18

   t=0 0

   m=audio 4000 RTP/AVP 0

   a=rtpmap:0 PCMU/8000

   a=ptime:20

   a=sendonly

   ------------------------------------------------------------------------

 

--

Subbu

 

**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely 
for the use of the addressee(s). If you are not the intended recipient, please 
notify the sender by e-mail and delete the original message. Further, you are 
not to copy, disclose, or distribute this e-mail or its contents to any other 
person and any such actions are unlawful. This e-mail may contain viruses. 
Infosys has taken every reasonable precaution to minimize this risk, but is not 
liable for any damage you may sustain as a result of any virus in this e-mail. 
You should carry out your own virus checks before opening the e-mail or 
attachment. Infosys reserves the right to monitor and review the content of all 
messages sent to or from this e-mail address. Messages sent to or from this 
e-mail address may be stored on the Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***
        

--- End Message ---
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel

Reply via email to