[Freeswitch-users] User Not found
Zoltan Medveczky
zoltan.medveczky at 8x8.com
Wed Jun 4 00:10:48 MSD 2014
I think your XML schema is not incorrect (see
https://wiki.freeswitch.org/wiki/Mod_xml_curl#Section:_directory). Try
returning something like the following:
<document type="freeswitch/xml">
<section name="directory">
<domain name="somedomain.com">
<user id="9090">
<params>
<param name="password" value="9090"/>
<param name="vm-password" value="7000"/>
</params>
<variables>
<variable name="toll_allow" value="domestic,international,local"/>
<variable name="accountcode" value="7000"/>
<variable name="user_context" value="default"/>
<variable name="effective_caller_id_name" value="Jude"/>
<variable name="effective_caller_id_number" value="Jude"/>
<variable name="outbound_caller_id_name"
value="$${outbound_caller_name}"/>
<variable name="outbound_caller_id_number"
value="$${outbound_caller_id}"/>
<variable name="callgroup" value="techsupport"/>
</variables>
</domain>
</section>
</document>
On Tue, Jun 3, 2014 at 12:23 PM, Iwada Eja <iwada.bassey at gmail.com> wrote:
> Thanks once again, i've done that also, even shutdown and started up
> freeswitch with no luck
>
>
> On Tue, Jun 3, 2014 at 8:16 PM, Moishe Grunstein <max at nysolutions.com>
> wrote:
>
>> You need to restart sip profile to changes to take effect.
>>
>>
>>
>>
>>
>> Thanks,
>>
>>
>>
>> Moishe Grunstein
>>
>> Tornado Computer Systems, Inc.
>>
>> 212.400.7650 888.IPPBX.US
>> *Service Request Email: support at nysolutions.com <support at nysolutions.com>
>> *
>>
>> Polycom Certified VAR
>> Microsoft Small Business Specialist, Cisco SMB Select Certified
>>
>> [image: cid:image001.jpg at 01C72F94.9EE45D60] <http://www.nysolutions.com/>
>>
>> Computer Networking * Managed Services * IP Video Surveillance * Network
>> Assessments * Web Solutions * Voice over IP * Disaster Recovery * Network
>> Security * Site Surveys * CMS
>>
>>
>>
>> *From:* freeswitch-users-bounces at lists.freeswitch.org [mailto:
>> freeswitch-users-bounces at lists.freeswitch.org] *On Behalf Of *Iwada Eja
>> *Sent:* Tuesday, June 03, 2014 3:11 PM
>> *To:* FreeSWITCH Users Help
>> *Subject:* Re: [Freeswitch-users] User Not found
>>
>>
>>
>> Thanks Molshe,
>>
>> Made the changes you suggested, but still having the same challenge
>>
>>
>>
>> On Tue, Jun 3, 2014 at 7:44 PM, Moishe Grunstein <max at nysolutions.com>
>> wrote:
>>
>> Try either changing the user context to My_IP or if this is a single
>> tenant/domain add force-register-domain=$${domain} to the sip profile.
>>
>>
>>
>>
>>
>> Thanks,
>>
>>
>>
>> Moishe Grunstein
>>
>> Tornado Computer Systems, Inc.
>>
>> 212.400.7650 888.IPPBX.US
>> *Service Request Email: support at nysolutions.com <support at nysolutions.com>
>> *
>>
>> Polycom Certified VAR
>> Microsoft Small Business Specialist, Cisco SMB Select Certified
>>
>> [image: cid:image001.jpg at 01C72F94.9EE45D60] <http://www.nysolutions.com/>
>>
>> Computer Networking * Managed Services * IP Video Surveillance * Network
>> Assessments * Web Solutions * Voice over IP * Disaster Recovery * Network
>> Security * Site Surveys * CMS
>>
>>
>>
>> *From:* freeswitch-users-bounces at lists.freeswitch.org [mailto:
>> freeswitch-users-bounces at lists.freeswitch.org] *On Behalf Of *Iwada Eja
>> *Sent:* Tuesday, June 03, 2014 2:35 PM
>> *To:* freeswitch-users at lists.freeswitch.org
>> *Subject:* [Freeswitch-users] User Not found
>>
>>
>>
>> Hi, Im Completely new to Freeswitch and appreciating it
>>
>>
>>
>> Im trying to dynamically register a user using mod_lua, This is the
>> returned XML from my lua script
>>
>>
>>
>> <include>
>>
>> <user id="9090">
>>
>> <params>
>>
>> <param name="password" value="9090"/>
>>
>> <param name="vm-password" value="7000"/>
>>
>> </params>
>>
>> <variables>
>>
>> <variable name="toll_allow" value="domestic,international,local"/>
>>
>> <variable name="accountcode" value="7000"/>
>>
>> <variable name="user_context" value="default"/>
>>
>> <variable name="effective_caller_id_name" value="Jude"/>
>>
>> <variable name="effective_caller_id_number" value="Jude"/>
>>
>> <variable name="outbound_caller_id_name"
>> value="$${outbound_caller_name}"/>
>>
>> <variable name="outbound_caller_id_number"
>> value="$${outbound_caller_id}"/>
>>
>> <variable name="callgroup" value="techsupport"/>
>>
>> </variables>
>>
>> </user>
>>
>>
>>
>> </include>
>>
>>
>>
>> however each time i try to make a call with that user, i get a
>>
>> "
>>
>> Can't find user [9090 at My_IP] from My_IP
>>
>> You must define a domain called 'My_ip' in your directory and add a user
>> with the id="9090" attribute
>>
>> and you must configure your device to use the proper domain in it's
>> authentication credentials.
>>
>>
>>
>> "
>>
>>
>>
>> However, if i manually create a 9090.xml file adding the same contents,
>> everything works as should
>>
>>
>>
>>
>>
>>
>>
>> this is my lua.conf
>>
>>
>>
>> <param name="xml-handler-script" value="dp.lua"/>
>>
>> <param name="xml-handler-bindings" value="directory"/>
>>
>>
>>
>> Any help would is highly appreciated!.
>>
>>
>>
>> Thank You
>>
>>
>>
>> --
>>
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>>
>>
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://wiki.freeswitch.org
>> http://www.cluecon.com
>>
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>>
>>
>>
>>
>>
>> --
>> Kind Regards
>> Iwada
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>>
>>
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://wiki.freeswitch.org
>> http://www.cluecon.com
>>
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>>
>>
>
>
> --
> Kind Regards
> Iwada
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
>
>
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140603/9e573d39/attachment-0001.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 2424 bytes
Desc: not available
Url : http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140603/9e573d39/attachment-0001.jpg
Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users
mailing list