IdoThe thing is, that it's not always happening, only sometimes.When I removed the cidr configuration inside the <user> and moved it to the acl.xml.conf , it start to enter the proper context.So even tough Freeswitch know that I'm 3002, it decided that I'm user 2002 (that points to that context), because of the cidr.Found the reason for the problem, but I do not understand it.By using - <anti-action application="info" /> on the wrong context, I found out that acl_token is set to a different user, that has in it's configuration a cidr of the same IP address of my soft-phone.On Mon, Sep 8, 2014 at 9:23 PM, ik <idokan@gmail.com> wrote:However, when I dial the extension, it enter a different context:When I do list_users, i can see it: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>
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'
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
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com
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