[Freeswitch-users] context
Sam
u2nsam at gmail.com
Thu Feb 3 06:18:40 MSK 2011
I could see to registered extensions:-
sofia status profile internal reg
Registrations:
=================================================================================================
Call-ID: ea5466005648d71f
User: 2075 at x.x.x.x
Contact: 2075 <sip:2075 at x.x.x.x:9061;fs_nat=yes>
Agent: eyeBeam release 3007n stamp 17816
Status: Registered(AUTO-NAT)(unknown) EXP(2011-02-03 08:46:39)
EXPSECS(68)
Host: MediaServer
IP: x.x.x.x
Port: 9061
Auth-User: 2075
Auth-Realm: x.x.x.x
MWI-Account: 2075 at voicemail
Call-ID: ZDRkZGYyOTg0ODBhN2IwNDcyMGQzMjhhYmJiZWI5ZjM.
User: 2099 at x.x.x.x
Contact: "2099" <sip:2099 at x.x.x.x
:33741;rinstance=540b77d0000a0bb4;fs_nat=yes>
Agent: X-Lite 4 release 4.0 stamp 58832
Status: Registered(AUTO-NAT)(unknown) EXP(2011-02-03 08:46:59)
EXPSECS(88)
Host: MediaServer
IP: x.x.x.x
Port: 33741
Auth-User: 2099
Auth-Realm: x.x.x.x
MWI-Account: 2099 at voicemail
Total items returned: 2
=================================================================================================
On Wed, Feb 2, 2011 at 11:23 PM, Michael Collins <msc at freeswitch.org> wrote:
> Turn on console debug level output (default in fs_cli) and make the test
> call. Pastebin the output. Most likely the call is not being authorized
> because you are letting it in via an ACL or something like that.
>
> -MC
>
> On Wed, Feb 2, 2011 at 1:55 AM, Sam <u2nsam at gmail.com> wrote:
>
>> I have defined a user as :
>>
>> <user id="2099">
>> <params>
>> <param name="password" value="1234"/>
>> <param name="dial-string" value="{presence_id=${dialed_user}@
>> ${dialed_domain}}${sofia_contact(${dialed_user}@${dialed_domain})}"/>
>> <param name="mwi-account" value="2099 at voicemail"/>
>> <param name="vm-password" value="1234"/>
>> <param name="vm-email-all-messages" value="true"/>
>> <!--param name="vm-attach-file" value="true"/-->
>> <!--param name="vm-mailto" value=""/-->
>> </params>
>> <variables>
>> <variable name="user_context" value="inter"/>
>> <variable name="force_transfer_context" value="inter"/>
>> <variable name="accountcode" value="2099"/>
>> <variable name="internal_caller_id_name" value="2099"/>
>> <variable name="internal_caller_id_number" value="2099"/>
>> <variable name="callgroup" value="1"/>
>> <variable name="sip-force-contact"
>> value="NDLB-connectile-dysfunction"/>
>> </variables>
>>
>>
>> and in the dialplan i have
>>
>> <context name="inter">
>>
>> <extension name="2099">
>> <condition field="destination_number" expression="^(2099)">
>> <action application="set" data="call_timeout=30"/>
>> <action application="set" data="dialed_extension=$1"/>
>> <action application="export" data="dialed_extension=$1"/>
>> <action application="set"
>> data="transfer_ringback=$${hold_music}"/>
>> <action application="set" data="hangup_after_bridge=true"/>
>> <action application="set" data="continue_on_fail=true"/>
>> <action application="hash"
>> data="insert/${domain_name}-call_return/${dialed_extension}/${caller_id_number}"/>
>> <action application="hash"
>> data="insert/${domain_name}-last_dial_ext/${dialed_extension}/${uuid}"/>
>> <action application="hash"
>> data="insert/${domain_name}-last_dial_ext/${called_party_callgroup}/${uuid}"/>
>> <action application="hash"
>> data="insert/${domain_name}-last_dial_ext/global/${uuid}"/>
>> <action application="set"
>> data="called_party_callgroup=${user_data(${dialed_extension}@${domain_name}
>> var callgroup)}"/>
>> <action application="hash"
>> data="insert/${domain_name}-last_dial/${called_party_callgroup}/${uuid}"/>
>> <action application="bridge"
>> data="{sip_invite_domain=$${domain}}user/${dialed_extension}@
>> ${domain_name}"/>
>> </condition>
>> </extension>
>>
>> </context>
>>
>>
>> Now extension 2075 is also made on above lines in the same context for
>> user and dialplan, here the call when initiated from 2075 to 2099 searches
>> for context public instead of context inter
>>
>> mod_dialplan_xml.c:331 Processing 2075 <2075>->2099 in context public
>>
>> any reason why ?
>>
>> Regards
>> Sam
>>
>> _______________________________________________
>> 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
>>
>>
>
> _______________________________________________
> 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/20110203/7393df70/attachment-0001.html
More information about the FreeSWITCH-users
mailing list