<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">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></body>
</html>