Performed some tests for registered\unregistered user and gateway, and in all cases dialplan request was almost same :(
I found that for registered user POST varibale FreeSWITCH-IPv4=variable_sip_from_host always and for gateways variable_sip_from_host = "IP of gateway". I don't know is it enough for strong identifying such request belongs registered user, but it only one mark.
Also i don't know how to identify dialplan request of registered and unregistered users, it still big mystery for me ...



On Tue, Nov 19, 2013 at 1:14 AM, Cal Leeming [Simplicity Media Ltd] <cal.leeming@simplicitymedialtd.co.uk> wrote:
Converting the values from mod_xml_curl into application logic is not
straight forward, sometimes you have to compare multiple values in the
request to determine what is happening. For example, the mod_xml_curl
request for a registered gateway will be very different from that of
an unregistered gateway. Same goes for registered/unregistered users.
And it gets even more complicated when you throw multi tenant into the
picture, as well as blind and attended transfers.

At the moment there is no external library that performs this logic
conversion for you - although I am working on one for Python as we
speak.

The best advice I can give is to keep trying, but don't expect this to
be a one day job (at least, not if you do it properly).

Cal


On Mon, Nov 18, 2013 at 9:53 PM, vad fabi <vaad.fabi@gmail.com> wrote:
> Hi all,
>
> How to indentify call initiator type (gateway or locally registered user)
> then freeswitch sends xml_curl dialplan request ?
> As i see all post variables almost same for both types.
>
> _________________________________________________________________________
> 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
>

_________________________________________________________________________
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