[OpenSIPS-Users] acc db_extra not allowing JSON variables

Bogdan-Andrei Iancu bogdan at opensips.org
Wed Jan 16 13:58:45 CET 2013


Hi Brett,

Never tried something like that, but let me run some tests....

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com


On 01/15/2013 10:29 PM, Brett Nemeroff wrote:
> Anyone else run into this? Anyone using JSON??
>
> Thanks,
> Brett
>
>
> On Thu, Jan 10, 2013 at 12:37 AM, Brett Nemeroff <brett at nemeroff.com 
> <mailto:brett at nemeroff.com>> wrote:
>
>     To make this more interesting.. I actually don't get the $json
>     variable in a failure route either. There definitely seems to be
>     something up with this variable type's scope.
>
>     For now, I save the json into a dlg_val, and restore as needed.
>     However, it'd be nice to let it persist. Is there a way to do that?
>
>     Thanks,
>     Brett
>
>
>     On Wed, Jan 9, 2013 at 12:20 PM, Brett Nemeroff
>     <brett at nemeroff.com <mailto:brett at nemeroff.com>> wrote:
>
>         Hey All,
>         I'm trying to add $json variables to db_extra. I'm 100% sure
>         the variables are set as I'm using them all over my script.
>         However, when acc wants to write, I get errors like this:
>
>
>         Jan  9 18:10:52 development /usr/local/sbin/opensips[10469]:
>         ERROR:json:pv_get_json: Variable named:cdata1 not found
>
>         Jan  9 18:10:52 development /usr/local/sbin/opensips[10469]:
>         ERROR:acc:extra2strar: failed to get 'element'
>
>
>         Like I said, I'm 100% sure the variable is
>         set: $json(cdata1/element)
>
>         It's almost like it just doesn't support $json or that it's
>         "out of scope"
>
>         Thanks!
>         -Brett
>
>
>
>
> _______________________________________________
> 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/20130116/bc53a19d/attachment.htm>


More information about the Users mailing list