[SR-Users] How to access reason phrase of winning reply in failure_route

Andreas Granig agranig at sipwise.com
Mon Jul 2 11:04:03 CEST 2012


On 07/02/2012 10:29 AM, Barthel Marco (CI/AFU1) wrote:
>  how do I access the reason phrase of winning reply in failure_route?
> The reply code can be accessed via $T_reply_code. Is there something similar for the reason phrase?

The tmx module exports $T_rpl(), which you can use like this to access
the reason: $T_rpl($rr)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 900 bytes
Desc: OpenPGP digital signature
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20120702/0f2dff38/attachment.pgp>

More information about the sr-users mailing list