<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On 22 December 2016 at 11:53, Vallimamod Abdullah <span dir="ltr"><<a href="mailto:vma@vallimamod.org" target="_blank">vma@vallimamod.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<span class="gmail-"><br>
> purpose=null, action=user_call - what do i send here ?<br>
<br>
</span>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>
<span class="gmail-"><br></span></blockquote><div><br></div><div>so in other words all i need here, is to return dial-string ?</div><div><br></div><div>in my case: </div><div><br></div><div><div class="gmail-line" style="color:rgb(0,0,0);font-family:monospace;font-size:13px"><span class="gmail-html-tag"><document<span class="gmail-html-attribute"> <span class="gmail-html-attribute-name">type</span>="<span class="gmail-html-attribute-value">freeswitch/xml</span>"</span>></span></div><div class="gmail-collapsible-content" style="margin-left:1em;color:rgb(0,0,0);font-family:monospace;font-size:13px"><span class="gmail-text"></span><div class="gmail-collapsible" id="gmail-collapsible1"><div class="expanded"><div class="gmail-line"><span class="gmail-button gmail-collapse-button" style="display:inline-block;width:10px;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;background-color:initial;vertical-align:bottom;height:10px"></span><span class="gmail-html-tag"><section<span class="gmail-html-attribute"> <span class="gmail-html-attribute-name">name</span>="<span class="gmail-html-attribute-value">directory</span>"</span>></span></div><div class="gmail-collapsible-content" style="margin-left:1em"><span class="gmail-text"></span><div class="gmail-collapsible" id="gmail-collapsible2"><div class="expanded"><div class="gmail-line"><span class="gmail-button gmail-collapse-button" style="display:inline-block;width:10px;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;background-color:initial;vertical-align:bottom;height:10px"></span><span class="gmail-html-tag"><domain<span class="gmail-html-attribute"> <span class="gmail-html-attribute-name">name</span>="<span class="gmail-html-attribute-value">$${domain}</span>"</span>></span></div><div class="gmail-collapsible-content" style="margin-left:1em"><span class="gmail-text"></span><div class="gmail-collapsible" id="gmail-collapsible3"><div class="expanded"><div class="gmail-line"><span class="gmail-button gmail-collapse-button" style="display:inline-block;width:10px;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;background-color:initial;vertical-align:bottom;height:10px"></span><span class="gmail-html-tag"><params></span></div><div class="gmail-collapsible-content" style="margin-left:1em"><span class="gmail-text"></span><div class="gmail-line"><span class="gmail-html-tag"><param<span class="gmail-html-attribute"> <span class="gmail-html-attribute-name">name</span>="<span class="gmail-html-attribute-value">dial-string</span>"</span><span class="gmail-html-attribute"> <span class="gmail-html-attribute-name">value</span>="<span class="gmail-html-attribute-value">{^^:sip_invite_domain=${dialed_domain}:presence_id=${dialed_user}@${dialed_domain}}${sofia_contact(*/${dialed_user}@${dialed_domain})},${verto_contact(${dialed_user}@${dialed_domain})}</span>"</span>/></span></div><span class="gmail-text"></span></div><div class="gmail-line"><span class="gmail-html-tag"></params></span></div></div></div><span class="gmail-text"></span><div class="gmail-collapsible" id="gmail-collapsible4"><div class="expanded"><div class="gmail-line"></domain><br></div></div></div></div></div></div><span class="gmail-text"></span></div><div class="gmail-line"><span class="gmail-html-tag"></section></span></div></div></div><span class="gmail-text"></span></div><div class="gmail-line" style="color:rgb(0,0,0);font-family:monospace;font-size:13px"><span class="gmail-html-tag"></document></span></div></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-">
> purpose=null, reverse-auth-lookup - what do i return here ?<br>
<br>
</span>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></blockquote><div><br></div><div>cool, i can return just a1-hash and see if it works :=)</div><div class="gmail-line" style="color:rgb(0,0,0);font-family:monospace;font-size:13px"><span class="gmail-html-tag"><br></span></div><div class="gmail-line" style="color:rgb(0,0,0);font-family:monospace;font-size:13px"><span class="gmail-html-tag"><br></span></div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Best Regards,<br>
<span class="gmail-HOEnZb"><font color="#888888">--<br>
Vallimamod Abdullah<br>
<a href="mailto:vma@vallimamod.org">vma@vallimamod.org</a><br>
.<br>
</font></span><div class="gmail-HOEnZb"><div class="gmail-h5"><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>
</div></div><div class="gmail-HOEnZb"><div class="gmail-h5">> ______________________________<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></div>