[Freeswitch-users] XML (curl) returned for Event-Calling-Function = switch_xml_locate_user

Leon de Rooij leon at scarlet-internet.nl
Tue Mar 24 07:55:37 PDT 2009


Hi,

I'm trying to get some cli commands working in combination with xml- 
curl.

Endpoints are parsed properly for SIP registrations and invites, but  
when I use the CLI command "user_exists" it returns false, while I do  
return an  endpoint (same syntax as for a sofia_reg_parse_auth event)  
on the webserver.

Should switch_xml_locate_user event receive a different syntax ?

freeswitch at internal> user_exists accountcode gigaset toyos.nl
false

XML returned from webserver:

<?xml version="1.0" encoding="UTF-8"?>
<document type="freeswitch/xml">
<section name="directory">
   <domain name="toyos.nl">
     <user id="gigaset" mailbox="">
       <params>
         <param name="a1-hash"  
value="a211336e29c4f3756e6af343ce6da27b"/>
         <param name="email-addr" value="test at test.com"/>
         <param name="vm-delete-file" value="true"/>
         <param name="vm-attach-file" value="true"/>
       </params>
       <variables>
         <variable name="accountcode" value="gigaset"/>
         <variable name="caller_id_name" value="gigaset"/>
         <variable name="caller_id_number" value="1000"/>
         <variable name="email_addr" value="test at test.com"/>
         <variable name="privacy" value="no"/>
         <variable name="process_cdr" value="true"/>
         <variable name="sip_secure_media" value="false"/>
         <variable name="country_code" value="31"/>
         <variable name="area_code" value="320"/>
       </variables>
     </user>
   </domain>
</section>
</document>

thanks & regards,

Leon





More information about the FreeSWITCH-users mailing list