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 ([email protected] <mailto:[email protected]>)
> Date: 01/29/21 04:04
> To: OpenSIPS users mailling list ([email protected]
> <mailto:[email protected]>)
> 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]:
> [email protected]:
> Onreply_route[handle_nat]: incoming reply rs [100]
> Jan 29 04:57:07 SBC-01 /data/opensips/sbin/opensips[9884]:
> [email protected]:
> Onreply_route[handle_nat]: incoming reply rs [603]
> Jan 29 04:57:07 SBC-01 /data/opensips/sbin/opensips[9884]:
> [email protected]:
> failure_route[missed_call] there is an error, we call rtpengine_delete
> first, rs [<null>]
>
> ------------------------------------------------------------------------
> _______________________________________________
> Users mailing list
> [email protected] <mailto:[email protected]>
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
> _______________________________________________
> Users mailing list
> [email protected]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
0xD7D896F7DDA70EC3.asc
Description: application/pgp-keys
_______________________________________________ Users mailing list [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/users
