SDP negotiation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Peter Kayser wrote:
> HiBenny,
> 
> we got a problem with the SDP negotiation. 
> The logfile shows a call szenario where we get a first contact from an announcement server. After being forwarded we get a second SDP response from the real destination. Unfortunately this SDP is ignored! So the media could not flow.
> How can this be handled by pjsip?

I think the problem is caused by forking, and forking currently is 
not handled by pjsua-lib. So currently there's no solution for this, 
unfortunately.

cheers,
  -benny

> Thanks in advance
> Regards
> Peter
> 
> 
> ------------------------------------------------------------------------
> 
> INVITE sip:<callee>@sip.voip.de SIP/2.0
> Via: SIP/2.0/UDP 192.168.17.1:5413;rport;branch=z9hG4bKPj5712caef85b3412198f702d6a28280cd
> Max-Forwards: 70
> From: sip:<caller>@sip.voip.de;tag=e2dab5c6fcee4aaba9128b241a21a7dd
> To: sip:<callee>@sip.voip.de
> Contact: <sip:<caller>@192.168.17.1:5413>
> Call-ID: ec650a371cef402885b66f6c23ae874f
> CSeq: 11324 INVITE
> Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, SUBSCRIBE, NOTIFY, PUBLISH, REFER, MESSAGE, OPTIONS
> Supported: replaces, 100rel, norefersub
> User-Agent: PJSUA v0.8.0-trunk/win32
> Proxy-Authorization: Digest username="<caller>", realm="sip.voip.de", nonce="476b996b0196db952668c7d46acb24a657ce8cee", uri="sip:<callee>@sip.voip.de", response="60c022b97d00ad45a3e7584f218423cb"
> Content-Type: application/sdp
> Content-Length:   435
> 
> v=0
> o=- 3407226062 3407226062 IN IP4 10.153.141.2
> s=pjmedia
> c=IN IP4 10.153.141.2
> t=0 0
> a=X-nat:0
> m=audio 4000 RTP/AVP 117 103 102 104 3 0 8 101
> a=rtcp:4001 IN IP4 10.153.141.2
> a=rtpmap:117 iLBC/8000
> a=fmtp:117 mode=20
> a=rtpmap:103 speex/16000
> a=rtpmap:102 speex/8000
> a=rtpmap:104 speex/32000
> a=rtpmap:3 GSM/8000
> a=rtpmap:0 PCMU/8000
> a=rtpmap:8 PCMA/8000
> a=sendrecv
> a=rtpmap:101 telephone-event/8000
> a=fmtp:101 0-15
> 
> --end msg--
> SIP/2.0 183 Session Progress
> Via: SIP/2.0/UDP 192.168.17.1:5413;rport=5413;branch=z9hG4bKPj5712caef85b3412198f702d6a28280cd
> From: sip:<caller>@sip.voip.de;tag=e2dab5c6fcee4aaba9128b241a21a7dd
> To: sip:<callee>@sip.voip.de;tag=as1b640121
> Call-ID: ec650a371cef402885b66f6c23ae874f
> CSeq: 11324 INVITE
> User-Agent: Mediaserver
> Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
> Supported: replaces
> Contact: <sip:<Mediaserver>@10.153.141.5:5060>
> Content-Type: application/sdp
> Content-Length: 259
> 
> v=0
> o=root 31491 31491 IN IP4 10.153.141.5
> s=session
> c=IN IP4 10.206.25.114
> t=0 0
> m=audio 45810 RTP/AVP 8 101
> a=rtpmap:8 PCMA/8000
> a=rtpmap:101 telephone-event/8000
> a=fmtp:101 0-16
> a=silenceSupp:off - - - -
> a=ptime:20
> a=sendrecv
> a=nortpproxy:yes
> 
> --end msg--
>  11:41:04.615    tsx016B764C Incoming Response msg 183/INVITE/cseq=11324 (rdata00A871BC) in state Proceeding
>  11:41:04.615    tsx016B764C State changed from Proceeding to Proceeding, event=RX_MSG
>  11:41:04.615 sip_ua_layer.c Received forked Response msg 183/INVITE/cseq=11324 (rdata00A871BC) for existing dialog dlg016B206C
>  11:41:04.615 sip_ua_layer.c Unhandled forked Response msg 183/INVITE/cseq=11324 (rdata00A871BC) from 10.206.25.123:5060, response will be handed over to the first dialog
>  11:41:04.615    dlg016B206C Received Response msg 183/INVITE/cseq=11324 (rdata00A871BC)
>  11:41:04.615    dlg016B206C Transaction tsx016B764C state changed to Proceeding
>  11:41:04.615    pjsua_app.c Call 0 state changed to EARLY (183 Session Progress)
>  11:41:04.615    inv016B206C Got SDP answer in Response msg 183/INVITE/cseq=11324 (rdata00A871BC)
>  11:41:04.615    inv016B206C SDP negotiation done, status=0
> 
> SIP/2.0 181 Call Is Being Forwarded
> Record-Route: <sip:10.206.25.123;lr;ftag=e2dab5c6fcee4aaba9128b241a21a7dd>
> Via: SIP/2.0/UDP 192.168.17.1:5413;rport=5413;branch=z9hG4bKPj5712caef85b3412198f702d6a28280cd
> From: sip:<caller>@sip.voip.de;tag=e2dab5c6fcee4aaba9128b241a21a7dd
> To: sip:<callee>@sip.voip.de;tag=ed98af1b081d58bb3b8f3b35a7ab0fdd-b45d
> Call-ID: ec650a371cef402885b66f6c23ae874f
> CSeq: 11324 INVITE
> Server: SIP-Proxy 1.5
> Content-Length: 0
> 
> 
> --end msg--
> SIP/2.0 183 Session Progress
> Via: SIP/2.0/UDP 192.168.17.1:5413;rport=5413;branch=z9hG4bKPj5712caef85b3412198f702d6a28280cd
> From: sip:<caller>@sip.voip.de;tag=e2dab5c6fcee4aaba9128b241a21a7dd
> To: sip:<callee>@sip.voip.de;tag=as6f372313
> Call-ID: ec650a371cef402885b66f6c23ae874f
> CSeq: 11324 INVITE
> User-Agent: gw1
> Contact: <sip:mg_out1_1 at 195.170.167.75:5061>
> Content-Type: application/sdp
> Content-Length: 199
> 
> v=0
> o=root 23089 23089 IN IP4 195.170.167.75
> s=-
> c=IN IP4 195.170.167.76
> t=0 0
> m=audio 16426 RTP/AVP 8 101
> a=rtpmap:8 PCMA/8000
> a=rtpmap:101 telephone-event/8000
> a=fmtp:101 0-16
> a=sendrecv
> 
> --end msg--
>  11:41:16.616    pjsua_app.c Call 0 state changed to EARLY (183 Session Progress)
>  11:41:16.616    inv016B206C SDP negotiation done, message body is ignored
> 
> SIP/2.0 200 OK
> Via: SIP/2.0/UDP 192.168.17.1:5413;rport=5413;branch=z9hG4bKPj5712caef85b3412198f702d6a28280cd
> Record-Route: <sip:10.206.25.123;lr;ftag=e2dab5c6fcee4aaba9128b241a21a7dd;nat=yes>
> Record-Route: <sip:10.206.25.114;lr;ftag=e2dab5c6fcee4aaba9128b241a21a7dd;rqu=WkNGWTJwRTBdRU1fN3pEPFJDNhwfegI/G1xZRyd3V25NCCI8>
> Record-Route: <sip:10.206.25.123;lr;ftag=e2dab5c6fcee4aaba9128b241a21a7dd>
> From: sip:<caller>@sip.voip.de;tag=e2dab5c6fcee4aaba9128b241a21a7dd
> To: sip:<callee>@sip.voip.de;tag=as6f372313
> Call-ID: ec650a371cef402885b66f6c23ae874f
> CSeq: 11324 INVITE
> User-Agent: gw1
> Allow: INVITE,ACK,CANCEL,BYE,REGISTER,OPTIONS,INFO,PRACK
> Contact: <sip:mg_out1_1 at 195.170.167.75:5061>
> Content-Type: application/sdp
> Content-Length: 199
> 
> v=0
> o=root 23089 23090 IN IP4 195.170.167.75
> s=-
> c=IN IP4 195.170.167.76
> t=0 0
> m=audio 16426 RTP/AVP 8 101
> a=rtpmap:8 PCMA/8000
> a=rtpmap:101 telephone-event/8000
> a=fmtp:101 0-16
> a=sendrecv
> 
> --end msg--
>  11:41:16.851    tsx016B764C Incoming Response msg 200/INVITE/cseq=11324 (rdata00A871BC) in state Proceeding
>  11:41:16.851    tsx016B764C State changed from Proceeding to Terminated, event=RX_MSG
>  11:41:16.851 sip_ua_layer.c Received forked Response msg 200/INVITE/cseq=11324 (rdata00A871BC) for existing dialog dlg016B206C
>  11:41:16.851 sip_ua_layer.c Unhandled forked Response msg 200/INVITE/cseq=11324 (rdata00A871BC) from 10.206.25.123:5060, response will be handed over to the first dialog
>  11:41:16.851    dlg016B206C Received Response msg 200/INVITE/cseq=11324 (rdata00A871BC)
>  11:41:16.851    dlg016B206C Route-set updated
>  11:41:16.851    dlg016B206C Route-set frozen
>  11:41:16.851    dlg016B206C Transaction tsx016B764C state changed to Terminated
>  11:41:16.851    pjsua_app.c Call 0 state changed to CONNECTING
>  11:41:16.851    inv016B206C SDP negotiation done, message body is ignored
>  11:41:16.851    inv016B206C Received Response msg 200/INVITE/cseq=11324 (rdata00A871BC), sending ACK




[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux