[OpenSIPS-Users] Get variables in failure route
Liviu Chircu
liviu at opensips.org
Wed Oct 22 13:20:08 CEST 2014
Hello Alexander,
You need to specify the context of a pseudo-var. [1]
For your script, you should use $(<reply>fU) and $(<reply>fd).
[1]: http://www.opensips.org/Documentation/Script-CoreVar-2-1
Best regards,
Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com
On 10/22/2014 01:13 PM, Alexander Mustafin wrote:
> Hello.
>
> I need to receive variables from 407 message in failure route, but
> when I tried it - I received a value from initial message.
>
> INVITE sip:055555534534 at sbc.sbc.sbc SIP/2.0.
> Via: SIP/2.0/UDP 54.55.56.57:12000;rport;branch=z9hG4bK37Ny7QvNF7Hrc.
> Max-Forwards: 70.
> From: «User" <sip:77777777777 at office.sbc.sbc>;tag=ct7BK7ccyaK7H.
>
> SIP/2.0 407 Proxy Authentication Required.
> From: <sip:neo590 at test.test.test>;tag=ct7BK7ccyaK7H.
> To: <sip:88888888888 at test.test.test>;tag=9560995.
>
> failure_route[EXTERNAL_FAULT] {
> if (t_was_cancelled()) {
> xlog("L_INFO", "$ci|log|transaction was cancelled");
>
> exit;
> }
> $var(auth_user) = $fU + "@" + $fd;
> }
>
> In variable $var(auth_user) I've seen 77777777777 at office.sbc.sbc
> <mailto:77777777777 at office.sbc.sbc>.
>
> Can I receive values from 407 message?
>
> Best regards,
> Alexander Mustafin
> mustafin.aleksandr at gmail.com <mailto:mustafin.aleksandr at gmail.com>
>
>
>
>
>
>
> _______________________________________________
> 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/20141022/988b5b0a/attachment.htm>
More information about the Users
mailing list