<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.E-MailFormatvorlage17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="DE" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Hi all,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I’m trying to make a blind call forward to „1002“ if a UA calls „1“ into Kamailio. At the moment I have the following config:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="text-indent:35.4pt">if ( $rU=~"^[1]$" && src_ip==$sel(cfg_get.pstn.gw_ip) ) {<o:p></o:p></p>
<p class="MsoNormal">                               sl_send_reply("181", "Redirecting");<o:p></o:p></p>
<p class="MsoNormal">                               $ru = "sip:1002@" + $sel(cfg_get.pstn.gw_ip) + ":" + $sel(cfg_get.pstn.gw_port) + ";user=phone";<o:p></o:p></p>
<p class="MsoNormal">                               force_send_socket(udp:MY_EXTERN_IP:5060);<o:p></o:p></p>
<p class="MsoNormal">                               route(NORMAL_RELAY); #Just t_on_branch/reply/failure<o:p></o:p></p>
<p class="MsoNormal">                               if (!t_relay()) {<o:p></o:p></p>
<p class="MsoNormal">                                               sl_reply_error();<o:p></o:p></p>
<p class="MsoNormal">                               }<o:p></o:p></p>
<p class="MsoNormal">                               exit;<o:p></o:p></p>
<p class="MsoNormal">                }<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The calling UA is from the PSTN as well as the called UA. Problem right now is that the PSTN’s anti-Loop protection jumps in and rejects the INVITE to 1002.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Question: Is it possible to tell the calling UA „Hey wait, 181...“ with Kamailio, then build seperately an independent Call Leg (with new CallID?) from Kamailio to UA „1002“ and finally to put them together?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Any help is very much appreciated even if they are just guides/examples. I’m using Kamailio 4.3.5 on CentOS 7.2.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="mso-fareast-language:DE">Very Respectfully<o:p></o:p></span></p>
<p class="MsoNormal"><b><span style="mso-fareast-language:DE">Dimitry Nagorny<o:p></o:p></span></b></p>
<p class="MsoNormal"><span style="font-size:8.0pt;mso-fareast-language:DE">Trainee</span><span lang="EN-US" style="font-size:8.0pt;color:#7F7F7F;mso-fareast-language:DE"><o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>