<div dir="ltr">Kenn,<div><br></div><div>The XML looks good, and should work.</div><div>I am suspicious that your xml_curl server is not responding to the directory lookup request issued when you originate to user test. You mention you have to wait for a 'timeout' after issuing the originate command - this should not happen.</div>
<div>Perhaps you are only responding to the register?<br><br>Can you turn on xml_curl debugging (xml_curl debug_on), and make sure you get a response, and then post what you get.</div><div><br></div><div>Thanks,</div><div>
Ian. </div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Apr 23, 2014 at 2:58 AM, Kenn Leth Hansen <span dir="ltr"><<a href="mailto:klh@justfone.dk" target="_blank">klh@justfone.dk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi all,<div><br></div><div>I am using mod_xml_curl for serving directory XML based on database lookups. I can register phones using mod_xml_curl without problems, however I am having trouble calling/transfering/bridging calls to registered users. If I register using the default 1000 user there are no issues.</div>
<div><br></div><div>XML returned to mod_xml_curl:</div><div><br></div><div><div><font face="courier new, monospace"><?xml version="1.0" encoding="UTF-8"?></font></div><div><font face="courier new, monospace"><document type="freeswitch/xml"></font></div>
<div><font face="courier new, monospace"> <section name="directory"></font></div><div><font face="courier new, monospace"> <domain name="<a href="http://example.com" target="_blank">example.com</a>"></font></div>
<div><font face="courier new, monospace"> <params></font></div><div><font face="courier new, monospace"> <param name="dial-string" value="{^^:sip_invite_domain=${dialed_domain}:presence_id=${dialed_user}@${dialed_domain}}${sofia_contact(*/${dialed_user}@${dialed_domain})}"/></font></div>
<div><font face="courier new, monospace"> </params></font></div><div><font face="courier new, monospace"> <groups></font></div><div><font face="courier new, monospace"> <group name="agents"></font></div>
<div><font face="courier new, monospace"> <users></font></div><div><font face="courier new, monospace"> <user id="test"></font></div><div><font face="courier new, monospace"> <params></font></div>
<div><font face="courier new, monospace"> <param name="password" value="test"/></font></div><div><font face="courier new, monospace"> </params></font></div><div>
<font face="courier new, monospace"> </user></font></div><div><font face="courier new, monospace"> </users></font></div><div><font face="courier new, monospace"> </group></font></div>
<div><font face="courier new, monospace"> </groups></font></div><div><font face="courier new, monospace"> </domain></font></div><div><font face="courier new, monospace"> </section></font></div>
<div>
<font face="courier new, monospace"></document></font></div></div><div><br></div><div>setting up a call to the default 1000 user using "<font face="courier new, monospace">originate users/1000 echo</font>" works flawlessly, if user is not registered FS returns "<font face="courier new, monospace">-ERR USER_NOT_REGISTERED</font>"</div>
<div><br></div><div>When trying "<font face="courier new, monospace">originate users/test echo</font>" or "<font face="courier new, monospace">originate users/<a href="mailto:test@example.com" target="_blank">test@example.com</a> echo</font>", the CLI waits for timeout and then returns:</div>
<div><br></div><div><div><font face="courier new, monospace">-ERR SUBSCRIBER_ABSENT</font></div><div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace" color="#f1c232">2014-04-23 08:52:24.175708 [DEBUG] switch_ivr_originate.c:2061 Parsing global variables</font></div>
<div><font face="courier new, monospace" color="#ff00ff">2014-04-23 08:52:24.215756 [WARNING] mod_dptools.c:3943 Can't find user [<a href="mailto:test@example.com" target="_blank">test@example.com</a>]</font></div><div>
<font face="courier new, monospace" color="#6fa8dc">2014-04-23 08:52:24.215756 [NOTICE] switch_ivr_originate.c:2662 Cannot create outgoing channel of type [user] cause: [SUBSCRIBER_ABSENT]</font></div>
<div><font face="courier new, monospace" color="#f1c232">2014-04-23 08:52:24.215756 [DEBUG] switch_ivr_originate.c:3639 Originate Resulted in Error Cause: 20 [SUBSCRIBER_ABSENT]</font></div></div><div><br></div><div>When looking up registered users in the Sofia profile the user seems to be registered:</div>
<div><br></div><div><div><font face="courier new, monospace">freeswitch@internal> sofia status profile Profile reg test</font></div><div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace">Registrations:</font></div>
<div><font face="courier new, monospace">=================================================================================================</font></div><div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace">Call-ID: e546c814b5c44f598286b94f923af64e</font></div>
<div><font face="courier new, monospace">User: <a href="mailto:test@example.com" target="_blank">test@example.com</a></font></div><div><font face="courier new, monospace">Contact: "test" <<a href="http://sip:04268973@192.168.1.112:64622" target="_blank">sip:04268973@192.168.1.112:64622</a>></font></div>
<div><font face="courier new, monospace">Agent: Blink 0.8.0 (Windows)</font></div><div><font face="courier new, monospace">Status: Registered(UDP)(unknown) EXP(2014-04-23 09:06:21) EXPSECS(578)</font></div>
<div><font face="courier new, monospace">Host: fs01</font></div><div><font face="courier new, monospace">IP: 192.168.1.111</font></div><div><font face="courier new, monospace">Port: 5060</font></div>
<div><font face="courier new, monospace">Auth-User: test</font></div><div><font face="courier new, monospace">Auth-Realm: <a href="http://example.com" target="_blank">example.com</a></font></div><div><font face="courier new, monospace">MWI-Account: <a href="mailto:test@example.com" target="_blank">test@example.com</a></font></div>
<div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace">Total items returned: 2</font></div><div><font face="courier new, monospace">=================================================================================================</font></div>
</div><div><br></div><div>Using FreeSWITCH Version 1.2.16+git~20131218T195141Z~6968ef88fa~64bit (git 6968ef8 2013-12-18 19:51:41Z 64bit)</div><div><br></div><div><br></div><div><br clear="all"><div><div dir="ltr"><div><div>
<div><div><div><font color="#000000">Regards,</font></div></div></div></div></div><div><font color="#000000"><br></font></div><div><font color="#000000">Kenn Leth Hansen</font></div></div></div>
</div></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" 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.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div>