Hello,

I'm trying to create a simple UA using NUA. When i reveive an invite request 
from a server (no registration since i'm unauthenticated peer),
I want to add multiple media description lines to the SDP.
Currently, I'm trying:

 switch (event) {
    case nua_i_invite:
      printf("INVITE received invite from phone number %s\n", 
sip->sip_from->a_url->url_user);
      nua_respond(nh, 200, "OK", SIPTAG_CONTENT_TYPE_STR("application/sdp"),
          SOATAG_USER_SDP_STR(
              "m=audio 61472 RTP/AVP 101 103\n"
              "a=rtpmap:101 PCMU/8000\n"
              "a=rtpmap:103 v150fw/8000\n"
              "m=audio 61474 udpsprt 104\n"
              "a=sprtmap:104 v150mr/8000\n"
              "a=fmtp:104 
mr=1;mg=0;CDSCselect=1;mrmods=1-4,10-14,16-17;jmdelay=no;versn=1.1\n"
          ),
          TAG_END());
      break;
 ...

but what actually gets send on the line is

m=audio 61472 RTP/AVP 125
a=rtpmap:125 v150fw/8000

... and nothing more.

Is there any way to include my user defined media descriptions in the 200 OK 
response (in this case skipping proceeding or ringing... but
that's optional...)?

Timm




------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel

Reply via email to