<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">&lt;<a href="mailto:vma@vallimamod.org" target="_blank">vma@vallimamod.org</a>&gt;</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>
&gt; 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">&lt;document<span class="gmail-html-attribute"> <span class="gmail-html-attribute-name">type</span>=&quot;<span class="gmail-html-attribute-value">freeswitch/xml</span>&quot;</span>&gt;</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">&lt;section<span class="gmail-html-attribute"> <span class="gmail-html-attribute-name">name</span>=&quot;<span class="gmail-html-attribute-value">directory</span>&quot;</span>&gt;</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">&lt;domain<span class="gmail-html-attribute"> <span class="gmail-html-attribute-name">name</span>=&quot;<span class="gmail-html-attribute-value">$${domain}</span>&quot;</span>&gt;</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">&lt;params&gt;</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">&lt;param<span class="gmail-html-attribute"> <span class="gmail-html-attribute-name">name</span>=&quot;<span class="gmail-html-attribute-value">dial-string</span>&quot;</span><span class="gmail-html-attribute"> <span class="gmail-html-attribute-name">value</span>=&quot;<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>&quot;</span>/&gt;</span></div><span class="gmail-text"></span></div><div class="gmail-line"><span class="gmail-html-tag">&lt;/params&gt;</span></div></div></div><span class="gmail-text"></span><div class="gmail-collapsible" id="gmail-collapsible4"><div class="expanded"><div class="gmail-line">&lt;/domain&gt;<br></div></div></div></div></div></div><span class="gmail-text"></span></div><div class="gmail-line"><span class="gmail-html-tag">&lt;/section&gt;</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">&lt;/document&gt;</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-">
&gt; 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>
&gt; On 22 Dec 2016, at 10:28, Tihomir Culjaga &lt;<a href="mailto:tculjaga@gmail.com">tculjaga@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; Hello everyone,<br>
&gt;<br>
&gt; i&#39;d like to use mod_xml_curl for serving directory.<br>
&gt;<br>
&gt;     &lt;binding name=&quot;my_registrations&quot;&gt;<br>
&gt;       &lt;param name=&quot;gateway-url&quot; value=&quot;<a href="http://192.168.5.150:8080/getuser" rel="noreferrer" target="_blank">http://192.168.5.150:<wbr>8080/getuser</a>&quot; bindings=&quot;directory&quot;/&gt;<br>
&gt;       &lt;param name=&quot;method&quot; value=&quot;GET&quot;/&gt;<br>
&gt;       &lt;param name=&quot;timeout&quot; value=&quot;10&quot;/&gt;<br>
&gt;     &lt;/binding&gt;<br>
&gt;<br>
&gt; ...and as far as registrations ( SIP or verto ) it is ok, meaning my devices do register.<br>
&gt;<br>
&gt;<br>
&gt; i return something like this:<br>
&gt;<br>
&gt; &lt;document type=&quot;freeswitch/xml&quot;&gt;<br>
&gt; &lt;section name=&quot;directory&quot;&gt;<br>
&gt; &lt;domain name=&quot;$${domain}&quot;&gt;<br>
&gt; &lt;params&gt;<br>
&gt; &lt;param name=&quot;dial-string&quot; value=&quot;{^^: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})}&quot;/&gt;<br>
&gt; &lt;param name=&quot;jsonrpc-allowed-methods&quot; value=&quot;verto&quot;/&gt;<br>
&gt; &lt;/params&gt;<br>
&gt; &lt;groups&gt;<br>
&gt; &lt;group name=&quot;nexios-cc&quot;&gt;<br>
&gt; &lt;users&gt;<br>
&gt; &lt;user id=&quot;agent1&quot; number-alias=&quot;1031&quot; cacheable=&quot;10000&quot;&gt;<br>
&gt; &lt;params&gt;<br>
&gt; &lt;param name=&quot;a1-hash&quot; value=&quot;<wbr>f40e695952e177a9224ca3f54bf6ec<wbr>5a&quot;/&gt;<br>
&gt; &lt;/params&gt;<br>
&gt; &lt;variables&gt;<br>
&gt; &lt;variable name=&quot;user_context&quot; value=&quot;default&quot;/&gt;<br>
&gt; &lt;variable name=&quot;effective_caller_id_<wbr>name&quot; value=&quot;EXT 1031&quot;/&gt;<br>
&gt; &lt;variable name=&quot;effective_caller_id_<wbr>number&quot; value=&quot;1031&quot;/&gt;<br>
&gt; &lt;/variables&gt;<br>
&gt; &lt;/user&gt;<br>
&gt; &lt;/users&gt;<br>
&gt; &lt;/group&gt;<br>
&gt; &lt;/groups&gt;<br>
&gt; &lt;/domain&gt;<br>
&gt; &lt;/section&gt;<br>
&gt; &lt;/document&gt;<br>
&gt;<br>
&gt;<br>
&gt; 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>
&gt;<br>
&gt; section=directory&amp;tag_name=<wbr>domain&amp;key_name=name&amp;key_<wbr>value=192.168.5.150&amp;Event-<wbr>Name=REQUEST_PARAMS&amp;Core-UUID=<wbr>15731076-c3d5-4ad6-8518-<wbr>41b9c42140be&amp;FreeSWITCH-<wbr>Hostname=bladeranger&amp;<wbr>FreeSWITCH-Switchname=<wbr>bladeranger&amp;FreeSWITCH-IPv4=<wbr>192.168.5.150&amp;FreeSWITCH-IPv6=<wbr>%3A%3A1&amp;Event-Date-Local=2016-<wbr>12-22%2009%3A44%3A56&amp;Event-<wbr>Date-GMT=Thu,%2022%20Dec%<wbr>202016%2008%3A44%3A56%20GMT&amp;<wbr>Event-Date-Timestamp=<wbr>1482396296153258&amp;Event-<wbr>Calling-File=mod_dptools.c&amp;<wbr>Event-Calling-Function=user_<wbr>outgoing_channel&amp;Event-<wbr>Calling-Line-Number=4129&amp;<wbr>Event-Sequence=7368&amp;as_<wbr>channel=true&amp;action=user_call&amp;<wbr>originate_timeout=0&amp;<wbr>origination_uuid=bf0fd829-<wbr>56df-48c4-8112-41ba777ee91d&amp;<wbr>ignore_early_media=true&amp;last_<wbr>route=true&amp;origination_caller_<wbr>id_number=xxxxxxxx&amp;<wbr>origination_caller_id_name=<wbr>xxxxxxxx&amp;key=id&amp;user=agent1&amp;<wbr>domain=192.168.5.150<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; So, here i got few questions :=)<br>
&gt;<br>
&gt;       • purpose=null, action=sip_auth - i send user info here (SIP)<br>
&gt;       • purpose=null, action=jsonrpc-authenticate - i send user info here (Verto)<br>
&gt;       • purpose=null, action=user_call - what do i send here ?<br>
&gt;       • purpose=null, reverse-auth-lookup - what do i return here ?<br>
&gt;       • purpose=gateways - i will send &quot;not found&quot;<br>
&gt;       • purpose=network-list - i will send &quot;not found&quot;<br>
&gt;       • purpose=publish-vm - i will send &quot;not found&quot;<br>
&gt;<br>
&gt;<br>
&gt; Thanks to everyone who is going to enlight these few things above :=)<br>
&gt;<br>
&gt; regards,<br>
&gt; Tihomir.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
</div></div><div class="gmail-HOEnZb"><div class="gmail-h5">&gt; ______________________________<wbr>______________________________<wbr>_____________<br>
&gt; Professional FreeSWITCH Consulting Services:<br>
&gt; <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
&gt; <a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.<wbr>freeswitchsolutions.com</a><br>
&gt;<br>
&gt; Official FreeSWITCH Sites<br>
&gt; <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
&gt; <a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.<wbr>org</a><br>
&gt; <a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
&gt;<br>
&gt; FreeSWITCH-users mailing list<br>
&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.<wbr>freeswitch.org</a><br>
&gt; <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>
&gt; 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>
&gt; <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>