<div dir="ltr">Hello everyone,<div><br></div><div>i&#39;d like to use mod_xml_curl for serving directory.</div><div><br></div><div><div>    &lt;binding name=&quot;my_registrations&quot;&gt;</div><div>      &lt;param name=&quot;gateway-url&quot; value=&quot;<a href="http://192.168.5.150:8080/getuser">http://192.168.5.150:8080/getuser</a>&quot; bindings=&quot;directory&quot;/&gt;<br></div><div>      &lt;param name=&quot;method&quot; value=&quot;GET&quot;/&gt;</div><div>      &lt;param name=&quot;timeout&quot; value=&quot;10&quot;/&gt;</div><div>    &lt;/binding&gt;</div></div><div><br></div><div>...and as far as registrations ( SIP or verto ) it is ok, meaning my devices do register.</div><div><br></div><div><br></div><div>i return something like this:<br></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 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">jsonrpc-allowed-methods</span>&quot;</span><span class="gmail-html-attribute"> <span class="gmail-html-attribute-name">value</span>=&quot;<span class="gmail-html-attribute-value">verto</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"><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;groups&gt;</span></div><div class="gmail-collapsible-content" style="margin-left:1em"><span class="gmail-text"></span><div class="gmail-collapsible" id="gmail-collapsible5"><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;group<span class="gmail-html-attribute"> <span class="gmail-html-attribute-name">name</span>=&quot;<span class="gmail-html-attribute-value">nexios-cc</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-collapsible6"><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;users&gt;</span></div><div class="gmail-collapsible-content" style="margin-left:1em"><span class="gmail-text"></span><div class="gmail-collapsible" id="gmail-collapsible7"><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;user<span class="gmail-html-attribute"> <span class="gmail-html-attribute-name">id</span>=&quot;<span class="gmail-html-attribute-value">agent1</span>&quot;</span><span class="gmail-html-attribute"> <span class="gmail-html-attribute-name">number-alias</span>=&quot;<span class="gmail-html-attribute-value">1031</span>&quot;</span><span class="gmail-html-attribute"> <span class="gmail-html-attribute-name">cacheable</span>=&quot;10<span class="gmail-html-attribute-value">000</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-collapsible8"><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">a1-hash</span>&quot;</span><span class="gmail-html-attribute"> <span class="gmail-html-attribute-name">value</span>=&quot;<span class="gmail-html-attribute-value">f40e695952e177a9224ca3f54bf6ec5a</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-collapsible9"><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;variables&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;variable<span class="gmail-html-attribute"> <span class="gmail-html-attribute-name">name</span>=&quot;<span class="gmail-html-attribute-value">user_context</span>&quot;</span><span class="gmail-html-attribute"> <span class="gmail-html-attribute-name">value</span>=&quot;<span class="gmail-html-attribute-value">default</span>&quot;</span>/&gt;</span></div><span class="gmail-text"></span><div class="gmail-line"><span class="gmail-html-tag">&lt;variable<span class="gmail-html-attribute"> <span class="gmail-html-attribute-name">name</span>=&quot;<span class="gmail-html-attribute-value">effective_caller_id_name</span>&quot;</span><span class="gmail-html-attribute"> <span class="gmail-html-attribute-name">value</span>=&quot;<span class="gmail-html-attribute-value">EXT 1031</span>&quot;</span>/&gt;</span></div><span class="gmail-text"></span><div class="gmail-line"><span class="gmail-html-tag">&lt;variable<span class="gmail-html-attribute"> <span class="gmail-html-attribute-name">name</span>=&quot;<span class="gmail-html-attribute-value">effective_caller_id_number</span>&quot;</span><span class="gmail-html-attribute"> <span class="gmail-html-attribute-name">value</span>=&quot;<span class="gmail-html-attribute-value">1031</span>&quot;</span>/&gt;</span></div><span class="gmail-text"></span></div><div class="gmail-line"><span class="gmail-html-tag">&lt;/variables&gt;</span></div></div></div><span class="gmail-text"></span></div><div class="gmail-line"><span class="gmail-html-tag">&lt;/user&gt;</span></div></div></div><span class="gmail-text"></span></div><div class="gmail-line"><span class="gmail-html-tag">&lt;/users&gt;</span></div></div></div><span class="gmail-text"></span></div><div class="gmail-line"><span class="gmail-html-tag">&lt;/group&gt;</span></div></div></div><span class="gmail-text"></span></div><div class="gmail-line"><span class="gmail-html-tag">&lt;/groups&gt;</span></div></div></div><span class="gmail-text"></span></div><div class="gmail-line"><span class="gmail-html-tag">&lt;/domain&gt;</span></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 class="gmail-line" style="color:rgb(0,0,0);font-family:monospace;font-size:13px"><br></div><div><br></div><div>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 :=)</div><div><br></div><div>section=directory&amp;tag_name=domain&amp;key_name=name&amp;key_value=192.168.5.150&amp;Event-Name=REQUEST_PARAMS&amp;Core-UUID=15731076-c3d5-4ad6-8518-41b9c42140be&amp;FreeSWITCH-Hostname=bladeranger&amp;FreeSWITCH-Switchname=bladeranger&amp;FreeSWITCH-IPv4=192.168.5.150&amp;FreeSWITCH-IPv6=%3A%3A1&amp;Event-Date-Local=2016-12-22%2009%3A44%3A56&amp;Event-Date-GMT=Thu,%2022%20Dec%202016%2008%3A44%3A56%20GMT&amp;Event-Date-Timestamp=1482396296153258&amp;Event-Calling-File=mod_dptools.c&amp;Event-Calling-Function=user_outgoing_channel&amp;Event-Calling-Line-Number=4129&amp;Event-Sequence=7368&amp;as_channel=true&amp;action=user_call&amp;originate_timeout=0&amp;origination_uuid=bf0fd829-56df-48c4-8112-41ba777ee91d&amp;ignore_early_media=true&amp;last_route=true&amp;origination_caller_id_number=xxxxxxxx&amp;origination_caller_id_name=xxxxxxxx&amp;key=id&amp;user=agent1&amp;domain=192.168.5.150<br></div><div><br></div><div><br></div><div><br></div><div>So, here i got few questions :=)</div><div><br></div><div><ol><li>purpose=null, action=sip_auth - i send user info here (SIP)<br></li><li>purpose=null, action=jsonrpc-authenticate - i send user info here (Verto)</li><li>purpose=null, action=user_call - what do i send here ?<br></li><li>purpose=null, reverse-auth-lookup - what do i return here ?</li><li>purpose=gateways - i will send &quot;not found&quot;<br></li><li>purpose=network-list - i will send &quot;not found&quot;<br></li><li>purpose=publish-vm - i will send &quot;not found&quot;</li></ol><div><br></div></div><div><br></div><div>Thanks to everyone who is going to enlight these few things above :=)</div><div><br></div><div>regards,</div><div>Tihomir.</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div>