<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
Hello!<br>
<br>
But.... reading the docs:<br>
<code></code>
<pre><!--/// extension for inbound calls: *optional* same as username, if blank ///-->
<!--<param name="extension" value="cluecon"/>--></pre>
<br>
What this parameter means? I thinked that if extension is specified
all incoming calls are placed to this extension. Isn't? <br>
<br>
<blockquote
cite="mid:BANLkTin4xOx3_5ymnt048wM2ygT2cp1pCg@mail.gmail.com"
type="cite">Because you're matching the destination_number
"gw_test". The logs show you're dialing 1234 and then
ext_translate_extsrc though, which don't match that condition.<br>
<br>
-Steve<br>
<br>
<br>
<div class="gmail_quote">
2011/4/12 Boris Kovalenko <span dir="ltr"><<a
moz-do-not-send="true" href="mailto:boris@tagnet.ru">boris@tagnet.ru</a>></span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;">
Of course... my gw is looking in public context:<br>
2011-04-12 18:06:52.529284 [INFO] mod_dialplan_xml.c:331
Processing test<br>
gw <12>->1234 in context public<br>
2011-04-12 18:06:52.530329 [INFO] mod_dialplan_xml.c:331
Processing test<br>
gw <12>->ext_translate_extsrc in context features<br>
<br>
But why the extension I configured does not work for it?<br>
<div>
<div class="h5"><br>
> Hello,<br>
><br>
> 12.04.2011, 13:57, "Boris Kovalenko"<<a
moz-do-not-send="true" href="mailto:boris@tagnet.ru">boris@tagnet.ru</a>>;:<br>
><br>
>> Hello!<br>
>><br>
>> Hmm... I thinked GW is defined within
profile not within context???<br>
> Pardon, of course you are right.. in general.<br>
> I meant that context public linked to external
profile by default if you didn't set it explicitly
elsewhere.<br>
> So if you defined your GW in internal profile it will
search ext in default context, not public.<br>
><br>
> btw, you can declare gw in directory and even in user
record:<br>
> <a moz-do-not-send="true"
href="http://wiki.freeswitch.org/wiki/Clarification:gateways"
target="_blank">http://wiki.freeswitch.org/wiki/Clarification:gateways</a><br>
><br>
>>> Hello,<br>
>>><br>
>>> 12.04.2011, 08:55, "Boris Kovalenko"<<a
moz-do-not-send="true" href="mailto:boris@tagnet.ru">boris@tagnet.ru</a>>;;:<br>
>>>> Hello!<br>
>>>><br>
>>>> I have profile named ipbx with
gateway defined:<br>
>>>> <include><br>
>>>> <gateway name="<a
moz-do-not-send="true" href="http://test.tagnet.hn"
target="_blank">test.tagnet.hn</a>"><br>
>>>> <!--/// account username *required*
///--><br>
>>>> <param name="username"
value="test"/><br>
>>>> <!--/// auth realm: *optional* same
as gateway name, if blank ///--><br>
>>>> <param name="realm"
value="public"/><br>
>>>> <!--/// username to use in from:
*optional* same as username, if blank<br>
>>>> ///--><br>
>>>> <param name="from-user"
value="gw_test"/><br>
>>>> <!--/// account password *required*
///--><br>
>>>> <param name="password"
value="2007"/><br>
>>>> <!--/// extension for inbound
calls: *optional* same as username, if<br>
>>>> blank ///<br>
>>>> --><br>
>>>> <param name="extension"
value="gw_test"/><br>
>>>> There is an extension in context
public:<br>
>>>> <extension name="gw_test"><br>
>>>> <condition
field="destination_number" expression="^gw_test$"><br>
>>>> <action application="info"
data="ALERT"/><br>
>>>> <action application="hangup"
data="NO_ROUTE_DESTINATION"/><br>
>>>> </condition><br>
>>>> </extension><br>
>>>><br>
>>>> So, my inbound calls from this gateway
should go to extension gw_test?<br>
>>>> But they don't...<br>
>>>> What is wrong with my config?
FreeSWITCH Version 1.0.head (git-1c95ad9<br>
>>>> 2011-01-20 22-43-50 -0300)<br>
>>> Is this GW defined in public context?<br>
>>> Hint: realm != context!<br>
>>> Pls, look at example 'incoming.xml' in
public profile in default config set<br>
>> --<br>
>> С уважением,<br>
>> Борис Коваленко<br>
>> ЗАО "Тагнет"<br>
>> (3435) 494991<br>
>><br>
>> _______________________________________________<br>
>> FreeSWITCH-users mailing list<br>
>> <a moz-do-not-send="true"
href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
>> <a moz-do-not-send="true"
href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
>> UNSUBSCRIBE:<a moz-do-not-send="true"
href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
>> <a moz-do-not-send="true"
href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br>
<br>
--<br>
С уважением,<br>
Борис Коваленко<br>
ЗАО "Тагнет"<br>
(3435) 494991<br>
<br>
<br>
<br>
_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a moz-do-not-send="true"
href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a moz-do-not-send="true"
href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a moz-do-not-send="true"
href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a moz-do-not-send="true" href="http://www.freeswitch.org"
target="_blank">http://www.freeswitch.org</a><br>
</div>
</div>
</blockquote>
</div>
<br>
<div style="visibility: hidden; left: -5000px; position: absolute;
z-index: 9999; padding: 0px; margin-left: 0px; margin-top: 0px;
overflow: hidden; word-wrap: break-word; color: black;
font-size: 10px; text-align: left; line-height: 130%;"
id="avg_ls_inline_popup">
</div>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
FreeSWITCH-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
С уважением,
Борис Коваленко
ЗАО "Тагнет"
(3435) 494991
</pre>
</body>
</html>