[Freeswitch-users] Still can't understand gateways

Serge S. Yuriev me at nevian.org
Tue Apr 12 15:27:44 MSD 2011


Hello,

12.04.2011, 13:57, "Boris Kovalenko" <boris at tagnet.ru>;:

>  Hello!
>
>       Hmm... I thinked GW is defined within profile not within context???

Pardon, of course you are right.. in general.
I meant that context public linked to external profile by default if you didn't set it explicitly elsewhere.
So if you defined your GW in internal profile it will search ext in default context, not public.

btw, you can declare gw in directory and even in user record:
http://wiki.freeswitch.org/wiki/Clarification:gateways

>>   Hello,
>>
>>   12.04.2011, 08:55, "Boris Kovalenko"<boris at tagnet.ru>;;:
>>>   Hello!
>>>
>>>         I have profile named ipbx with gateway defined:
>>>   <include>
>>>   <gateway name="test.tagnet.hn">
>>>   <!--/// account username *required* ///-->
>>>   <param name="username" value="test"/>
>>>   <!--/// auth realm: *optional* same as gateway name, if blank ///-->
>>>   <param name="realm" value="public"/>
>>>   <!--/// username to use in from: *optional* same as  username, if blank
>>>   ///-->
>>>   <param name="from-user" value="gw_test"/>
>>>   <!--/// account password *required* ///-->
>>>   <param name="password" value="2007"/>
>>>   <!--/// extension for inbound calls: *optional* same as username, if
>>>   blank ///
>>>   -->
>>>   <param name="extension" value="gw_test"/>
>>>   There is an extension in context public:
>>>   <extension name="gw_test">
>>>   <condition field="destination_number" expression="^gw_test$">
>>>   <action application="info" data="ALERT"/>
>>>   <action application="hangup" data="NO_ROUTE_DESTINATION"/>
>>>   </condition>
>>>   </extension>
>>>
>>>   So, my inbound calls from this gateway should go to extension gw_test?
>>>   But they don't...
>>>   What is wrong with my config? FreeSWITCH Version 1.0.head (git-1c95ad9
>>>   2011-01-20 22-43-50 -0300)
>>   Is this GW defined in public context?
>>   Hint: realm != context!
>>   Pls, look at example 'incoming.xml' in public profile in default config set
>  --
>  С уважением,
>    Борис Коваленко
>    ЗАО "Тагнет"
>    (3435) 494991
>
>  _______________________________________________
>  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
-- 
wbr,
Serge



More information about the FreeSWITCH-users mailing list