[SR-Users] onend_route() ?

Daniel-Constantin Mierla miconda at gmail.com
Tue Feb 13 11:41:56 CET 2018


Hello,

the onsend_route is a routing block that you only need to define, like:

onsend_route {

    xlog("outgoing buffer is: [[$sndto(buf)]]\n");

}

Cheers,
Daniel


On 09.02.18 22:01, Wilkins, Steve wrote:
>
>  
>
> I meant to reply to Kamailio mailing list.
>
> *From:*Wilkins, Steve
> *Sent:* Friday, February 9, 2018 12:40 PM
> *To:* 'miconda at gmail.com' <miconda at gmail.com>
> *Subject:* RE: [SR-Users] t_relay()?
>
>  
>
> Hi Daniel,
>
>  
>
> I am not sure what I am doing wrong but I cannot get the forwarded
> message to print.  I am using onend_route() and trying to print the
> results using xdbg.
>
> I have searched for examples and have had no luck.
>
>  
>
> Thank you
>
>  
>
> *From:*Daniel-Constantin Mierla [mailto:miconda at gmail.com]
> *Sent:* Friday, February 9, 2018 7:48 AM
> *To:* Kamailio (SER) - Users Mailing List <sr-users at lists.kamailio.org
> <mailto:sr-users at lists.kamailio.org>>; Wilkins, Steve
> <swwilkins at mitre.org <mailto:swwilkins at mitre.org>>
> *Subject:* Re: [SR-Users] t_relay()?
>
>  
>
> Hello,
>
> before t_relay() you can't see what is going to the network, because
> some headers are added when knowing target address and local socket
> (e.g, Via, Record-Route). You can use onsend_route for seeing the
> request just before writing to the network.
>
> https://www.kamailio.org/wiki/cookbooks/devel/core#onsend_route
>
> $snd(buf) will give outgoing buffer -- for more see $sndfrom(...) and
> $sndto(...) vars.
>
> Cheers,
> Daniel
>
>  
>
> On 09.02.18 11:24, Wilkins, Steve wrote:
>
>     Hi All,
>
>      
>
>     Could someone please tell me, what variable to I use to see what
>     t_relay() fowarding in its message?
>
>      
>
>     Thank you,
>
>     -Steve
>
>
>
>     _______________________________________________
>
>     Kamailio (SER) - Users Mailing List
>
>     sr-users at lists.kamailio.org <mailto:sr-users at lists.kamailio.org>
>
>     https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
>  
>
> -- 
> Daniel-Constantin Mierla
> www.twitter.com/miconda <http://www.twitter.com/miconda> -- www.linkedin.com/in/miconda <http://www.linkedin.com/in/miconda>
> Kamailio Advanced Training - March 5-7, 2018, Berlin - www.asipto.com <http://www.asipto.com>
> Kamailio World Conference - May 14-16, 2018 - www.kamailioworld.com <http://www.kamailioworld.com>
>
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - March 5-7, 2018, Berlin - www.asipto.com
Kamailio World Conference - May 14-16, 2018 - www.kamailioworld.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20180213/441e04f8/attachment.html>


More information about the sr-users mailing list