<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 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;"> if (k:match('variable')) then</div><div id="bloop_customfont" style="margin: 0px;"> log.debug ('['..k .. '] : [' .. v..']')</div><div id="bloop_customfont" style="margin: 0px;"> end</div><div id="bloop_customfont" style="margin: 0px;">end</div><div><br></div><div>Solved.. </div></div> <br> <div id="bloop_sign_1418747353557040896" class="bloop_sign"><div style="font-family:helvetica,arial;font-size:13px">-- <br>Muhammad Naseer Bhatti<br></div></div> <div style="color:black"><br>From: <span style="color:black">Muhammad Naseer Bhatti</span> <a href="mailto:nbhatti@gmail.com"><nbhatti@gmail.com></a><br>Reply: <span style="color:black">Muhammad Naseer Bhatti</span> <a href="mailto:nbhatti@gmail.com"><nbhatti@gmail.com>></a><br>Date: <span style="color:black">December 16, 2014 at 6:26:21 PM</span><br>To: <span style="color:black">FreeSWITCH Users Help</span> <a href="mailto:freeswitch-users@lists.freeswitch.org"><freeswitch-users@lists.freeswitch.org>></a>, <span style="color:black">Brian West</span> <a href="mailto:brian@freeswitch.org"><brian@freeswitch.org>></a><br>Subject: <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, <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;">
</div>
<div id="bloop_sign_1418743426913999104" class="bloop_sign">
<div style="font-family:helvetica,arial;font-size:13px">
-- <br>
Muhammad Naseer Bhatti<br>
Sent with Airmail</div>
</div>
<div style="color:black"><br>
From: <span style="color:black">Brian West</span> <a href="mailto:brian@freeswitch.org"><brian@freeswitch.org></a><br>
Reply: <span style="color:black">FreeSWITCH Users Help</span>
<a href="mailto:freeswitch-users@lists.freeswitch.org"><freeswitch-users@lists.freeswitch.org>></a><br>
Date: <span style="color:black">December 16, 2014 at 6:20:48
PM</span><br>
To: <span style="color:black">FreeSWITCH Users Help</span>
<a href="mailto:freeswitch-users@lists.freeswitch.org"><freeswitch-users@lists.freeswitch.org>></a><br>
Subject: <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"><<a href="mailto:nbhatti@gmail.com" target="_blank">nbhatti@gmail.com</a>></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
<<a href="mailto:nbhatti@gmail.com" target="_blank">nbhatti@gmail.com</a>> 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, </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)">
<?xml version='1.0' encoding='UTF-8' standalone='no'?></p>
<p style="margin:0px;font-size:11px;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)">
<document type='freeswitch/xml'></p>
<p style="margin:0px;font-size:11px;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)">
<section name='directory'></p>
<p style="margin:0px;font-size:11px;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)">
<domain name='10.211.55.26'></p>
<p style="margin:0px;font-size:11px;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)">
<user id='9401404' cacheable='2000'></p>
<p style="margin:0px;font-size:11px;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)">
<params></p>
<p style="margin:0px;font-size:11px;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)">
<param name='a1-hash'
value='3c66e98d4b174b42d3e17669b59165c9'/></p>
<p style="margin:0px;font-size:11px;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)">
<param name='max-registrations-per-extension'
value='1'/></p>
<p style="margin:0px;font-size:11px;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)">
<param name='allow-empty-password' value='false'/></p>
<p style="margin:0px;font-size:11px;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)">
<param name='sip-force-expires' value='180'/></p>
<p style="margin:0px;font-size:11px;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)">
</params></p>
<p style="margin:0px;font-size:11px;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)">
<variables></p>
<p style="margin:0px;font-size:11px;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)">
<variable name='customer_id' value='98765'/></p>
<p style="margin:0px;font-size:11px;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)">
<variable name='effective_caller_id_name' value='Mr
Bhatti'/></p>
<p style="margin:0px;font-size:11px;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)">
<variable name='effective_caller_id_number'
value='9401404'/></p>
<p style="margin:0px;font-size:11px;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)">
<variable name='debug_call' value='0'/></p>
<p style="margin:0px;font-size:11px;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)">
<variable name='debug_sql' value='0'/></p>
<p style="margin:0px;font-size:11px;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)">
<variable name='user_context' value='vbilling'/></p>
<p style="margin:0px;font-size:11px;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)">
<variable name='hangup_after_bridge'
value='true'/></p>
<p style="margin:0px;font-size:11px;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)">
<variable name='xbypass' value='google'/></p>
<p style="margin:0px;font-size:11px;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)">
<variable name='account_type_02' value='pre'/></p>
<p style="margin:0px;font-size:11px;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)">
<variable name='account_type_03' value='pre'/></p>
<p style="margin:0px;font-size:11px;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)">
<variable name='account_type' value='pre'/></p>
<p style="margin:0px;font-size:11px;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)">
</variables></p>
<p style="margin:0px;font-size:11px;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)">
</user></p>
<p style="margin:0px;font-size:11px;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)">
</domain></p>
<p style="margin:0px;font-size:11px;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)">
</section></p>
<p style="margin:0px;font-size:11px;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)">
</document></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> </span><u>account_type</u>which is last
variable, and make it on top, it shows there in the XML_REQUEST but
then<span> </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. </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">-- <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 | <b>ISN:</b>410*543
| <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>