[Freeswitch-users] mod_xml_curl - directory only

Tihomir Culjaga tculjaga at gmail.com
Thu Dec 22 12:28:50 MSK 2016


Hello everyone,

i'd like to use mod_xml_curl for serving directory.

    <binding name="my_registrations">
      <param name="gateway-url" value="http://192.168.5.150:8080/getuser"
bindings="directory"/>
      <param name="method" value="GET"/>
      <param name="timeout" value="10"/>
    </binding>

...and as far as registrations ( SIP or verto ) it is ok, meaning my
devices do register.


i return something like this:

<document type="freeswitch/xml">
<section name="directory">
<domain name="$${domain}">
<params>
<param name="dial-string" value="
{^^:sip_invite_domain=${dialed_domain}:presence_id=${dialed_user}@
${dialed_domain}}${sofia_contact(*/${dialed_user}@
${dialed_domain})},${verto_contact(${dialed_user}@${dialed_domain})}"/>
<param name="jsonrpc-allowed-methods" value="verto"/>
</params>
<groups>
<group name="nexios-cc">
<users>
<user id="agent1" number-alias="1031" cacheable="10000">
<params>
<param name="a1-hash" value="f40e695952e177a9224ca3f54bf6ec5a"/>
</params>
<variables>
<variable name="user_context" value="default"/>
<variable name="effective_caller_id_name" value="EXT 1031"/>
<variable name="effective_caller_id_number" value="1031"/>
</variables>
</user>
</users>
</group>
</groups>
</domain>
</section>
</document>


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
:=)

section=directory&tag_name=domain&key_name=name&key_value=192.168.5.150&Event-Name=REQUEST_PARAMS&Core-UUID=15731076-c3d5-4ad6-8518-41b9c42140be&FreeSWITCH-Hostname=bladeranger&FreeSWITCH-Switchname=bladeranger&FreeSWITCH-IPv4=192.168.5.150&FreeSWITCH-IPv6=%3A%3A1&Event-Date-Local=2016-12-22%2009%3A44%3A56&Event-Date-GMT=Thu,%2022%20Dec%202016%2008%3A44%3A56%20GMT&Event-Date-Timestamp=1482396296153258&Event-Calling-File=mod_dptools.c&Event-Calling-Function=user_outgoing_channel&Event-Calling-Line-Number=4129&Event-Sequence=7368&as_channel=true&action=user_call&originate_timeout=0&origination_uuid=bf0fd829-56df-48c4-8112-41ba777ee91d&ignore_early_media=true&last_route=true&origination_caller_id_number=xxxxxxxx&origination_caller_id_name=xxxxxxxx&key=id&user=agent1&domain=192.168.5.150



So, here i got few questions :=)


   1. purpose=null, action=sip_auth - i send user info here (SIP)
   2. purpose=null, action=jsonrpc-authenticate - i send user info here
   (Verto)
   3. purpose=null, action=user_call - what do i send here ?
   4. purpose=null, reverse-auth-lookup - what do i return here ?
   5. purpose=gateways - i will send "not found"
   6. purpose=network-list - i will send "not found"
   7. purpose=publish-vm - i will send "not found"



Thanks to everyone who is going to enlight these few things above :=)

regards,
Tihomir.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20161222/78e20504/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list