Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

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


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
leon at scarlet-intern...
Guest





PostPosted: Tue Mar 24, 2009 10:15 am    Post subject: [Freeswitch-users] XML (curl) returned for Event-Calling-Fun Reply with quote

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@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@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@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


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
raul at etellicom.com
Guest





PostPosted: Wed Mar 25, 2009 1:08 am    Post subject: [Freeswitch-users] XML (curl) returned for Event-Calling-Fun Reply with quote

You should use the id value of the user, not accountcode:

user_exists id gigaset toyos.nl

Regards,

Raul

On Tue, 2009-03-24 at 15:55 +0100, Leon de Rooij wrote:
Quote:
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@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@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@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


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
mrene_lists at avgs.ca
Guest





PostPosted: Wed Mar 25, 2009 1:10 am    Post subject: [Freeswitch-users] XML (curl) returned for Event-Calling-Fun Reply with quote

As Raul said, the user_exists function will look for a user
*attribute* so unless you write your user as <user id="blah"
accountcode="blah2">, you need to use id (and the later wouldnt set
the accountcode variable, no)

Math

On 25-Mar-09, at 1:53 AM, Raul Fragoso wrote:

Quote:
You should use the id value of the user, not accountcode:

user_exists id gigaset toyos.nl

Regards,

Raul

On Tue, 2009-03-24 at 15:55 +0100, Leon de Rooij wrote:
Quote:
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@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@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@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


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
leon at scarlet-intern...
Guest





PostPosted: Wed Mar 25, 2009 5:24 am    Post subject: [Freeswitch-users] XML (curl) returned for Event-Calling-Fun Reply with quote

Thanks.. I see it's even documented at http://wiki.freeswitch.org/wiki/Mod_commands#user_exists
(doh)

regards,

Leon


On Mar 25, 2009, at 6:57 AM, Mathieu Rene wrote:

Quote:
As Raul said, the user_exists function will look for a user
*attribute* so unless you write your user as <user id="blah"
accountcode="blah2">, you need to use id (and the later wouldnt set
the accountcode variable, no)

Math

On 25-Mar-09, at 1:53 AM, Raul Fragoso wrote:

Quote:
You should use the id value of the user, not accountcode:

user_exists id gigaset toyos.nl

Regards,

Raul

On Tue, 2009-03-24 at 15:55 +0100, Leon de Rooij wrote:
Quote:
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@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@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@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


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services