[OpenSIPS-Users] Get variables in failure route

Alexander Mustafin mustafin.aleksandr at gmail.com
Thu Oct 23 08:28:27 CEST 2014


Hi, Liviu.

Thank you very much for the advice. Now, all works fine!

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




22 окт. 2014 г., в 17:20, Liviu Chircu <liviu at opensips.org> написал(а):

> 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.
>> 
>> Can I receive values from 407 message?
>> 
>> Best regards,
>> Alexander Mustafin
>> mustafin.aleksandr at gmail.com
>> 
>> 
>> 
>> 
>> 
>> 
>> _______________________________________________
>> Users mailing list
>> 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/20141023/7a9788a4/attachment-0001.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/20141023/7a9788a4/attachment-0001.pgp>


More information about the Users mailing list