[SR-Users] t_uac_send function with From tag

Daniel-Constantin Mierla miconda at gmail.com
Thu Nov 19 17:09:37 CET 2020


Hello,

can you try with master branch or with the patch from the next commit?

  *
https://github.com/kamailio/kamailio/commit/aa6e9963b2725c1b6b7e5ff995a77c222d95fa3c

If all ok, then I can backport to stable branches.

Cheers,
Daniel

On 18.11.20 21:45, João Vitor Arruda wrote:
> Hello,
>
> I'm trying to use the function t_uac_send inside a failure_route as
> described in https://kamailio.org/docs/modules/5.3.x/modules/tm.html#tm.f.t_uac_send
> to send a CANCEL out.
>
> Although the documentation says "it can include From/To tags" i was
> not able to get the from tag provided to be used. Another random
> generated one is used.
>
> I've tried the following format without success:
> t_uac_send("CANCEL", "$ru", "", "", "From: <$fu>;tag=$ft\r\nTo:
> $tu\r\nCall-ID: $ci\r\n", "")
> t_uac_send("CANCEL", "$ru", "", "", "From: $fu;tag=$ft\r\nTo:
> $tu\r\nCall-ID: $ci\r\n", "")
> t_uac_send("CANCEL", "$ru", "", "", "From:
> bob at kamailio.org;tag=2w3e\r\nTo: $tu\r\nCall-ID: $ci\r\n", "")
>
> In the last one which is copied from the documentation that is how the
> From header going out looks like:
> From: <bob at kamailio.org;tag=2w3e>;tag=3393f0703fb0ccaca74109ff37de39f5-36d71ef0
>
> Any tips on how to get the From tag passed to the function to be used?
>
> Thanks,
> Joao Arruda
>
> _______________________________________________
> 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.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Funding: https://www.paypal.me/dcmierla




More information about the sr-users mailing list