<div dir="ltr">yap, figured that out :=)))<div>thanks for the tip.</div><div><br></div><div>so, do we have a complete list of requests made by FS for directory binding ?</div><div><br></div><div>T.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 23 December 2016 at 00:21, Michael Jerris <span dir="ltr"><<a href="mailto:mike@jerris.com" target="_blank">mike@jerris.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">check out mod_dptools.c:4231<br>
<br>
this is the code that actually processes the return<br>
<br>
looks like it looks for dial-string and params prefixed with “dial-var-“ .. if you don’t have any vars you are inserting in you don’t need those<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
> On Dec 22, 2016, at 6:43 AM, Vallimamod Abdullah <<a href="mailto:vma@vallimamod.org">vma@vallimamod.org</a>> wrote:<br>
><br>
> Well, a safe bet is to return the complete user document (as in your first example) in both cases to allow it to be fully cached.<br>
><br>
> Also, you need to test but I am not sure if just returning the domain dial-string param will work in the user_call case. The code specifically requests the user element and the group and domain params/vars are merged to it during lookup.<br>
><br>
> Best Regards,<br>
> --<br>
> Vallimamod Abdullah<br>
> <a href="mailto:vma@vallimamod.org">vma@vallimamod.org</a><br>
> .<br>
><br>
><br>
>> On 22 Dec 2016, at 12:11, Tihomir Culjaga <<a href="mailto:tculjaga@gmail.com">tculjaga@gmail.com</a>> wrote:<br>
>><br>
>><br>
>><br>
>> On 22 December 2016 at 11:53, Vallimamod Abdullah <<a href="mailto:vma@vallimamod.org">vma@vallimamod.org</a>> wrote:<br>
>> Hi,<br>
>><br>
>>> purpose=null, action=user_call - what do i send here ?<br>
>><br>
>> This is called when you dial with the user channel (user/agent1) to retrieve the dial-string data. So you need to send user info here.<br>
>><br>
>><br>
>> so in other words all i need here, is to return dial-string ?<br>
>><br>
>> in my case:<br>
>><br>
>> <document type="freeswitch/xml"><br>
>> <section name="directory"><br>
>> <domain name="$${domain}"><br>
>> <params><br>
>> <param name="dial-string" value="{^^:sip_invite_domain=$<wbr>{dialed_domain}:presence_id=${<wbr>dialed_user}@${dialed_domain}}<wbr>${sofia_contact(*/${dialed_<wbr>user}@${dialed_domain})},${<wbr>verto_contact(${dialed_user}@$<wbr>{dialed_domain})}"/><br>
>> </params><br>
>> </domain><br>
>> </section><br>
>> </document><br>
>><br>
>><br>
>>> purpose=null, reverse-auth-lookup - what do i return here ?<br>
>><br>
>> This is called when authenticating the user to retrieve auth related params (password, a1-hash, auth-acl, etc.) So you also need to send user info here.<br>
>><br>
>><br>
>> cool, i can return just a1-hash and see if it works :=)<br>
>><br>
>><br>
>><br>
>><br>
>><br>
>> Best Regards,<br>
>> --<br>
>> Vallimamod Abdullah<br>
>> <a href="mailto:vma@vallimamod.org">vma@vallimamod.org</a><br>
>> .<br>
>><br>
>>> On 22 Dec 2016, at 10:28, Tihomir Culjaga <<a href="mailto:tculjaga@gmail.com">tculjaga@gmail.com</a>> wrote:<br>
>>><br>
>>> Hello everyone,<br>
>>><br>
>>> i'd like to use mod_xml_curl for serving directory.<br>
>>><br>
>>> <binding name="my_registrations"><br>
>>> <param name="gateway-url" value="<a href="http://192.168.5.150:8080/getuser" rel="noreferrer" target="_blank">http://192.168.5.150:<wbr>8080/getuser</a>" bindings="directory"/><br>
>>> <param name="method" value="GET"/><br>
>>> <param name="timeout" value="10"/><br>
>>> </binding><br>
>>><br>
>>> ...and as far as registrations ( SIP or verto ) it is ok, meaning my devices do register.<br>
>>><br>
>>><br>
>>> i return something like this:<br>
>>><br>
>>> <document type="freeswitch/xml"><br>
>>> <section name="directory"><br>
>>> <domain name="$${domain}"><br>
>>> <params><br>
>>> <param name="dial-string" value="{^^:sip_invite_domain=$<wbr>{dialed_domain}:presence_id=${<wbr>dialed_user}@${dialed_domain}}<wbr>${sofia_contact(*/${dialed_<wbr>user}@${dialed_domain})},${<wbr>verto_contact(${dialed_user}@$<wbr>{dialed_domain})}"/><br>
>>> <param name="jsonrpc-allowed-methods" value="verto"/><br>
>>> </params><br>
>>> <groups><br>
>>> <group name="nexios-cc"><br>
>>> <users><br>
>>> <user id="agent1" number-alias="1031" cacheable="10000"><br>
>>> <params><br>
>>> <param name="a1-hash" value="<wbr>f40e695952e177a9224ca3f54bf6ec<wbr>5a"/><br>
>>> </params><br>
>>> <variables><br>
>>> <variable name="user_context" value="default"/><br>
>>> <variable name="effective_caller_id_<wbr>name" value="EXT 1031"/><br>
>>> <variable name="effective_caller_id_<wbr>number" value="1031"/><br>
>>> </variables><br>
>>> </user><br>
>>> </users><br>
>>> </group><br>
>>> </groups><br>
>>> </domain><br>
>>> </section><br>
>>> </document><br>
>>><br>
>>><br>
>>> but when i place a call i get a request with action=user_call with no other info than user xxx is trying to place an outgoing call without saying where :=)<br>
>>><br>
>>> section=directory&tag_name=<wbr>domain&key_name=name&key_<wbr>value=192.168.5.150&Event-<wbr>Name=REQUEST_PARAMS&Core-UUID=<wbr>15731076-c3d5-4ad6-8518-<wbr>41b9c42140be&FreeSWITCH-<wbr>Hostname=bladeranger&<wbr>FreeSWITCH-Switchname=<wbr>bladeranger&FreeSWITCH-IPv4=<wbr>192.168.5.150&FreeSWITCH-IPv6=<wbr>%3A%3A1&Event-Date-Local=2016-<wbr>12-22%2009%3A44%3A56&Event-<wbr>Date-GMT=Thu,%2022%20Dec%<wbr>202016%2008%3A44%3A56%20GMT&<wbr>Event-Date-Timestamp=<wbr>1482396296153258&Event-<wbr>Calling-File=mod_dptools.c&<wbr>Event-Calling-Function=user_<wbr>outgoing_channel&Event-<wbr>Calling-Line-Number=4129&<wbr>Event-Sequence=7368&as_<wbr>channel=true&action=user_call&<wbr>originate_timeout=0&<wbr>origination_uuid=bf0fd829-<wbr>56df-48c4-8112-41ba777ee91d&<wbr>ignore_early_media=true&last_<wbr>route=true&origination_caller_<wbr>id_number=xxxxxxxx&<wbr>origination_caller_id_name=<wbr>xxxxxxxx&key=id&user=agent1&<wbr>domain=192.168.5.150<br>
>>><br>
>>><br>
>>><br>
>>> So, here i got few questions :=)<br>
>>><br>
>>> • purpose=null, action=sip_auth - i send user info here (SIP)<br>
>>> • purpose=null, action=jsonrpc-authenticate - i send user info here (Verto)<br>
>>> • purpose=null, action=user_call - what do i send here ?<br>
>>> • purpose=null, reverse-auth-lookup - what do i return here ?<br>
>>> • purpose=gateways - i will send "not found"<br>
>>> • purpose=network-list - i will send "not found"<br>
>>> • purpose=publish-vm - i will send "not found"<br>
>>><br>
>>><br>
>>> Thanks to everyone who is going to enlight these few things above :=)<br>
>>><br>
>>> regards,<br>
>>> Tihomir.<br>
>>><br>
>>><br>
>>><br>
>>><br>
>>><br>
>>><br>
>>><br>
>>> ______________________________<wbr>______________________________<wbr>_____________<br>
>>> Professional FreeSWITCH Consulting Services:<br>
>>> <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
>>> <a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.<wbr>freeswitchsolutions.com</a><br>
>>><br>
>>> Official FreeSWITCH Sites<br>
>>> <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
>>> <a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.<wbr>org</a><br>
>>> <a href="http://www.cluecon.com" rel="noreferrer" 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.<wbr>freeswitch.org</a><br>
>>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a><br>
>>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a><br>
>>> <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
>><br>
>><br>
>> ______________________________<wbr>______________________________<wbr>_____________<br>
>> Professional FreeSWITCH Consulting Services:<br>
>> <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
>> <a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.<wbr>freeswitchsolutions.com</a><br>
>><br>
>> Official FreeSWITCH Sites<br>
>> <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
>> <a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.<wbr>org</a><br>
>> <a href="http://www.cluecon.com" rel="noreferrer" 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.<wbr>freeswitch.org</a><br>
>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a><br>
>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a><br>
>> <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
>><br>
>> ______________________________<wbr>______________________________<wbr>_____________<br>
>> Professional FreeSWITCH Consulting Services:<br>
>> <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
>> <a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.<wbr>freeswitchsolutions.com</a><br>
>><br>
>> Official FreeSWITCH Sites<br>
>> <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
>> <a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.<wbr>org</a><br>
>> <a href="http://www.cluecon.com" rel="noreferrer" 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.<wbr>freeswitch.org</a><br>
>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a><br>
>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a><br>
>> <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
><br>
><br>
> ______________________________<wbr>______________________________<wbr>_____________<br>
> Professional FreeSWITCH Consulting Services:<br>
> <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
> <a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.<wbr>freeswitchsolutions.com</a><br>
><br>
> Official FreeSWITCH Sites<br>
> <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
> <a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.<wbr>org</a><br>
> <a href="http://www.cluecon.com" rel="noreferrer" 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.<wbr>freeswitch.org</a><br>
> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a><br>
> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a><br>
> <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<br>
<br>
______________________________<wbr>______________________________<wbr>_____________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.<wbr>freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.<wbr>org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" 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.<wbr>freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a></div></div></blockquote></div><br></div>