[Freeswitch-users] Strange xml_curl behavior. Can't see more than 7 variables on POST

Muhammad Naseer Bhatti nbhatti at gmail.com
Tue Dec 16 18:01:19 MSK 2014


  

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.




Sent with Unibox



> On Dec 16, 2014, at 5:57 PM, Muhammad Naseer Bhatti <nbhatti at gmail.com> wrote:
> 
> 
> I am using xml_curl to generate all config dynamically and this is getting very strange, my directory looks like this, 
> 
> 
> <?xml version='1.0' encoding='UTF-8' standalone='no'?>
> 
> <document type='freeswitch/xml'>
> 
>  <section name='directory'>
> 
>   <domain name='10.211.55.26'>
> 
>   <user id='9401404' cacheable='2000'>
> 
>   <params>
> 
>   <param name='a1-hash' value='3c66e98d4b174b42d3e17669b59165c9'/>
> 
>   <param name='max-registrations-per-extension' value='1'/>
> 
>   <param name='allow-empty-password' value='false'/>
> 
>   <param name='sip-force-expires' value='180'/>
> 
>   </params>
> 
>   <variables>
> 
>   <variable name='customer_id' value='98765'/>
> 
>   <variable name='effective_caller_id_name' value='Mr Bhatti'/>
> 
>   <variable name='effective_caller_id_number' value='9401404'/>
> 
>   <variable name='debug_call' value='0'/>
> 
>   <variable name='debug_sql' value='0'/>
> 
>   <variable name='user_context' value='vbilling'/>
> 
>   <variable name='hangup_after_bridge' value='true'/>
> 
>   <variable name='xbypass' value='google'/>
> 
>   <variable name='account_type_02' value='pre'/>
> 
>   <variable name='account_type_03' value='pre'/>
> 
>   <variable name='account_type' value='pre'/>
> 
>   </variables>
> 
>   </user>
> 
>   </domain>
> 
>  </section>
> 
> </document>
> 
> 
> 
> 
> 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 account_type
> which is last variable, and make it on top, it shows there in the XML_REQUEST but then hangup_after_bridge
> 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. 
> 
> -- 
> Muhammad Naseer Bhatti
> 
> 
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20141216/c926e228/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list