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])
Date: 01/29/21 04:04
To: OpenSIPS users mailling list ([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]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users