<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><font style="" face="Tahoma">Further info...<br><br>What I want to achieve here is called "early dial" when connecting a sip phone to Asterisk. Each digit is sent to the server and if it does not match a dial plan it looks for the next digit until it finally finds a match. Is there a way to do this between servers to achieve what I asked in the prior message?<br id="FontBreak"></font><br><b><font style="font-size:16pt;" size="4">73 Doug</font><font style="font-size:16pt;" size="4"><br></font><font style="font-size:16pt;" size="4">WA3DSP</font><font style="font-size:16pt;" size="4"><br></font><font style="font-size:16pt;" size="4">http://www.crompton.com/hamradio</font></b><font style="font-size:16pt;" size="4"><br></font><br><br><div><hr id="stopSpelling">From: doug@crompton.com<br>To: app_rpt-users@ohnosec.org<br>Date: Fri, 15 Nov 2013 22:04:33 -0500<br>Subject: [App_rpt-users] Dial plan question<br><br>

<style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}

.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}

--></style>
<div dir="ltr"><font style="" face="Tahoma">I have been using Asterisk for years but I just ran into a problem that I am sure there is a way to fix but I can't figure it out.<br><br>I am connecting my Allstar server to my PBX asterisk server via IAX2. The connection works fine but I need some help on passing the extension. I want to pass the variable length extension to my pbx server. Extensions could be any combination of 3 digits up to a full phone number length. The actual extensions are processed in the PBX.<br><br>Here is the Allstar extension snippet -<br><br>[pbx_server]<br>exten => _xxx,1,Answer<br>exten => _xxx,n,noop("${EXTEN}")<br>exten => _xxx,n,Wait(2)<br>exten => _xxx,n,Dial(IAX2/pbx/${EXTEN})<br>exten => _xxx,n,Playback(vm-nobodyavail)<br>exten => ,n,Hangup<br><br>in rpt.conf <br><br>61=autopatchup,context=pbx_server,noct=1,farenddisconnect=1,dialtime=20000,quiet=1   ; Autopatch up<br>0=autopatchdn                           ; Autopatch down<br><br><br>In the example I have put a 3 digit extension.  So if I dial *61522  -  522 is passed to the pbx server. This works fine but I want to pass any length extension. If I put something like  _x!  -  it just hits on the first digit. Maybe I could use waitexten() to capture it and pass to the pbx. Any ideas?<br><br>The Allstar Asterisk and pbx Asterisk are obviously different machines on the same network. </font><br><br><b><font style="font-size:16pt;" size="4">73 Doug</font><font style="font-size:16pt;" size="4"><br></font><font style="font-size:16pt;" size="4">WA3DSP</font><font style="font-size:16pt;" size="4"><br></font><font style="font-size:16pt;" size="4">http://www.crompton.com/hamradio</font></b><font style="font-size:16pt;" size="4"><br></font>                                           </div>
<br>_______________________________________________
App_rpt-users mailing list
App_rpt-users@ohnosec.org
http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users</div>                                     </div></body>
</html>