Hi,

The following works for me:
t_newtran();
$var(sdp)="v=0\r\n" +
          "o=- 909325628 825120060 IN IP4 $Ri\r\n" +
          "s=-\r\n" +
          "c=IN IP4 $Ri\r\n" +
          "t=0 0\r\n" +
          "m=audio 5004 RTP/AVP 0 8 101\r\n" +
          "a=fmtp:101 0-15\r\n" +
          "a=rtpmap:0 PCMU/8000\r\n" +
          "a=rtpmap:8 PCMA/8000\r\n" +
          "a=rtpmap:101 telephone-event/8000\r\n" +
          "a=ptime:20\r\n" +
          "a=sendrecv\r\n";
set_reply_body($var(sdp), "application/sdp");
t_reply("200", "OK");

Regards,
Kristian Høgh
Uni-tel A/S


On Monday 07 March 2016 14:15:12 jaflong jaflong wrote:
> I found reference to this function usage in opensips  I also saw some posting 
> on this list however I think they where writing a module so I wondered if it 
> was also supported in Kamailio.
> 
> As it seems this function is not available could you suggest another way to 
> create a new reply and send back to a INVITE an 200 OK with a sdp body 
> 
> 07.03.2016, 09:56, "Daniel-Constantin Mierla" <mico...@gmail.com>:
> > Hello,
> >
> > I haven't seen this function to be exported to configuration file? In
> > which module docs did you find it?
> >
> > Cheers,
> > Daniel
> >
> > On 06/03/16 04:08, jaflong jaflong wrote:
> >>  Hi
> >>
> >>  Is the function 't_reply_with_body' currently available in Kamailio. I am 
> >> using 4.3.5
> >>
> >>  I get the error0(7176) ERROR: <core> [cfg.y:3295]: yyparse(): cfg. 
> >> parser: failed to find command t_reply_with_body (params 3)
> >>
> >>  thanks
> >>
> >>  _______________________________________________
> >>  SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> >>  sr-users@lists.sip-router.org
> >>  http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
> >
> > --
> > Daniel-Constantin Mierla
> > http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
> > Kamailio Advanced Training, Berlin, March 7-9, 2016 - http://www.asipto.com
> >
> > _______________________________________________
> > SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> > sr-users@lists.sip-router.org
> > http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
> 
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users@lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
> 


*Kristian Høgh*
 

 
Telefon: 4422 8822
supp...@uni-tel.dk[1]
 
Gydevang 19 | 3450 Allerød
www.uni-tel.dk [2]

--------
[1] mailto:supp...@uni-tel.dk
[2] http://www.uni-tel.dk
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to