[OpenSIPS-Users] issue with reply_route , failure_route.

johan johan at democon.be
Sat Jan 30 11:10:11 EST 2021


for your info : I caught the 603 reply in onreply_route, putted an avp
to true. 

Then using that avp in failure_route, I rewrote the reply to 100 trying
and issued a reinvite.


On 29/01/2021 15:13, John Burke via Users wrote:
> 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 <mailto:johan at democon.be>)
> Date: 01/29/21 04:04
> To: OpenSIPS users mailling list (users at lists.opensips.org
> <mailto: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 <mailto:Users at lists.opensips.org>
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
> _______________________________________________
> 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/20210130/cf3aff41/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0xD7D896F7DDA70EC3.asc
Type: application/pgp-keys
Size: 2456 bytes
Desc: not available
URL: <http://lists.opensips.org/pipermail/users/attachments/20210130/cf3aff41/attachment.key>


More information about the Users mailing list