<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">11.02.2014 19:44, Bogdan-Andrei Iancu
пишет:<br>
</div>
<blockquote cite="mid:52FA4554.4010307@opensips.org" type="cite">
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<div class="moz-cite-prefix"><tt>Hello,<br>
<br>
Please keep the list CC'ed all the time !<br>
<br>
You did no inserted the topo hiding triggering in the write
place - you need to do it only for initial INVITEs ; for
sequential requests you need the be sure to invoke the
match_dialog() function. See:<br>
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://www.opensips.org/html/docs/modules/1.10.x/dialog.html#id295144">http://www.opensips.org/html/docs/modules/1.10.x/dialog.html#id295144</a><br>
<br>
It will be helpful to provide more info on what "it is not
working" - like do you see any changes on the INVITE sent out
by OpenSIPS, any script errors, etc<br>
</tt></div>
</blockquote>
<span id="result_box" class="" lang="en"><span title="Я пытаюсь
использовать предложенные Вами функции, но столкнулся с
проблемой: у меня не срабатывает авторизация и я не могу сделать
исходящий вызов. ">I 'm trying to use your proposed function,
but ran into a problem - I have not triggered the authorization
and I can not make an outgoing call .<br>
<br>
</span><span title="После внесения некоторых изменений: ">After
making some changes :<br>
</span></span><br>
<span id="result_box" class="" lang="en"><span title="После внесения
некоторых изменений: "><tt><tt> if (!db_is_user_in("$fu",
"asterisk"))</tt> # +++ I ADDED THIS STRING<br>
if (!(method=="REGISTER") && from_uri==myself)
/*НЕ multidomain версия*/<br>
<br>
{<br>
<br>
if(!check_source_address("0")){<br>
if (!proxy_authorize("", "subscriber")) {
<br>
<br>
<br>
proxy_challenge("", "0");<br>
exit;<br>
}<br>
if (!db_check_from()) {<br>
sl_send_reply("403","Forbidden auth ID");<br>
exit;<br>
}<br>
consume_credentials();<br>
}<br>
}</tt></span><span title="У меня вроде наметился прогресс,
но при анализе сообщений с помощью программы я увидел, что у
меня не передается запрос на астериск."><br>
<br>
I like making progress , but the analysis of messages using the
program "wireshark", I saw that I had not sent a request "ACK"
to the asterisk. </span><span title="И вызов не проходит. ">The
challenge does not pass.<br>
<br>
</span><span title="Коротко напомню, что я пытаюсь добиться: ">Briefly
remind you that I 'm trying to achieve :<br>
</span><span title="Я хотел бы сделать так, чтобы opensips
выступал как UAC для астериска, но при этом был сервером для
сввоего UAC.">I would like to make opensips acted as UAC to
asterisk , but it was a server for opensips UAC. </span><span
title="Это позволит мне представить UAC, зарегистрированным на
OpenSIPSб как extension на астериск.">This will allow me to
introduce UAC, registered in OpenSIPS like an extension on the
asterisk.</span></span><br>
<br>
Please, write a little piece of code for deciding my problem.<br>
<br>
My configuration file:<br>
<br>
<tt><a class="moz-txt-link-freetext" href="http://pastebin.com/39vV4eYT">http://pastebin.com/39vV4eYT</a><br>
<br>
</tt>
<blockquote cite="mid:52FA4554.4010307@opensips.org" type="cite">
<div class="moz-cite-prefix"><tt> Hello,<br>
<br>
Use the dialog based topology hiding <br>
<a moz-do-not-send="true"
class="moz-txt-link-freetext"
href="http://www.opensips.org/html/docs/modules/1.10.x/dialog.html#id296001">http://www.opensips.org/html/docs/modules/1.10.x/dialog.html#id296001</a><br>
<br>
when forwarding the INVITE to Asterisk (in OpenSIPS).<br>
</tt></div>
<blockquote cite="mid:52FA3200.4080703@poig.ru" type="cite">
<blockquote cite="mid:52FA1980.10906@opensips.org" type="cite">
</blockquote>
<tt>Thank you.<br>
<br>
I tried it like this code fragment:<br>
<br>
#--8<----------------------------------------------------------------------------------<br>
<br>
route {<br>
<br>
<br>
if (!mf_process_maxfwd_header("10")) {<br>
sl_send_reply("483","Too Many Hops");<br>
exit;<br>
}<br>
<br>
#force_rport(); <br>
<br>
if(avp_db_load("$fu","$avp(trace)")) {<br>
$avp(traceuser)=$fu;<br>
setflag(22);<br>
sip_trace();<br>
xlog("L_INFO","User $fu being traced");<br>
}<br>
#...................................................................<br>
if (db_is_user_in("$fu", "asterisk"))<br>
{<br>
if(!has_totag() && is_method("INVITE")) {<br>
topology_hiding();<br>
} <br>
}<br>
<br>
if (has_totag()) {<br>
...<br>
}<br>
</tt><br>
<tt> ...<br>
#--8<----------------------------------------------------------------------------------<br>
<br>
But it not worked :( Perhaps, this code is wrong.<br>
<br>
</tt><span id="result_box" class="" lang="en"><span class="hps">Could
you</span> <span class="hps">indicate</span> <span
class="hps">where the error</span><span>?</span> <span
class="hps"></span></span><span id="result_box" class=""
lang="en"><span class="hps">Could you</span> <span
class="hps">indicate</span> <span class="hps">where the
error</span><span class="">?</span> <span class="hps">Or do
I</span> <span class="hps">need to</span> <span
class="hps">follow the</span> <span class="hps">documentation</span>
<span class="hps">on the function</span> <span class="hps"></span></span><span
id="result_box" class="" lang="en"><span class="hps"><tt>topology_hiding()?</tt></span><span
class="hps"></span></span>
<blockquote cite="mid:52FA1980.10906@opensips.org" type="cite">
<div class="moz-cite-prefix"><tt> </tt>On 11.02.2014 10:12,
Александр Пучков wrote:<br>
</div>
<blockquote cite="mid:52F9DB75.3080008@poig.ru" type="cite">
<meta content="text/html; charset=UTF-8"
http-equiv="Content-Type">
<div class="moz-cite-prefix"><br>
10.02.2014 13:24, Bogdan-Andrei Iancu пишет:<br>
</div>
<blockquote cite="mid:52F89AB5.7000101@opensips.org"
type="cite">
<meta content="text/html; charset=UTF-8"
http-equiv="Content-Type">
<div class="moz-cite-prefix"><tt>Hello,<br>
<br>
In this scenario:<br>
</tt><br>
<tt> Astеrisk <-- 3 -- OpenSIPS <-- 4 -- UAC<br>
<br>
What SIP requests the UAC is sending ? REGISTER ?
INVITES ?<br>
</tt></div>
</blockquote>
<tt>Hello!<br>
<br>
UAC registered to Opensips, Opensips registered as UAC on
Asterisk. When the INVITE request comes from the UAC,
Opensips need to sent INVITE to Asterisk as UAC.<br>
<br>
Note that the UAC does not know about Asterisk and
Asterisk does not know about UAC. Asterisk know about only
Opensips.<br>
<br>
It is necessary to any UAC registered on Opensips could
imagine how extension on Asterisk, without changing the
configuration of UAC.<br>
<br>
Thank you.<br>
</tt><br>
<blockquote cite="mid:52F89AB5.7000101@opensips.org"
type="cite">
<div class="moz-cite-prefix"><tt> <br>
<br>
Regards,<br>
</tt>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
On 20.01.2014 13:05, Александр Пучков wrote:<br>
</div>
<blockquote cite="mid:52DD02FE.4060507@poig.ru"
type="cite">
<meta http-equiv="content-type" content="text/html;
charset=UTF-8">
Hi!<br>
<br>
OpenSIPS version 1.8.<br>
<br>
<span id="result_box" class="short_text" lang="en"><span
class="hps">We have the following</span> <span
class="hps">diagram</span><span>:<br>
<br>
PSTN <-- 1 --> OpenSIPS <-- 2
--> Astеrisk <-- 3 --> UAC<br>
192.168.1.1 <-- 1 --> 192.168.1.2 <-- 2
--> 192.168.1.3 <-- 3 --> 192.168.1.*<br>
<br>
</span></span><span id="result_box" class="" lang="en"><span
class="hps">I would like to</span> <span
class="hps">make</span> <span class="hps">the
following scheme:<br>
<br>
PSTN <-- 1 --> OpenSIPS <-- 2
--> Astеrisk <-- 3 --> OpenSIPS
<-- 4 --> UAC<br>
192.168.1.1 <-- 1 --> 192.168.1.2 <-- 2
--> 192.168.1.3 <-- 3 --> 192.168.1.2
<-- 4 --> 192.168.1.*<br>
</span></span><br>
<div id="gt-res-content" class="almost_half_cell">
<div dir="ltr" style="zoom:1"><span id="result_box"
class="short_text" lang="en"><span class="hps">Interestingly</span>
<span class="hps">the following schema fragment</span><span
class="">:</span></span></div>
</div>
<span id="result_box" class="" lang="en"><span
class="hps">Astеrisk <-- 3 --> OpenSIPS
<-- 4 --> UAC<br>
<br>
</span></span><span id="result_box" class="" lang="en"><span
class="hps">Here</span> <span class="hps">OpenSIPS</span>
<span class="hps">need</span> <span class="hps">to
increase control</span> <span class="hps">over the
services</span> <span class="hps">for</span> <span
class="hps">UAC.</span> <span class="hps">UAC</span>
<span class="hps">should not know</span> <span
class="hps">about the existence of</span> <span
class="hps">Asterisk</span> <span class="hps">and</span>
<span class="hps">UAC</span> <span class="hps">must
be registered </span><span class="hps">on the server</span>
<span class="hps">OpenSIPS,</span> <span class="hps">and</span>
<span class="hps">any SIP request</span> <span
class="hps">OpenSIPS</span> <span class="hps">should
redirect</span> <span class="hps">to</span> <span
class="hps">Asterisk</span><span class="">.</span></span><br>
<br>
<span id="result_box" class="" lang="en"><span
class="hps">I tried</span> <span class="hps">to use
the module</span> <span class="hps">in</span> <span
class="hps">UAC_REGISTRANT</span> <span class="hps">OpenSIPS,</span>
<span class="hps">it works fine</span> <span
class="hps">in the direction</span><span class="">:</span></span><br>
<br>
Astеrisk -- 3 --> OpenSIPS -- 4 --> UAC<br>
<br>
<span id="result_box" class="short_text" lang="en"><span
class="hps">But</span> <span class="hps">how to
implement</span> <span class="hps">the scheme</span>
<span class="hps">in the</span> <span class="hps">direction:</span></span><br>
<br>
Astеrisk <-- 3 -- OpenSIPS <-- 4 -- UAC<br>
<br>
<span id="result_box" class="" lang="en"><span
class="hps">I do not really</span> <span
class="hps">imagine</span><span>.</span> <span
class="hps">Please</span> <span class="hps">tell me
how</span> <span class="hps">it can be implemented</span><span
class="">.</span></span><br>
<br>
Thank!<br>
<br>
<br>
<br>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
<br>
<br>
</hl><br>
<b>Александр Пучков,<br>Системный администратор,<br>Тел.: +7(496) 569-24-24 доб.тел. 255;<br></b>ООО "ПОИГ" (Интернет-провайдер г. Щелково)<br>Факс: +7(496) 569-24-24 доб. 103;<br>Адрес: 141108, М.О., г.Щелково, Пролетарский пр., д.11;<br>WEB: <a href="http://www.schelkovo-net.ru">http://www.schelkovo-net.ru</a><br>
<br>
</body>
</html>