[reSIProcate] Pulling SdpContents

david Butcher david at purplecomm.com
Mon Feb 21 16:36:57 CST 2005


Quoting Dan Weber <dan at mirrorlynx.com>:

> >From a previous email I sent, you've told me how to get the SdpContents
> of a SipMessage.  However, I find now when I try to do this, that it
> always turns up null.  Here's a copy of the sip packet traced through my
> appserver.  

There was a period where we were using static initializers to map the mime type
to the contents parser and this would not always work (platform dependent). When
that initializer methods failed, the result would be no mapping and therefore an
unexpected default type for the parsed contents, and therefore a null after the
dynamic_cast, and finally, nashing and wailing.

The current (head) version will show the same symptoms only if you are not
including SdpContents.hxx. This approach allows you to substitute your own
parsers and determine what types you want to manage.

Let me know if you are including SdpContents.hxx and are still having the issue.

david




> 
> 
> INVITE
> sip:4846991555 at 192.168.0.128:5060;ep=192.168.1.149:5060;fw=69.142.65.229
> SIP/2.0
> Via:SIP/2.0/UDP
>
192.168.0.3;branch=z9hG4bK-BroadWorks.192.168.0.3-192.168.0.128V5060-0-460495805-1109377812-1109022553976
> From:"WEBER
> ANNE"<sip:6102691420 at 192.168.0.3;user=phone>;tag=1109377812-1109022553976
> To:"Dan Weber"<sip:4846991555 at sip.broadvoice.com;user=phone>
> Call-ID:BW1649139762102051635934371 at 192.168.0.3
> CSeq:460495805 INVITE
> Contact:<sip:192.168.0.3:5060>
> Allow:ACK,BYE,CANCEL,INFO,INVITE,OPTIONS,PRACK,REFER,UPDATE,NOTIFY
> Supported:100rel,timer
> Min-SE:60
> Accept:application/sdp,application/dtmf
> Max-Forwards:70
> Content-Type:application/sdp
> Content-Length:263
> 
> v=0
> o=BroadWorks 3847766 1 IN IP4 192.168.0.130
> s=-
> c=IN IP4 192.168.0.130
> t=0 0
> m=audio 15152 RTP/AVP 0 8 96 18 101
> a=ptime:20
> a=rtpmap:0 PCMU/8000
> a=rtpmap:8 PCMA/8000
> a=rtpmap:96 G726-32/8000
> a=rtpmap:18 G729/8000
> a=rtpmap:101 telephone-event/8000
> 
> 
> _______________________________________________
> resiprocate-devel mailing list
> resiprocate-devel at list.sipfoundry.org
> https://list.sipfoundry.org/mailman/listinfo/resiprocate-devel
> 





More information about the resiprocate-devel mailing list