<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>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: http://wiki.freeswitch.org/wiki/Mod_xml_curl#Authorization </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 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.</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 id="SkyDrivePlaceholder"></div><hr id="stopSpelling">From: engineerzuhairraza@gmail.com<br>Date: Sun, 19 Feb 2012 11:17: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>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><p class="ecxMsoNormal"><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></p>
<p class="ecxMsoNormal"><span><br></span></p><div dir="ltr">Regards,<br>Zohair Raza<div><br></div></div><div class="ecxgmail_quote">2012/2/17 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>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></body>
</html>