<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<tt>Hi Brett,<br>
<br>
Never tried something like that, but let me run some tests....<br>
<br>
Regards,<br>
</tt>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
<br>
On 01/15/2013 10:29 PM, Brett Nemeroff wrote:
<blockquote
cite="mid:CAPwC5wz7sPth-8v=jEjBQEGs86c_Q9J3FxD6EKzZcDaVnaQ7kg@mail.gmail.com"
type="cite">Anyone else run into this? Anyone using JSON??
<div><br>
</div>
<div>Thanks,</div>
<div>Brett</div>
<div><br>
<br>
<div class="gmail_quote">On Thu, Jan 10, 2013 at 12:37 AM, Brett
Nemeroff <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:brett@nemeroff.com" target="_blank">brett@nemeroff.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;">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.
<div>
<br>
</div>
<div>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?</div>
<div><br>
</div>
<div>Thanks,</div>
<div>Brett</div>
<div class="HOEnZb">
<div class="h5">
<div><br>
</div>
<div>
<div><br>
<div class="gmail_quote">On Wed, Jan 9, 2013 at
12:20 PM, Brett Nemeroff <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:brett@nemeroff.com"
target="_blank">brett@nemeroff.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt
0pt 0pt 0.8ex; border-left: 1px solid rgb(204,
204, 204); padding-left: 1ex;">Hey All,
<div>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:</div>
<div><br>
</div>
<div>
<p style="margin: 0px; font-size: 12px;
font-family: Helvetica; min-height: 14px;"><br>
</p>
<p style="margin: 0px; font-size: 12px;
font-family: Helvetica;">Jan 9 18:10:52
development /usr/local/sbin/opensips[10469]:
ERROR:json:pv_get_json: Variable
named:cdata1 not found</p>
<p style="margin: 0px; font-size: 12px;
font-family: Helvetica;">Jan 9 18:10:52
development /usr/local/sbin/opensips[10469]:
ERROR:acc:extra2strar: failed to get
'element'</p>
</div>
<div><br>
</div>
<div>Like I said, I'm 100% sure the variable is
set: $json(cdata1/element)</div>
<div><br>
</div>
<div>It's almost like it just doesn't support
$json or that it's "out of scope"</div>
<div><br>
</div>
<div>Thanks!</div>
<span><font color="#888888">
<div>-Brett</div>
<div>
<br>
</div>
</font></span></blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
</body>
</html>