I am using Sofia-sip 1.12.10 for running my applciation.

In my application with Sofia-sip 1.12.10, I would like to send an INVITE 
message with SDP attribute parameter "a=sendrecv". 

I have tried 2 methods with nua_invite():

1)
    g_chLocalSdpMedia[0] = '\0';
    sprintf(g_chLocalSdpMedia,"m=image %d udptl t38\r\n",g_LocalRtpPort);
    strcat(g_chLocalSdpMedia, "a=sendrecv\r\n");
    strcat(g_chLocalSdpMedia, "a=T38MaxBitrate:14400\r\n");
    strcat(g_chLocalSdpMedia, "a=T38FaxMaxDatagram:316\r\n");
    strcat(g_chLocalSdpMedia, "a=T38FaxMaxBuffer::280\r\n");
    strcat(g_chLocalSdpMedia,"a=T38FaxRateManagement:transferredTCF\r\n");

    nua_invite(op_active->handle,
             /* other tags as needed ... */
             SOATAG_USER_SDP_STR(g_chLocalSdpMedia),
             SOATAG_RTP_SORT(SOA_RTP_SORT_LOCAL),
             SOATAG_RTP_SELECT(SOA_RTP_SELECT_SINGLE),
             TAG_END());        

2)
    g_chLocalSdpMedia[0] = '\0';
    sprintf(g_chLocalSdpMedia,"m=image %d udptl t38\r\n",g_LocalRtpPort);
    strcat(g_chLocalSdpMedia, "a=T38MaxBitrate:14400\r\n");
    strcat(g_chLocalSdpMedia, "a=T38FaxMaxDatagram:316\r\n");
    strcat(g_chLocalSdpMedia, "a=T38FaxMaxBuffer::280\r\n");
    strcat(g_chLocalSdpMedia,"a=T38FaxRateManagement:transferredTCF\r\n");

    nua_invite(op_active->handle,
             /* other tags as needed ... */
           SOATAG_ACTIVE_AUDIO(SOA_ACTIVE_SENDRECV), 
             SOATAG_USER_SDP_STR(g_chLocalSdpMedia),
             SOATAG_RTP_SORT(SOA_RTP_SORT_LOCAL),
             SOATAG_RTP_SELECT(SOA_RTP_SELECT_SINGLE),
             TAG_END());        

However, the problem is that we do not observe SDP attribute "a=sendrecv" in 
the transmitted SIP INVITE packet. If we were to use "a=sendonly" or 
"a=recvonly", it works with first method. But I want to send specifically 
"a=sendrecv" attribute in INVITE (even though, its absence may corresspond to 
default presence).

Could you please advise us on how we could use nua_invite() to have 
"a=sendrecv" in the transmitted INVITE SDP.



------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel

Reply via email to