[OpenSIPS-Users] issue with reply_route , failure_route.

John Burke john at voxtelesys.net
Fri Jan 29 14:13:23 EST 2021


Hey Johan,

Failure routes are in the context of request [1] - from the docs: "Note that inside the 'failure_route', the request that initiated the transaction is being processed, and not its reply."

You can access reply context from failure route by specifying the context of $rs:

$(<context>name(subname)[index]{transformation})
$(<reply>rs)

[1] https://www.opensips.org/Documentation/Script-Routes-3-1#toc3

Thanks,
John
----- Original Message -----
From: johan (johan at democon.be)
Date: 01/29/21 04:04
To: OpenSIPS users mailling list (users at lists.opensips.org)
Subject: [OpenSIPS-Users] issue with reply_route , failure_route.

Is it normal that $rs is only populated in on_reply route ?

Jan 29 04:57:07 SBC-01 /data/opensips/sbin/opensips[9884]:
callid=4dcae6e2542525c715d2890c178a9968 at 176.241.248.19:
Onreply_route[handle_nat]: incoming reply rs [100]
Jan 29 04:57:07 SBC-01 /data/opensips/sbin/opensips[9884]:
callid=4dcae6e2542525c715d2890c178a9968 at 176.241.248.19:
Onreply_route[handle_nat]: incoming reply rs [603]
Jan 29 04:57:07 SBC-01 /data/opensips/sbin/opensips[9884]:
callid=4dcae6e2542525c715d2890c178a9968 at 176.241.248.19:
failure_route[missed_call] there is an error, we call rtpengine_delete
first, rs [<null>]


_______________________________________________
Users mailing list
Users at lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20210129/be1403f8/attachment-0001.html>


More information about the Users mailing list