[reSIProcate] SDP Parsing Problem - p= cant parsed

david Butcher davidlbutcher at gmail.com
Sat Sep 10 12:00:18 CDT 2005


SDP is very particular about header order -- "e" must come before "p".
There do not seem to be tests for "p" -- will add a few.

david


On 9/10/05, shailesh <shpatel at varaha.com> wrote:
> 
>  Hello
> 
>  I am trying to get port and IP Address from the following SDP but it 
> gives me port as 0 and IP address as empty string. 
> 
>  I do many test after that I conclude that because of p=+972 683 1000 line 
> it can't parse properly.
> 
>  Here I put my SDP.
> 
>  "v=0\r\n" 
> 
> "o=- 333525334858460 333525334858460 IN IP4 192.168.0.156\r\n"
> 
> "s=test123\r\n"
> 
> "p=+972 683 1000\r\n"
> 
> "e=unknown at invalid.net\r\n"
> 
> "t=4058038202 0\r\n"
> 
> "m=audio 41466 RTP/AVP 0 101\r\n"
> 
> "c=IN IP4 192.168.0.156\r\n"
> 
> "a=rtpmap:101 telephone-event/8000\r\n"
> 
> "a=fmtp:101 0-11\r\n"
> 
> "a=ptime:20\r\n"
> 
>  It is not crashed at time of parsing but it gives me port as 0 and IP as 
> empty string.
> 
> If I remove p= line everything working fine.
> 
>  Regards,
> 
> Shailesh
> 
>  
> _______________________________________________
> resiprocate-devel mailing list
> resiprocate-devel at list.sipfoundry.org
> https://list.sipfoundry.org/mailman/listinfo/resiprocate-devel
> 
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.resiprocate.org/pipermail/resiprocate-devel/attachments/20050910/70106190/attachment.htm>


More information about the resiprocate-devel mailing list