<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hi,<br>
<br>
how about evaluating the DIALSTATUS Variable in Server2 right
after Dial and Hangup the call accordingly instead of waiting
(wait(15))...<br>
<br>
yves<br>
<br>
<br>
Am 24.01.2017 um 01:38 schrieb Fred Muteesa:<br>
</div>
<blockquote
cite="mid:AM4PR07MB15873E86E2606031C1521E2BA4750@AM4PR07MB1587.eurprd07.prod.outlook.com"
type="cite">
<div class="WordSection1">
<p class="MsoNormal">Hello Dev team, </p>
<p class="MsoNormal">I have been playing with asterisk dial
function and I have the senarial below.
</p>
<p class="MsoNormal">I am generating a call from server 1 and
receiving it on server 3, but I want server 1 to control how
long this call should be.
</p>
<p class="MsoNormal">Though I placed server 2 in the middle
which is able to modify my parameters of the dial function and
control call duration.</p>
<p class="MsoNormal">How do I detect on server 1 that server 3
has hangup so that server 2 does not keep the call connected
longer than I require.</p>
<p class="MsoNormal">This is of extreme importance to me all
advise and help will be appreciated.</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><b>On Server 1<o:p></o:p></b></p>
<p class="MsoNormal">[to_server2]</p>
<p class="MsoNormal">exten =>
1234,1,Dial(SIP/server2/1234,3,S(3))</p>
<p class="MsoNormal">exten =>1234,2,Hangup() </p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><b>on Server 2<o:p></o:p></b></p>
<p class="MsoNormal">[from_server1]</p>
<p class="MsoNormal">exten =>
1234,1,Dial(SIP/server3/1234,,gS(15))</p>
<p class="MsoNormal">exten =>1234,2,wait(15)</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><b>on Server 3<o:p></o:p></b></p>
<p class="MsoNormal">[from_server2]</p>
<p class="MsoNormal">exten =>1234,1,answer()</p>
<p class="MsoNormal">exten =>1234,2,wait(3)</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Best regards,</p>
<p class="MsoNormal">Fred</p>
<p class="MsoNormal">VoIP Engineer</p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
</blockquote>
<p><br>
</p>
</body>
</html>