[Freeswitch-users] Directory xml_curl, gets Can't find user

ServTelar gustavomarsico at gmail.com
Fri Aug 3 18:39:27 MSD 2012


Hi all

It seems this is a very old one, but certainly I didn't find any solution to this.

Using XML for directory everything works fine. But if I try using xml_curl, sending response:

<document type="freeswitch/xml">
  <section description="FreeSWITCH Directory" name="directory">
    <domain name="10.8.0.70">
      <params>
        <param name="dial-string" value="{presence_id=${dialed_user}@${dialed_domain},transfer_fallback_extension=${dialed_user}}${sofia_contact(${dialed_user}@${dialed_domain})}"/>
      </params>
      <groups>
        <group name="default">
          <users>
            <user id="2692128">
              <params>
                <param name="a1-hash" value="7d73f412ca332fedd81a297b64c0b271"/>
                <param name="vm-password" value="2128"/>
              </params>
              <variables>
                <variable name="accountcode" value="2692128"/>
                <variable name="user_context" value="default"/>
                <variable name="effective_caller_id_name" value="2692128"/>
                <variable name="effective_caller_id_number" value="2692128"/>
                <variable name="outbound_caller_id_name" value="2692128"/>
                <variable name="outbound_caller_id_number" value="2692128"/>
              </variables>
            </user>
          </users>
        </group>
      </groups>
    </domain>
  </section>
</document>

Registration is accepted:

Registrations:
=================================================================================================
Call-ID:    	939540755
User:       	2692128 at 10.8.0.70
Contact:    	2692128 <sip:2692128 at 10.0.0.10:5060;line=3dfb73927e26966;fs_nat=yes;fs_path=sip%3A2692128%4010.94.56.6%3A5060%3Bline%3D3dfb73927e26966>
Agent:      	iSoftPhone 3.4110
Status:     	Registered(UDP-NAT)(unknown) EXP(2012-08-03 11:35:30) EXPSECS(1688)
Host:       	demo
IP:         	10.94.56.6
Port:       	5060
Auth-User:  	2692128
Auth-Realm: 	10.8.0.70
MWI-Account:	2692128 at 10.8.0.70


But if I made a call pointing to that user I just got:

2012-08-03 11:05:38.261385 [WARNING] mod_dptools.c:3294 Can't find user [2692128 at 10.8.0.70]
2012-08-03 11:05:38.281377 [NOTICE] switch_ivr_originate.c:2459 Cannot create outgoing channel of type [user] cause: [SUBSCRIBER_ABSENT]
2012-08-03 11:05:38.281377 [DEBUG] switch_ivr_originate.c:3364 Originate Resulted in Error Cause: 20 [SUBSCRIBER_ABSENT]

Domain are set both to the IP:

  <X-PRE-PROCESS cmd="set" data="domain=10.8.0.70"/>
  <X-PRE-PROCESS cmd="set" data="domain_name=10.8.0.70"/>

And matches with the internal

freeswitch at internal> sofia status 
                     Name	   Type	                                      Data	State
=================================================================================================
                10.8.0.70	  alias	                                  internal	ALIASED
                 internal	profile	              sip:mod_sofia at 10.8.0.70:5060	RUNNING (0)


Can someone drop me a line to point where I should look to?


Thanks in advance

Gustavo





Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list