<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
<div>Solved.</div><div>max-registrations-per-extension works fine after my second checking. Also somebody just has added this "<span style="font-size: 10pt; ">max-registrations-per-extension" </span><span style="font-size: 10pt; "> to wiki page. I just was going to make it.</span></div><div>Anyway It was interesting to speak with itself...</div><div>Thanks me for the help :)</div><br><div><div id="SkyDrivePlaceholder"></div><hr id="stopSpelling">From: nasida@live.ru<br>To: freeswitch-users@lists.freeswitch.org<br>Date: Wed, 22 Feb 2012 19:37:23 +0400<br>Subject: Re: [Freeswitch-users] need more variables which xml_curl module sends<br><br>
<meta http-equiv="Content-Type" content="text/html; charset=unicode">
<meta name="Generator" content="Microsoft SafeHTML">
<style>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Tahoma;}
</style>
<div dir="ltr">
<div>I see. Thanks anyway.</div><div><br></div><div>I continue my research and still wait any advise.</div><div><br></div><div>I have found some similar function on this page:</div><div>http://jira.freeswitch.org/browse/FS-2720 </div><div><br></div><div>Rupa Schomaker said that he created two additional parameters: user-agent-filter and max-registrations. </div><div>It is not exactly that I need because I don't need user-agent-filter but I have tried it.</div><div>I have checked sofia_reg.c and have seen code Rupa said, but... it looks like not work.</div><div><br></div><div>if anybody tried to use parameters: and max-registrations described on this page: http://jira.freeswitch.org/browse/FS-2720 ?</div><div><div><br></div><br><div><div id="ecxSkyDrivePlaceholder"></div><hr id="ecxstopSpelling">From: engineerzuhairraza@gmail.com<br>Date: Wed, 22 Feb 2012 18:54:48 +0400<br>To: freeswitch-users@lists.freeswitch.org<br>Subject: Re: [Freeswitch-users] need more variables which xml_curl module        sends<br><br><div dir="ltr">Hi, <div><br></div><div>I haven't tried this and have no idea.</div><div><br></div><div>Wait for others to respond</div><div><br></div><div><br clear="all"><div dir="ltr">Regards,<br>Zohair Raza</div><div dir="ltr">
<br></div><div class="ecxgmail_quote">2012/2/19 Yuriy Nasida <span dir="ltr"><<a href="mailto:nasida@live.ru">nasida@live.ru</a>></span><br><blockquote class="ecxgmail_quote" style="border-left:1px #ccc solid;padding-left:1ex">
<div><div dir="ltr">
<div>Hi Zohair Raza,</div><div><br></div><div>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: <a href="http://wiki.freeswitch.org/wiki/Mod_xml_curl#Authorization" target="_blank">http://wiki.freeswitch.org/wiki/Mod_xml_curl#Authorization</a> </div>
<div><br></div><div>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).</div><div><br></div><div>I need more variables for implementation of possibility to limit max amount of simultaneous registrations. So I plan to use <a href="http://wiki.freeswitch.org/wiki/API_sofia_count_reg" target="_blank">http://wiki.freeswitch.org/wiki/API_sofia_count_reg</a> from php script when xml_curl module sends POST request whith section=directory. But there is one problem.</div>
<div><br></div><div>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)</div>
<div>At present I search some method for recieve variables I need without modifying of source of curl module.</div><div><br></div><div><br></div><div>Thanks.</div><br><br><div><div></div><hr>From: <a href="mailto:engineerzuhairraza@gmail.com">engineerzuhairraza@gmail.com</a><br>
Date: Sun, 19 Feb 2012 11:17:48 +0400<br>To: <a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a><br>Subject: Re: [Freeswitch-users] need more variables which xml_curl module        sends<br>
<br><div dir="ltr"><div class="ecxim">Hi, <div><br></div><div>They are already available in xml_curl POST, here is the complete post from freeswitch </div><div><br></div><div>Also, if you need any custom variable, you can export using export application and get it in xml_cdr</div>
<div><br></div></div><div><span style="font-size:8.5pt;line-height:115%;font-family:"Arial","sans-serif";color:#222222">[hostname=zuhair.host&section=</span><span>dialplan&tag_name=&key_name=&</span><br>
<span><br></span><br><div class="ecxim"><div dir="ltr">Regards,<br>Zohair Raza<div><br></div></div><div>2012/2/17 Yuriy Nasida <span dir="ltr"><<a href="mailto:nasida@live.ru">nasida@live.ru</a>></span><br>
<blockquote style="border-left:1px #ccc solid;padding-left:1ex">
<div><div dir="ltr">
<div>Hello FS users,</div><div><br></div><div>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.</div>
<div><br></div><div>I see list of variables:</div><div><a href="http://wiki.freeswitch.org/wiki/Mod_xml_curl#Authorization" target="_blank">http://wiki.freeswitch.org/wiki/Mod_xml_curl#Authorization</a> </div><div><br></div>
<div>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.</div><div><br></div><div>Please advise.</div><div>Thanks.</div></div></div>
<br></blockquote></div></div></div></div></div>                                            </div></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>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.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://wiki.freeswitch.org" target="_blank">http://wiki.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>
<br></blockquote></div><br></div></div>
<br>_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org</div></div>                                            </div>
<br>_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org</div>                                            </div></body>
</html>