Generate SDP Packets with video

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

 



Hi Muge,

Thank you very much for your reply and explanation. It gave me a big relief. Can you please tell me briefly how can I separate "pjmedia_sdp_media" into two. Is it means get two as pjmedia_sdp_media *mvideo; and pjmedia_sdp_media *maudio; at the beginning ,instead of single *m? Please be kind enough to explain me more on that point.

Regards,
Anupama Pathirage.




________________________________
From: P.Muge Ersoy <muge.ersoy@xxxxxxxxx>
To: pjsip list <pjsip at lists.pjsip.org>
Sent: Friday, November 21, 2008 12:17:49 PM
Subject: Re: Generate SDP Packets with video

Hi Anupama ;

Unfortunately your sdp is not correct.. I guess you repeated all the audio codecs for video line.. try to separate m "pjmedia_sdp_media" into two.. i did it like that.. i created maudio and mvideo .. Also you assigned the same port number.. you can assign +2 of audio port number to video.. Pjsip opens 8 sockets when it initialized.. so 4002 will be suitable to be used for video.. 

Below is my sdp .. I am only using G711 codecs right now. 

v=0
o=- 3436101648 3436101649 IN IP4 192.168.0.220
s=pjmedia
c=IN IP4 192.168.0.220
t=0 0
a=X-nat:0
m=audio 4000 RTP/AVP 0
a=rtpmap:0 PCMU/8000
m=video 4002 RTP/AVP 96
a=rtpmap:96 H264/90000
a=recvonly

Regards
Muge


On Fri, Nov 21, 2008 at 6:39 AM, piyumali pathirage <piyumali2004 at yahoo.com> wrote:

Hi,
I hope to use PJSIP sip stack to the soft phone that I'm implementing. My soft phone can capture, render & RTP both video and audio. So I need to add video processing lines to the SDP packets generated by this SIP stack. 
In order to do that I add some lines to endpoint.c and now video lines are created as below.

v=0
o=- 3436167595 3436167595 IN IP4 172.16.7.109
s=pjmedia
c=IN IP4 172.16.7.109
t=0 0
m=audio 4000 RTP/AVP 103 102 104 117 3 0 8 9 101
a=rtcp:4001 IN IP4 172.16.7.109
a=rtpmap:103 speex/16000
a=rtpmap:102 speex/8000
a=rtpmap:104 speex/32000
a=rtpmap:117 iLBC/8000
a=fmtp:117 mode=30
a=rtpmap:3 GSM/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:9 G722/8000
a=sendrecv
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
m=video 4000 RTP/AVP 103 102 104 117 3 0 8 9 34
a=rtcp:4001 IN IP4 172.16.7.109
a=rtpmap:103 speex/16000
a=rtpmap:102 speex/8000
a=rtpmap:104 speex/32000
a=rtpmap:117 iLBC/8000
a=fmtp:117 mode=30
a=rtpmap:3 GSM/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:9 G722/8000
a=sendrecv
a=rtpmapVideo:34 telephone-event/8000
a=fmtp:101 0-15

 But the problem is  this does not generate 200 OK SIP packet. Instead it creates a packet with "488 Not Acceptable Here". Can any one please explain me what is the reason for that. Is this because both video and audio port are same? If so how can I change that? 
I'm in a hopeless situation about using PJSIP SIP stack for handle video. So please be kind enough to help me on that. 

Regards,
Anupama Pathirage  


_______________________________________________
Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip at lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org


      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20081120/18e88df6/attachment.html>


[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