[SR-Users] acces $dlg_var in failure_route
Daniel-Constantin Mierla
miconda at gmail.com
Wed May 3 17:15:22 CEST 2017
Hello,
ok, good that is was sorted out and thanks for reporting back.
Cheers,
Daniel
On 03.05.17 16:43, Diego Nadares wrote:
> Hi Daniel,
>
> Sorry for the delay.
>
> The problem was that I set wait_ack = 0 and the dialog was destroyed
> at that instance of the script.
>
> So, no problem.
>
> Thanks!
>
> Diego
>
>
>
> 2017-04-27 4:17 GMT-03:00 Daniel-Constantin Mierla <miconda at gmail.com
> <mailto:miconda at gmail.com>>:
>
> Hello,
>
> iirc, the dialog variables can have only string values, but you
> compare $dlg_var(v1) with integer 0.
>
> Then you set $dlg_var(v1) to "1" and in the next IF block you
> print $dlg_var(v2).
>
> Did you set $dlg_var(v2) somewhere?
>
> Cheers,
> Daniel
>
>
> On 26.04.17 17:42, Diego Nadares wrote:
>> Sorry...
>>
>> Dialog exists but vars are null and *I can't* modify
>> them *neither*. Is there any restriction?
>>
>> 2017-04-26 12:41 GMT-03:00 Diego Nadares <dnadares at gmail.com
>> <mailto:dnadares at gmail.com>>:
>>
>> Hi guys,
>>
>> I'm trying to access dialog vars in failure_route with no
>> success. Dialog exists but vars are null and I'can modify
>> them *neither*. Is there any restriction?
>>
>> if ($dlg_var(v1) == 0){
>> $dlg_var(v1) = "1";
>> if (is_known_dlg()){
>> xlog("L_NOTICE", "negative_reply $ci
>> $T_rpl($si) $dlg_var(v2)");
>> $dlg_var(v2) = $T_rpl($si);
>> }
>> }
>>
>>
>> Log
>>
>> Apr 26 12:36:26 drwsip02 /usr/local/sbin/kamailio[27223]:
>> NOTICE: <script>:
>> negative_reply 6daf5e8d-f47972c1 at 172.31.4.21
>> <mailto:6daf5e8d-f47972c1 at 172.31.4.21> * <null>*
>> *
>> *
>> Thanks in advance!
>>
>> Diego
>>
>> 2017-04-26 12:40 GMT-03:00 Diego Nadares <dnadares at gmail.com
>> <mailto:dnadares at gmail.com>>:
>>
>> Hi guys,
>>
>> I'm trying to access dialog vars in failure_route with no
>> success. Dialog exists but vars are null and I'can modify
>> them either. Is there any restriction?
>>
>> if ($dlg_var(v1) == 0){
>> $dlg_var(v1) = "1";
>> if (is_known_dlg()){
>> xlog("L_NOTICE", "negative_reply $ci
>> $T_rpl($si) $dlg_var(v2)");
>> $dlg_var(v2) = $T_rpl($si);
>> }
>> }
>>
>>
>> Log
>>
>> Apr 26 12:36:26 drwsip02 /usr/local/sbin/kamailio[27223]:
>> NOTICE: <script>: negative_reply
>> 6daf5e8d-f47972c1 at 172.31.4.21
>> <mailto:6daf5e8d-f47972c1 at 172.31.4.21> * <null>*
>>
>>
>>
>>
>>
>>
>>
>> _______________________________________________
>> Kamailio (SER) - Users Mailing List
>> sr-users at lists.kamailio.org <mailto:sr-users at lists.kamailio.org>
>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>> <https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users>
>
> --
> Daniel-Constantin Mierla
> www.twitter.com/miconda <http://www.twitter.com/miconda> -- www.linkedin.com/in/miconda <http://www.linkedin.com/in/miconda>
> Kamailio Advanced Training - May 22-24 (USA) - www.asipto.com <http://www.asipto.com>
> Kamailio World Conference - May 8-10, 2017 - www.kamailioworld.com <http://www.kamailioworld.com>
>
> _______________________________________________ Kamailio (SER) -
> Users Mailing List sr-users at lists.kamailio.org
> <mailto:sr-users at lists.kamailio.org>
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
> <https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users>
>
--
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - May 22-24 (USA) - www.asipto.com
Kamailio World Conference - May 8-10, 2017 - www.kamailioworld.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20170503/68c60cce/attachment.html>
More information about the sr-users
mailing list