[SR-Users] is 't_reply_with_body' currently available in kamailio

Kristian F. Høgh kfh at uni-tel.dk
Mon Mar 7 12:43:55 CET 2016


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" <miconda at 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 at 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 at 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 at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
> 


*Kristian Høgh*
 

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

--------
[1] mailto:support at uni-tel.dk
[2] http://www.uni-tel.dk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20160307/b3378a46/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mail-logo.png
Type: image/png
Size: 11635 bytes
Desc: not available
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20160307/b3378a46/attachment.png>


More information about the sr-users mailing list