<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix"><span id="result_box" class=""
lang="en"><span title="ÐеÑколько Ñлов о Ñтруктуре Ñети:
">A few words about the structure of my network.<br>
<br>
</span><span title="У Ð¼ÐµÐ½Ñ Ð´Ð¾Ñтаточно проÑÑ‚Ð°Ñ Ñтруктура:
">I have a very simple structure:<br>
<br>
</span><span title="UAC <---> OpenSIPS <---> PSTN
">UAC <---> OpenSIPS <---> PSTN<br>
<br>
</span><span title="Ðто позволÑет обычному клиенту Ñовершать и
принимать звонки.
">This allows a regular customer to make and receive calls.<br>
</span><span title="Я же хочу предоÑтавлÑÑ‚ÑŒ некоторым клиентам
раÑширенный ÑÐµÑ€Ð²Ð¸Ñ Ñ Ð¿Ð¾Ð¼Ð¾Ñ‰ÑŒÑŽ аÑтериÑка, к примеру голоÑовую
почту.
">I want to provide SOME customers extended service using an
asterisk, for example - voicemail.<br>
<br>
</span><span title="Ðа данный момент Ñ Ð½Ð°ÑˆÐµÐ» такой выход длÑ
Ñтих клиентов:
">At the moment, I found a way out for these customers (with
extended service) :<br>
<br>
</span><span title="UAC <---> OpenSIPS <--->
ASTERISK <---> PSTN
">UAC <---> OpenSIPS <---> ASTERISK <--->
PSTN<br>
<br>
</span><span title="СоответÑтвенно, клиенты (UAC), которые
должны уходить в PSTN через Asterisk занеÑены в группу
"asterisk".
">Accordingly , </span></span><span id="result_box" class=""
lang="en"><span title="СоответÑтвенно, клиенты (UAC), которые
должны уходить в PSTN через Asterisk занеÑены в группу
"asterisk".
"><span id="result_box" class="" lang="en"><span title="Ðа
данный момент Ñ Ð½Ð°ÑˆÐµÐ» такой выход Ð´Ð»Ñ Ñтих клиентов:
">customers</span></span> (UAC), which should go to the
PSTN through Asterisk listed in the group "asterisk".<br>
<br>
</span><span title="Важный момент: OpenSIPS должен быть
зарегеÑтрирован как UAC на asterisk как extension, иначе
раÑширенный ÑÐµÑ€Ð²Ð¸Ñ Ð½ÐµÐ»ÑŒÐ·Ñ Ð±ÑƒÐ´ÐµÑ‚ предоÑтавить.
">An important point: OpenSIPS must be registered as UAC on
how asterisk extension, otherwise the service will not be
extended to provide.<br>
</span><span title="Кроме того, намного проще внеÑти
Ð¿Ð¾Ð»ÑŒÐ·Ð¾Ð²Ð°Ñ‚ÐµÐ»Ñ Ð² группу "asterisk", чем менÑÑ‚ÑŒ
наÑтройки его SIP-клиента.
">Also, much easier to make the user to the "asterisk" group,
than tweak its SIP-client.<br>
<br>
</span><span title="Ð”Ð»Ñ Ñ‚Ð¾Ð³Ð¾, чтобы Ñто Ñделать Ñ Ð¸Ñпользовал
модуль uac_registrant, он позволÑет зарегиÑтрировать OpenSIPS
как UAC на asterisk.
">In order to do this I used the module "uac_registrant", it
allows you to register as OpenSIPS to UAC asterisk.<br>
<br>
</span><span title="С его помощью Ñ Ð¼Ð¾Ð³Ñƒ Ñделать звонок:
">With it, I can make a call :<br>
<br>
</span><span title="UAC <--- OpenSIPS <--- ASTERISK
<--- PSTN
">UAC <--- OpenSIPS <--- ASTERISK <--- PSTN<br>
<br>
</span><span title="Рвот такой звонок Ñделать не могу:
">But such a call can not do :<br>
<br>
</span><span title="UAC ---> OpenSIPS ---> ASTERISK
---> PSTN
">UAC ---> OpenSIPS ---> ASTERISK ---> PSTN<br>
<br>
</span><span title="Я пробовал иÑпользовать topology_hiding() и
match_dialog(),
">I tried using topology_hiding () and match_dialog (),<br>
<br>
</span><span title="но при Ñтом OpenSIPS не переÑылает запроÑ
ACK аÑтериÑку.">but it does not forward the request </span></span><span
id="result_box" class="" lang="en"><span title="но при Ñтом
OpenSIPS не переÑылает Ð·Ð°Ð¿Ñ€Ð¾Ñ ACK аÑтериÑку."><span
id="result_box" class="" lang="en"><span title="но при Ñтом
OpenSIPS не переÑылает Ð·Ð°Ð¿Ñ€Ð¾Ñ ACK аÑтериÑку.">"ACK" from </span></span>OpenSIPS
to Asterisk .<br>
<br>
</span></span>24.03.2014 14:50, Bogdan-Andrei Iancu пишет:<br>
</div>
<blockquote cite="mid:53300DFF.4090407@opensips.org" type="cite">
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<div class="moz-cite-prefix"><tt>Hello,<br>
<br>
Script-wise, what are you trying to do right now by the
db_is_user_in() ? If you explain the actual idea you try to
implement, I can guide you with the script.<br>
<br>
So, when comes to the incoming REGISTER, what you want to
change now ?<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 21.03.2014 10:37, ÐлекÑандр Пучков wrote:<br>
</div>
<blockquote cite="mid:532BFA40.10406@poig.ru" type="cite">
<meta content="text/html; charset=UTF-8"
http-equiv="Content-Type">
<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 moz-do-not-send="true" 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>
<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 moz-do-not-send="true"
href="http://www.schelkovo-net.ru">http://www.schelkovo-net.ru</a><br>
<br>
</blockquote>
<br>
</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>