[OpenSIPS-Users] Get variables in failure route

Alexander Mustafin mustafin.aleksandr at gmail.com
Wed Oct 22 12:13:07 CEST 2014


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;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");

    $var(auth_user) = $fU + "@" + $fd;

In variable $var(auth_user) I’ve seen 77777777777 at office.sbc.sbc.

Can I receive values from 407 message?

Best regards,
Alexander Mustafin
mustafin.aleksandr at gmail.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20141022/bc8edc83/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 496 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.opensips.org/pipermail/users/attachments/20141022/bc8edc83/attachment.pgp>

More information about the Users mailing list