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

Yuriy Nasida nasida at live.ru
Tue Feb 21 21:52:51 MSK 2012

Well. I have tried to use variable sip_auth_nonce for my goals but it is not so good idea I think. 
Guys, can you add variable Call-ID to authorization request - http://wiki.freeswitch.org/wiki/Mod_xml_curl#AuthorizationI think it will be very usefull.
Or probably you know any other method for limitation of amount of simultaneous registrations ?

From: nasida at live.ru
To: freeswitch-users at lists.freeswitch.org
Date: Sun, 19 Feb 2012 21:06:00 +0400
Subject: Re: [Freeswitch-users] need more variables which xml_curl module sends

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.


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

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


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.

Professional FreeSWITCH Consulting Services:
consulting at freeswitch.org

Official FreeSWITCH Sites

FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120221/bd914b71/attachment.html 

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