[Freeswitch-users] user directory is ignoring user_context
ik
idokan at gmail.com
Mon Sep 8 22:23:45 MSD 2014
Hello,
I have a weird issue with freeswitch (Version 1.4.8 git 1fe89f5 2014-08-21
18:57:58Z 64bit) sometimes.
It also happens to me on Freeswitch 1.2.
It ignores the extension's user_context, defined like so:
<variable name="user_context" value="testing" />
<include>
<user id="3002">
<params>
<param name="password" value="******" />
</params>
<variables>
<variable name="accountcode" value="3002" />
<!-- <variable name="user_context" value="bridging_capture" /> -->
<variable name="user_context" value="testing" />
<variable name="effective_caller_id_name" value="Desktop machine" />
<variable name="effective_caller_id_number" value="3002" />
</variables>
</user>
</include>
When I do list_users, i can see it:
3002|testing|XXX.XXX.XXX.XXX|default|error/user_not_registered||Desktop
machine|3002
(and when it is registered I can see it registered)
And when the user is registered I see it also:
2014-09-08 18:05:25.397965 [DEBUG] sofia_reg.c:3013 event_add_header ->
'record_stereo' = 'true'
2014-09-08 18:05:25.397965 [DEBUG] sofia_reg.c:3013 event_add_header ->
'default_gateway' = 'example.com'
2014-09-08 18:05:25.397965 [DEBUG] sofia_reg.c:3013 event_add_header ->
'default_areacode' = '918'
2014-09-08 18:05:25.397965 [DEBUG] sofia_reg.c:3013 event_add_header ->
'transfer_fallback_extension' = 'operator'
2014-09-08 18:05:25.397965 [DEBUG] sofia_reg.c:3013 event_add_header ->
'accountcode' = '3002'
2014-09-08 18:05:25.397965 [DEBUG] sofia_reg.c:3013 event_add_header ->
'user_context' = 'testing'
2014-09-08 18:05:25.397965 [DEBUG] sofia_reg.c:3013 event_add_header ->
'effective_caller_id_name' = 'Desktop machine'
2014-09-08 18:05:25.397965 [DEBUG] sofia_reg.c:3013 event_add_header ->
'effective_caller_id_number' = '3002'
However, when I dial the extension, it enter a different context:
2014-09-08 18:05:38.897955 [INFO] mod_dialplan_xml.c:558 Processing 3001
<3002>->3000 in context external_dialer
xml_locate dialplan
<context name="testing">
<extension name="shout">
<condition field="destination_number" expression="^(300\d)$">
<action application="answer"></action>
<action application="playback" data="shout://
208.53.164.178:80"></action>
</condition>
</extension>
</context>
It usually happens after a while, when first it enters the proper context,
and later it starts to go somewhere else. even on ./freeswitch -stop and
./freeswitch -ncwait it goes to the wrong context.
Am I doing something wrong, or missing something ?
Thanks,
Ido
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140908/f000072f/attachment.html
Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users
mailing list