<html><head><style>body{font-family:Helvetica,Arial;font-size:13px}</style></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">Since I am using nginx to serve the requests, it turns out to be&nbsp;ngx.req.get_post_args() takes a limited number of arguments in the body by default. 100 to be exact by default. If I change the value to a larger number, I am able to see all the variables in POST.</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><div id="bloop_customfont" style="margin: 0px;">ngx.req.read_body()</div><div id="bloop_customfont" style="margin: 0px;">local XML_REQUEST = ngx.req.get_post_args(1000)</div><div id="bloop_customfont" style="margin: 0px;"><br></div><div id="bloop_customfont" style="margin: 0px;">for k, v in pairs (XML_REQUEST) do</div><div id="bloop_customfont" style="margin: 0px;">&nbsp; if (k:match('variable')) then</div><div id="bloop_customfont" style="margin: 0px;">&nbsp; &nbsp; log.debug ('['..k .. '] : [' .. v..']')</div><div id="bloop_customfont" style="margin: 0px;">&nbsp; end</div><div id="bloop_customfont" style="margin: 0px;">end</div><div><br></div><div>Solved..&nbsp;</div></div> <br> <div id="bloop_sign_1418747353557040896" class="bloop_sign"><div style="font-family:helvetica,arial;font-size:13px">--&nbsp;<br>Muhammad Naseer Bhatti<br></div></div> <div style="color:black"><br>From:&nbsp;<span style="color:black">Muhammad Naseer Bhatti</span> <a href="mailto:nbhatti@gmail.com">&lt;nbhatti@gmail.com&gt;</a><br>Reply:&nbsp;<span style="color:black">Muhammad Naseer Bhatti</span> <a href="mailto:nbhatti@gmail.com">&lt;nbhatti@gmail.com&gt;&gt;</a><br>Date:&nbsp;<span style="color:black">December 16, 2014 at 6:26:21 PM</span><br>To:&nbsp;<span style="color:black">FreeSWITCH Users Help</span> <a href="mailto:freeswitch-users@lists.freeswitch.org">&lt;freeswitch-users@lists.freeswitch.org&gt;&gt;</a>, <span style="color:black">Brian West</span> <a href="mailto:brian@freeswitch.org">&lt;brian@freeswitch.org&gt;&gt;</a><br>Subject:&nbsp;<span style="color:black"> Re: [Freeswitch-users] Strange xml_curl behavior. Can't see more than 7 variables on POST <br></span></div><br> <blockquote type="cite" class="clean_bq"><span><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div></div><div>




<title></title>



<div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">
<br></div>
<div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">
No, it’s the same with or without cacheable set to 0 or anything
else. Here is the list of all variables I can see,&nbsp;<a href="https://pastebin.freeswitch.org/23740">https://pastebin.freeswitch.org/23740</a></div>
<div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">
&nbsp;</div>
<div id="bloop_sign_1418743426913999104" class="bloop_sign">
<div style="font-family:helvetica,arial;font-size:13px">
--&nbsp;<br>
Muhammad Naseer Bhatti<br>
Sent with Airmail</div>
</div>
<div style="color:black"><br>
From:&nbsp;<span style="color:black">Brian West</span> <a href="mailto:brian@freeswitch.org">&lt;brian@freeswitch.org&gt;</a><br>

Reply:&nbsp;<span style="color:black">FreeSWITCH Users Help</span>
<a href="mailto:freeswitch-users@lists.freeswitch.org">&lt;freeswitch-users@lists.freeswitch.org&gt;&gt;</a><br>

Date:&nbsp;<span style="color:black">December 16, 2014 at 6:20:48
PM</span><br>
To:&nbsp;<span style="color:black">FreeSWITCH Users Help</span>
<a href="mailto:freeswitch-users@lists.freeswitch.org">&lt;freeswitch-users@lists.freeswitch.org&gt;&gt;</a><br>

Subject:&nbsp; <span style="color:black">Re: [Freeswitch-users]
Strange xml_curl behavior. Can't see more than 7 variables on
POST<br></span></div>
<br>
<blockquote type="cite" class="clean_bq">
<div>
<div>
<div dir="ltr"><span>Does it behave differently without the
cacheable tag?</span></div>
<div class="gmail_extra"><span><br></span>
<div class="gmail_quote"><span>On Tue, Dec 16, 2014 at 9:01 AM,
Muhammad Naseer Bhatti <span dir="ltr">&lt;<a href="mailto:nbhatti@gmail.com" target="_blank">nbhatti@gmail.com</a>&gt;</span> wrote:</span>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div><br></div>
<div>Forgot to mention that I am also pulling up dialplan
configuration from xml_curl. I am seeing all the variables when
request for a dialplan.</div>
<div><br></div>
<div><br></div>
<div>Sent with <a href="http://www.uniboxapp.com/t/sig" target="_blank">Unibox</a></div>
<div><br></div>
<blockquote type="cite">
<div>
<div class="h5">
<div>On Dec 16, 2014, at 5:57 PM, Muhammad Naseer Bhatti
&lt;<a href="mailto:nbhatti@gmail.com" target="_blank">nbhatti@gmail.com</a>&gt; wrote:</div>
<div><br></div>
<div style="font-family:Helvetica,Arial;font-size:13px;text-align:start;margin:0px">
I am using xml_curl to generate all config dynamically and this is
getting very strange, my directory looks like this,&nbsp;</div>
<div style="font-family:Helvetica,Arial;font-size:13px;text-align:start;margin:0px">
<br></div>
<div style="font-family:Helvetica,Arial;font-size:13px;text-align:start;margin:0px">
<p style="margin:0px;font-size:11px;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)">
&lt;?xml version='1.0' encoding='UTF-8' standalone='no'?&gt;</p>
<p style="margin:0px;font-size:11px;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)">
&lt;document type='freeswitch/xml'&gt;</p>
<p style="margin:0px;font-size:11px;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)">
&nbsp;&lt;section name='directory'&gt;</p>
<p style="margin:0px;font-size:11px;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)">
&nbsp; &lt;domain name='10.211.55.26'&gt;</p>
<p style="margin:0px;font-size:11px;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)">
&nbsp; &lt;user id='9401404' cacheable='2000'&gt;</p>
<p style="margin:0px;font-size:11px;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)">
&nbsp; &lt;params&gt;</p>
<p style="margin:0px;font-size:11px;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)">
&nbsp; &lt;param name='a1-hash'
value='3c66e98d4b174b42d3e17669b59165c9'/&gt;</p>
<p style="margin:0px;font-size:11px;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)">
&nbsp; &lt;param name='max-registrations-per-extension'
value='1'/&gt;</p>
<p style="margin:0px;font-size:11px;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)">
&nbsp; &lt;param name='allow-empty-password' value='false'/&gt;</p>
<p style="margin:0px;font-size:11px;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)">
&nbsp; &lt;param name='sip-force-expires' value='180'/&gt;</p>
<p style="margin:0px;font-size:11px;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)">
&nbsp; &lt;/params&gt;</p>
<p style="margin:0px;font-size:11px;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)">
&nbsp; &lt;variables&gt;</p>
<p style="margin:0px;font-size:11px;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)">
&nbsp; &lt;variable name='customer_id' value='98765'/&gt;</p>
<p style="margin:0px;font-size:11px;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)">
&nbsp; &lt;variable name='effective_caller_id_name' value='Mr
Bhatti'/&gt;</p>
<p style="margin:0px;font-size:11px;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)">
&nbsp; &lt;variable name='effective_caller_id_number'
value='9401404'/&gt;</p>
<p style="margin:0px;font-size:11px;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)">
&nbsp; &lt;variable name='debug_call' value='0'/&gt;</p>
<p style="margin:0px;font-size:11px;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)">
&nbsp; &lt;variable name='debug_sql' value='0'/&gt;</p>
<p style="margin:0px;font-size:11px;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)">
&nbsp; &lt;variable name='user_context' value='vbilling'/&gt;</p>
<p style="margin:0px;font-size:11px;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)">
&nbsp; &lt;variable name='hangup_after_bridge'
value='true'/&gt;</p>
<p style="margin:0px;font-size:11px;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)">
&nbsp; &lt;variable name='xbypass' value='google'/&gt;</p>
<p style="margin:0px;font-size:11px;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)">
&nbsp; &lt;variable name='account_type_02' value='pre'/&gt;</p>
<p style="margin:0px;font-size:11px;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)">
&nbsp; &lt;variable name='account_type_03' value='pre'/&gt;</p>
<p style="margin:0px;font-size:11px;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)">
&nbsp; &lt;variable name='account_type' value='pre'/&gt;</p>
<p style="margin:0px;font-size:11px;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)">
&nbsp; &lt;/variables&gt;</p>
<p style="margin:0px;font-size:11px;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)">
&nbsp; &lt;/user&gt;</p>
<p style="margin:0px;font-size:11px;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)">
&nbsp; &lt;/domain&gt;</p>
<p style="margin:0px;font-size:11px;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)">
&nbsp;&lt;/section&gt;</p>
<p style="margin:0px;font-size:11px;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)">
&lt;/document&gt;</p>
</div>
<div style="font-family:Helvetica,Arial;font-size:13px;text-align:start">
<br></div>
</div>
</div>
<div style="font-family:Helvetica,Arial;font-size:13px;text-align:start">The
directory is working fine and user is able to login. I have a bunch
of variables defined here. When I look at the POST on the web
server, I am only able to see first 7 variable no matter what their
names are. If I change order for
example<span>&nbsp;</span><u>account_type</u>which is last
variable, and make it on top, it shows there in the XML_REQUEST but
then<span>&nbsp;</span><u>hangup_after_bridge</u>goes away. I see
only first 7. Are there any limitation on what channel variables
can be POSTed to the web server or am I missing something
here.&nbsp;</div>
<span class="HOEnZb"><font color="#888888"><br style="font-family:Helvetica,Arial;font-size:13px;text-align:start"></font></span>
<div style="font-family:Helvetica,Arial;font-size:13px;text-align:start">
<div style="font-family:helvetica,arial;font-size:13px">
<span class="HOEnZb"><font color="#888888">--&nbsp;<br>
Muhammad Naseer Bhatti<br></font></span></div>
</div>
</blockquote>
</div>
<br>
_________________________________________________________________________<br>

Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>

<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>

<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>

UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>

<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br></blockquote>
</div>
<br clear="all">
<div><br></div>
--<br>
<div class="gmail_signature">
<div dir="ltr">
<p><font face="courier new, monospace"><b><i><font size="4">Brian
West</font></i></b><br>
<span style="font-size:x-small"><a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a></span></font></p>
<p><font size="1" face="courier new, monospace"><img src="http://billing.freeswitch.org/templates/default/img/whmcslogo.png"><br>
</font></p>
<p><font face="courier new, monospace"><b><i>Twitter: @FreeSWITCH ,
@briankwest</i></b><br>
<a href="http://www.freeswitchbook.com" target="_blank">http://www.freeswitchbook.com</a><br>
<a href="http://www.freeswitchcookbook.com" target="_blank">http://www.freeswitchcookbook.com</a></font></p>
<p><font face="courier new, monospace"><b>T:</b>+19184209001 |
<b>F:</b>+19184209002 | <b>M:</b>+1918424WEST (9378)<br>
<b>iNUM:</b>+883 5100 1420 9001 |&nbsp;<b>ISN:</b>410*543
|&nbsp;<b>Skype:</b>briankwest</font></p>
</div>
</div>
</div>
_________________________________________________________________________<br>

Professional FreeSWITCH Consulting Services:<br>
consulting@freeswitch.org<br>
http://www.freeswitchsolutions.com<br>
<br>
Official FreeSWITCH Sites<br>
http://www.freeswitch.org<br>
http://confluence.freeswitch.org<br>
http://www.cluecon.com<br>
<br>
FreeSWITCH-users mailing list<br>
FreeSWITCH-users@lists.freeswitch.org<br>
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<br>
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br>

http://www.freeswitch.org</div>
</div>
</blockquote>


</div></div></span></blockquote></body></html>