Yes Nanang i find out the solution for my problem.. Now i am able to generate sdp as below ; v=0 o=- 3431161710 3431161710 IN IP4 192.168.0.220 s=pjmedia c=IN IP4 192.168.0.220 t=0 0 m=audio 4000 RTP/AVP 103 102 104 117 3 0 8 9 101 a=rtcp:4001 IN IP4 192.168.0.220 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 4002 RTP/AVP 34 a=rtpmap:34 H263/90000 a=sendrecv And after negotiation i can send ok for sdp as below; v=0 o=- 3431171314 3431171315 IN IP4 192.168.0.220 s=pjmedia c=IN IP4 192.168.0.220 t=0 0 a=X-nat:0 m=audio 4004 RTP/AVP 117 a=rtcp:4005 IN IP4 192.168.0.220 a=rtpmap:117 iLBC/8000 a=fmtp:117 mode=30 m=video 4006 RTP/AVP 34 a=rtpmap:34 H263/90000 a=sendonly Now i need to fill the encoding and decoding functions . Muge On Tue, Sep 23, 2008 at 3:13 PM, Nanang Izzuddin <nanang at pjsip.org> wrote: > Hi, > > You shouldn't put the H.263 codec in the audio media line. To see > "m=video ..." you will need to add the video media line to the SDP, > e.g: > sdp->media[sdp->media_count++] = mvideo; > then add media format(s) to video media, e.g: H.263 (with static > payload type=34) : > mvideo->desc.fmt_count = 0; > m->desc.fmt[m->desc.fmt_count++] = pj_str("34"); > > Regards, > nanang > > > On Tue, Sep 23, 2008 at 1:12 PM, P.Muge Ersoy <muge.ersoy at gmail.com> > wrote: > > Hi Nanang ; > > > > Actually i have embedded h263 codec into the media codec list. > > > > v=0 > > o=- 3431149464 3431149464 IN IP4 192.168.0.220 > > s=pjmedia > > c=IN IP4 192.168.0.220 > > t=0 0 > > m=audio 4000 RTP/AVP 103 102 104 117 3 34 0 8 9 101 > > a=rtcp:4001 IN IP4 192.168.0.220 > > 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:34 H263/90000 > > 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 > > > > Now i am trying to make the video media line . But i guess there is a > > problem with fmt_count number with video.. I d like to see " > > "m=video 4000 " some where in the sdp file when i code "pj_strdup(pool, > > &mvideo->desc.media, &STR_VIDEO); " > > > > am i wrong ? > > > > Regards > > Muge > > > > > > On Mon, Sep 22, 2008 at 10:57 PM, Nanang Izzuddin <nanang at pjsip.org> > wrote: > >> > >> Hi, > >> > >> The doc of pjmedia SDP API: > >> http://www.pjsip.org/pjmedia/docs/html/group__PJMEDIA__SDP.htm. It > >> seems you need to add some formats of the video media, e.g: video > >> codec and its attributes, you can see how pjmedia_endpt_create_sdp() > >> adds some media formats to audio media. Adding video feature could be > >> a very long long way, e.g: you may need to create a separate stream > >> module for video stream. Good luck! > >> > >> Regards, > >> nanang > >> > >> > >> On Tue, Sep 23, 2008 at 1:44 AM, P.Muge Ersoy <muge.ersoy at gmail.com> > >> wrote: > >> > Hi All; > >> > > >> > I am trying to add video codecs to PJSIP.. I am editing endpoint.c > file. > >> > I > >> > added pjmedia_sdp_media *maudio; pjmedia_sdp_media *mvideo; > >> > together > >> > , also made all allocations which was made for the only > >> > pjmedia_sdp_media. > >> > But when i write "sdp->media_count = 2;" it gaves sdp validation > >> > assertion > >> > because of the 0 fmt_count. My question is , Is there any APIs of > >> > pjsua to > >> > edit pjmedia sdp media struct to add video line in sdp? > >> > > >> > My question would be so general i would be please if you lead me to > >> > useful > >> > way. > >> > > >> > Thanks > >> > Muge > >> > > >> > _______________________________________________ > >> > 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 > >> > > >> > > >> > >> _______________________________________________ > >> 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 > > > > > > _______________________________________________ > > 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 > > > > > > _______________________________________________ > 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/20080923/8ae93b30/attachment.html