[OpenSIPS-Users] $du not expanded/evaluated?
Bogdan-Andrei Iancu
bogdan at opensips.org
Wed Apr 12 09:50:28 EDT 2017
Hi Robert,
According to the docs, the second parameter does not expands possible
variables.
Have you check if the dst URI is accessible via the SIPMsg class ?
http://www.opensips.org/html/docs/modules/2.2.x/python.html#idp54288
Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
OpenSIPS Summit May 2017 Amsterdam
http://www.opensips.org/events/Summit-2017Amsterdam.html
On 04/11/2017 08:04 PM, robert wrote:
> I am using the following in the opensips.cfg file.
>
> $du correctly evaluates to a real value (e.g. "sip:XX.XX.XX.XX:5060" ) in
> the xlog, but inside the python_exec, it does not.
>
> On the python side the incrementMissedCallsCount function gets the value
> "$du" rather than "sip:XX.XX.XX.XX:5060"
>
>
> code:
>
> xlog("REPORT: LB destination $du failed with code $T_reply_code\n");
> python_exec('incrementMissedCallsCount',"$du");
>
>
>
>
> --
> View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/du-not-expanded-evaluated-tp7606924.html
> Sent from the OpenSIPS - Users mailing list archive at Nabble.com.
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
More information about the Users
mailing list