<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">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">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">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">test@example.com</a></font></div><div><font face="courier new, monospace">Contact: "test" <<a href="http://sip:04268973@192.168.1.112:64622">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">example.com</a></font></div><div><font face="courier new, monospace">MWI-Account: <a href="mailto:test@example.com">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>