[Freeswitch-users] mod curl user directory from web service
Anthony Minessale
anthony.minessale at gmail.com
Mon Nov 24 14:26:59 PST 2008
try
<variable name="user_context" value="default" />
instead of
<variable name="user-context" value="default" />
since only the _ version is valid you are going to context public instead.
On Mon, Nov 24, 2008 at 6:10 AM, Antti Kokko <aakokko at gmail.com> wrote:
> Hello,
>
> Thanks in advance. I have a problem with mod curl user directory. I have
> now configured system to fetch user directory from a web service. It works
> fine and the users get to the FS and users can register with a SIP client.
> I`m assuming the system is using default dialplans, sip-profiles etc.
> because I have just directory -section in xml_curl.conf. Anyway after
> registering if two clients wants to start a session I get immediate hangup
> by FS. Here is an example of my user directory:
>
> <?xml version="1.0" encoding="UTF-8" standalone="no"?>
> <document type="freeswitch/xml">
> <section name="directory" description="User Directory">
> <domain name="192.168.0.197">
> <user id="duck" mailbox="duck">
> <params>
> <param name="password" value="1234" />
> <param name="vm-password" value="1234" />
> </params>
> <variables>
> <variable name="accountcode" value="duck" />
> <variable name="user-context" value="default" />
> <variable name="effective_caller_id_name" value="duck" />
> <variable name="effective_caller_id_number" value="duck" />
> </variables>
> </user>
> </domain>
> </section>
> </document>
>
> And here is an example log I get from FS:
>
> 2008-11-24 14:08:48 [NOTICE] switch_channel.c:553 switch_channel_set_name()
> New Channel sofia/internal/duck at 192.168.0.197[36959c5c-a2b0-f045-aac0-051b80911fb1]
> 2008-11-24 14:08:48 [INFO] mod_dialplan_xml.c:233 dialplan_hunt()
> Processing testuser->duck2 in context public
> 2008-11-24 14:08:48 [NOTICE] switch_core_state_machine.c:160
> switch_core_standard_on_execute() Hangup sofia/internal/
> duck2 at 192.168.0.197 [CS_EXECUTE] [NORMAL_CLEARING]
> nta: sent 480 Temporarily Unavailable for INVITE (13404)
> nua(03C30980): removing session usage
> nua(03C30980): call state changed: received -> terminated
> 2008-11-24 14:08:48 [NOTICE] switch_core_session.c:878
> switch_core_session_thread() Session 6 (sofia/internal/duck at 192.168.0.197)
> Ended
> 2008-11-24 14:08:48 [NOTICE] switch_core_session.c:880
> switch_core_session_thread() Close Channel sofia/internal/
> duck at 192.168.0.197 [CS_HANGUP]
>
> _______________________________________________
> 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
>
>
--
Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
AIM: anthm
MSN:anthony_minessale at hotmail.com <MSN%3Aanthony_minessale at hotmail.com>
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com<PAYPAL%3Aanthony.minessale at gmail.com>
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org <sip%3A888 at conference.freeswitch.org>
iax:guest at conference.freeswitch.org/888
googletalk:conf+888 at conference.freeswitch.org<googletalk%3Aconf%2B888 at conference.freeswitch.org>
pstn:213-799-1400
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20081124/0729c23a/attachment-0002.html
More information about the FreeSWITCH-users
mailing list