<div dir="ltr"><div>I just try to realize user\gateway dialplan generation based on database data fetching via xml_curl.</div><div>At database there are 3 types of subscribers:</div><div>1. basic user registering at FS using login\passwd</div>
<div>2. gateway authenticated by ip address</div><div>3. gateway authenticated by ip address and ani</div><div><br></div><div>So, i made some comparisons before on different user types POST requests, most of POST fields are same for all kind of endpoints user or gateway.</div>
<div>Is it other solutions or workarounds to realize it? </div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Nov 19, 2013 at 1:57 PM, Cal Leeming [Simplicity Media Ltd] <span dir="ltr"><<a href="mailto:cal.leeming@simplicitymedialtd.co.uk" target="_blank">cal.leeming@simplicitymedialtd.co.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Throw the raw XML from multiple requests into your favorite diff<br>
software (if you're using windows, then check out Beyond Compare),<br>
that will allow you to see which fields are different between<br>
requests.<br>
<br>
As mentioned before, this is not a quick/simple thing to undertake. If<br>
you do this properly you'll need to analyse multiple use cases to<br>
determine if your approach is correct.<br>
<br>
Ask yourself what it is you are trying to achieve, and determine if<br>
mod_xml_curl is the best way to do that. As much as I love<br>
mod_xml_curl, sometimes it's not the right tool for the job depending<br>
on what you are trying to do (sometimes there are easier ways).<br>
<span class="HOEnZb"><font color="#888888"><br>
Cal<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On Tue, Nov 19, 2013 at 9:55 AM, vad fabi <<a href="mailto:vaad.fabi@gmail.com">vaad.fabi@gmail.com</a>> wrote:<br>
> Performed some tests for registered\unregistered user and gateway, and in<br>
> all cases dialplan request was almost same :(<br>
> I found that for registered user POST varibale<br>
> FreeSWITCH-IPv4=variable_sip_from_host always and for gateways<br>
> variable_sip_from_host = "IP of gateway". I don't know is it enough for<br>
> strong identifying such request belongs registered user, but it only one<br>
> mark.<br>
> Also i don't know how to identify dialplan request of registered and<br>
> unregistered users, it still big mystery for me ...<br>
><br>
><br>
><br>
> On Tue, Nov 19, 2013 at 1:14 AM, Cal Leeming [Simplicity Media Ltd]<br>
> <<a href="mailto:cal.leeming@simplicitymedialtd.co.uk">cal.leeming@simplicitymedialtd.co.uk</a>> wrote:<br>
>><br>
>> Converting the values from mod_xml_curl into application logic is not<br>
>> straight forward, sometimes you have to compare multiple values in the<br>
>> request to determine what is happening. For example, the mod_xml_curl<br>
>> request for a registered gateway will be very different from that of<br>
>> an unregistered gateway. Same goes for registered/unregistered users.<br>
>> And it gets even more complicated when you throw multi tenant into the<br>
>> picture, as well as blind and attended transfers.<br>
>><br>
>> At the moment there is no external library that performs this logic<br>
>> conversion for you - although I am working on one for Python as we<br>
>> speak.<br>
>><br>
>> The best advice I can give is to keep trying, but don't expect this to<br>
>> be a one day job (at least, not if you do it properly).<br>
>><br>
>> Cal<br>
>><br>
>><br>
>> On Mon, Nov 18, 2013 at 9:53 PM, vad fabi <<a href="mailto:vaad.fabi@gmail.com">vaad.fabi@gmail.com</a>> wrote:<br>
>> > Hi all,<br>
>> ><br>
>> > How to indentify call initiator type (gateway or locally registered<br>
>> > user)<br>
>> > then freeswitch sends xml_curl dialplan request ?<br>
>> > As i see all post variables almost same for both types.<br>
>> ><br>
>> ><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>
>><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>
><br>
</div></div></blockquote></div><br></div>