<html>
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 10 (filtered)">
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
h1
        {margin-right:0in;
        margin-left:0in;
        font-size:24.0pt;
        font-family:"Times New Roman";
        font-weight:bold;}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
p
        {margin-right:0in;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EmailStyle17
        {font-family:Arial;
        color:windowtext;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
/* List Definitions */
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> </span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> </span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Hi Everyone,</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> </span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I am trying to implement Serial Forking (Find Me Follow Me)
where an IVR message </span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>is played out before call forwarding (t-relaying of calls)
is initiated.</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> </span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>My implementation is as follows:</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> </span></font></p>
<ol start=1 type=1>
<li class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Main dialed number is tried.</span></font></li>
<li class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>When the callee does not pick up the call, a timeout
occurs</span></font></li>
<li class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Upon timeout, I want to forward the call to an IVR to
play the audio message: </span></font></li>
</ol>
<p class=MsoNormal style='margin-left:.25in;text-indent:.25in'><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'>“The party
you are trying to reach is not answering. You will be forwarded to their secondary
numbers. please wait.”</span></font></p>
<p class=MsoNormal style='margin-left:.25in;text-indent:.25in'><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'> </span></font></p>
<ol start=4 type=1>
<li class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>After the message is played out, the call is forwarded
to the callee’s first FindMeFollowMe number</span></font></li>
<li class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>If there is no answer at the forwarded number, call is
forwarded to the callee’s next FindMeFollowMe number</span></font></li>
<li class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>if there is no answer at the callee’s last FindMeFollowMe
number, the call is forwarded to the callee’s voicemail</span></font></li>
</ol>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> </span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> </span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>The problem I am having is that at step 4, after the message
is played out by the asterisk IVR</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>successfully, a BYE message is sent by asterisk IVR to SER.
In SER, I catch the BYE SIP </span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>message and then try to execute a “t_relay” to
forward the call to the callee’s first FindMeFollowMe </span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>number. But, t_relay generates this error:</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> </span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>12(20843) ERROR: t_newtran: transaction already in process 0xb5468b38^M</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>12(20843) route[2]: t_relay failed^M
</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>12(20843) route[2]: sl_reply_error executed^M</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>12(20843) ERROR: sl_reply_error used: I'm terribly sorry,
server error occurred (1/SL)^M</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> </span></font></p>
<h1><b><font size=2 face="Times New Roman"><span style='font-size:10.0pt;
font-weight:normal'>I read the following section from <a name=SERUSER>“iptel.org
SIP Express Router v0.11.0 -- Admin's Guide</a>” (http://www.iptel.org/ser/doc/seruser/seruser.html#AEN1078):</span></font></b></h1>
<p><b><font size=3 face="Times New Roman"><span style='font-size:12.0pt;
font-weight:bold'>3.3.6. </span></font></b>I receive "ERROR: t_newtran:
transaction already in process" in my logs. </p>
<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>That
looks like an erroneous use of tm module in script. tm can handle only one
transaction per request. If you attempt to instantiate a transaction multiple
times, <span class=application>ser</span> will complain. Anytime any of <b><span
style='font-weight:bold'>t_newtran</span></b>, <b><span style='font-weight:
bold'>t_relay</span></b> or <b><span style='font-weight:bold'>t_relay_to_udp</span></b>
actions is encountered, tm attempts to instantiate a transaction. Doing so
twice fails. Make sure that any of this commands is called only once during
script execution. </span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>And my understanding was that because the first call that I
had forwarded to the Asterisk IVR at step 3 had not been terminated, </span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>and therefore its associated transaction still existed, SER
did not allow the creation of a new transaction through the invocation of </span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>t_relay. And Asterisk continuously retransmitted the BYE
message to SER. </span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> </span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>My question is : How can terminate the connection that was
set up to Asterisk IVR at step 3 successfully before </span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Initiating the first call forward at step 4? I tried sending
SIP 200 (OK) responses from SER back to Asterisk IVR, </span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>in response to the BYE requests SER receives from it, to force
Asterisk IVR to terminate the connection but it </span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>doesn’t seem to work?! I sent these responses back
using sl_send_reply and t_reply. I tried t_release() instead</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>of sending 200 (OK) SIP response back to Asterisk but that
didn’t terminate the call either!</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> </span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> </span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Can anyone suggest any solutions?</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> </span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Thanks</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> </span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Ramin</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>rnikaeen@goldline.net</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> </span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> </span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> </span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> </span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> </span></font></p>
<p class=MsoNormal style='margin-left:.25in;text-indent:.25in'><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'> </span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> </span></font></p>
</div>
</body>
</html>