<div class="gmail_quote">On Sun, Nov 16, 2008 at 9:37 AM, Tony Mountifield <span dir="ltr"><<a href="mailto:tony@softins.clara.co.uk">tony@softins.clara.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br></blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Actually, if Read() works, then WaitExten should have worked too. I expect<br>
what was missing was the Answer(). So this ought to work as an alternative:</blockquote><div><br></div><div>It doesn't for some reason... I end up getting the timeout call </div><div><br></div><div><div>[Nov 16 23:22:51] WARNING[8213]: pbx.c:7787 pbx_builtin_waitexten: Timeout but no rule 't' in context 'from-nec'</div>
<div> == Spawn extension (from-nec, s, 3) exited non-zero on 'DAHDI/28-1'</div><div> -- Hungup 'DAHDI/28-1'</div><div><br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Also, there is one improvement I think might be made to either, and that<br>
is to replace the 'r' flag (always generate ringing) with a call to<br>
Progress() before the Dial:</blockquote><div><br></div><div>I'll give that a shot</div><div><br></div><div>And ideas why the waitexten is not getting the digits?</div><div><br></div><div>I am getting another weird error as well that might shed some light.</div>
<div><br></div><div>Calling from the NEC phone digital handsets works 100%. Calling from the telco and into the NEC system also works fine.</div><div><br></div><div>But when I try to call out using a POTS phone connected to an analog line on the NEC, it seems like the numbers get mangled on either their way to Asterisk (unlikely as the NEC was making calls out the E1 from POTS lines yesterday) or from the translation that the asterisk box is doing to talk to the NEC.</div>
<div><br></div><div>For example, I dial: 96920000 the NEC system prepends it with 1414 (which is our telco access prefix) and then dials.</div><div><br></div><div>If I do this from an NEC digital extension I get 141496920000, but if I do it from an NEC POTS extension I get 1942124000</div>
<div><br></div><div>Strange :)</div><div><br></div><div>Incomming from Telco => * => NEC => POTS line works fine.</div><div><br></div><div>Wrap your brain cells around that one :)</div><div><br></div><div>Mikel</div>
<div><br></div></div>