[Freeswitch-users] need more variables which xml_curl module sends

Yuriy Nasida nasida at live.ru
Sun Feb 19 20:06:00 MSK 2012


Hi  Zohair  Raza,
Thank you for your reply. Yes you are correct for case - section=dialplan. But unfortunately I have not these variables with case - section=directory.  In POST request, I see these variables only:  http://wiki.freeswitch.org/wiki/Mod_xml_curl#Authorization  
Also I have not possibility to use the 'export application' because it is for period section=dialplan only (but dialplan is not used in this moment yet).
I need more variables for implementation of possibility to limit max amount of simultaneous registrations. So I plan to use http://wiki.freeswitch.org/wiki/API_sofia_count_reg  from php script when xml_curl module sends POST request whith section=directory. But there is one problem.
When sip device tries to do re-register, FS considers this request as a new registration. So FS will forbid this 'new  registration' if limit is exceeded and the sip device will lose the registration. Mod curl does not give me variables  for distinguishing the re-register from register (I would like to use variale variable_sip_call_id because re-register requests will have same sip_call_id)At present I search some method for recieve variables I need without modifying of source of curl module.

Thanks.

From: engineerzuhairraza at gmail.com
Date: Sun, 19 Feb 2012 11:17:48 +0400
To: freeswitch-users at lists.freeswitch.org
Subject: Re: [Freeswitch-users] need more variables which xml_curl module	sends

Hi, 
They are already available in xml_curl POST, here is the complete post from freeswitch 
Also, if you need any custom variable, you can export using export application and get it in xml_cdr


[hostname=zuhair.host&section=dialplan&tag_name=&key_name=&


Regards,
Zohair Raza
2012/2/17 Yuriy Nasida <nasida at live.ru>






Hello FS users,
I search some way for recieving more variables which my php script recieves in array - $_REQUEST from xml_curl module (it is intralanman's scripts) in case of recieving sip message - REGISTER from some sip device.


I see list of variables:http://wiki.freeswitch.org/wiki/Mod_xml_curl#Authorization 


But, I need more. For example I need to know source sip port of endpoint. Also I have to know full SIP contact header from REGISTER request.
Please advise.Thanks.
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120219/321beb27/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list