Hi all,
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.
XML returned to mod_xml_curl:
<?xml version="1.0" encoding="UTF-8"?>
<document type="freeswitch/xml">
<section name="directory">
<params>
<param name="dial-string" value="{^^:sip_invite_domain=${dialed_domain}:presence_id=${dialed_user}@${dialed_domain}}${sofia_contact(*/${dialed_user}@${dialed_domain})}"/>
</params>
<groups>
<group name="agents">
<users>
<user id="test">
<params>
<param name="password" value="test"/>
</params>
</user>
</users>
</group>
</groups>
</domain>
</section>
</document>
setting up a call to the default 1000 user using "originate users/1000 echo" works flawlessly, if user is not registered FS returns "-ERR USER_NOT_REGISTERED"
When trying "
originate users/test echo" or "
originate users/test@example.com echo", the CLI waits for timeout and then returns:
-ERR SUBSCRIBER_ABSENT
2014-04-23 08:52:24.175708 [DEBUG] switch_ivr_originate.c:2061 Parsing global variables
2014-04-23 08:52:24.215756 [WARNING] mod_dptools.c:3943 Can't find user [test@example.com] 2014-04-23 08:52:24.215756 [NOTICE] switch_ivr_originate.c:2662 Cannot create outgoing channel of type [user] cause: [SUBSCRIBER_ABSENT]
2014-04-23 08:52:24.215756 [DEBUG] switch_ivr_originate.c:3639 Originate Resulted in Error Cause: 20 [SUBSCRIBER_ABSENT]
When looking up registered users in the Sofia profile the user seems to be registered:
freeswitch@internal> sofia status profile Profile reg test
Registrations:
=================================================================================================
Call-ID: e546c814b5c44f598286b94f923af64e
Agent: Blink 0.8.0 (Windows)
Status: Registered(UDP)(unknown) EXP(2014-04-23 09:06:21) EXPSECS(578)
Host: fs01
IP: 192.168.1.111
Port: 5060
Auth-User: test
Total items returned: 2
=================================================================================================
Using FreeSWITCH Version 1.2.16+git~20131218T195141Z~6968ef88fa~64bit (git 6968ef8 2013-12-18 19:51:41Z 64bit)