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

Yuriy Nasida nasida at live.ru
Thu Feb 23 23:12:04 MSK 2012


Solved.max-registrations-per-extension works fine after my second checking. Also somebody just has added this "max-registrations-per-extension"  to wiki page. I just was going to make it.Anyway It was interesting to speak with itself...Thanks me for the help  :)
From: nasida at live.ru
To: freeswitch-users at lists.freeswitch.org
Date: Wed, 22 Feb 2012 19:37:23 +0400
Subject: Re: [Freeswitch-users] need more variables which xml_curl module sends







I see. Thanks anyway.
I continue my research and still wait any advise.
I have found some similar function on this page:http://jira.freeswitch.org/browse/FS-2720 
Rupa Schomaker said that he created two additional parameters: user-agent-filter and max-registrations. It is not exactly that I need because I don't need user-agent-filter but I have tried it.I have checked sofia_reg.c and have seen code Rupa said, but... it looks like not work.
if anybody tried to use parameters:  and max-registrations described on this page: http://jira.freeswitch.org/browse/FS-2720  ?

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

Hi, 
I haven't tried this and have no idea.
Wait for others to respond
Regards,
Zohair Raza


2012/2/19 Yuriy Nasida <nasida at live.ru>






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.


 		 	   		  

_________________________________________________________________________

Professional FreeSWITCH Consulting Services:

consulting at freeswitch.org

http://www.freeswitchsolutions.com









Official FreeSWITCH Sites

http://www.freeswitch.org

http://wiki.freeswitch.org

http://www.cluecon.com



FreeSWITCH-users mailing list

FreeSWITCH-users at lists.freeswitch.org

http://lists.freeswitch.org/mailman/listinfo/freeswitch-users

UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users

http://www.freeswitch.org





_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting at freeswitch.org
http://www.freeswitchsolutions.com




Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org 		 	   		  

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting at freeswitch.org
http://www.freeswitchsolutions.com




Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120224/e09e05df/attachment.html 


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