[asterisk-users] DAHDI FXO port only recognizes the "S" extension?

Tilghman Lesher tlesher at digium.com
Wed Sep 29 11:06:54 CDT 2010


On Wednesday 29 September 2010 10:58:55 Andrew Thomas wrote:
> Songtao Yu wrote:
> > When I tried to write my dial plan as below for my FXO port, which
> > connects one PSTN line:
> >
> > [from-pstn]
> > exten =>s,1,Answer()
> > exten =>s,n,Wait(1)
> > exten =>_X.,1,Dial(DAHDI/1)
> > exten =>_X.,n,Hangup
> >
> > I got the following message:
> > Connected to Asterisk 1.6.2.13 currently running on fax (pid = 8154)
> > Verbosity was 0 and is now 4
> >     -- Starting simple switch on 'DAHDI/1-1'
> >     -- Executing [s at from-pstn:1] Answer("DAHDI/1-1", "") in new stack
> >     -- Executing [s at from-pstn:2] Wait("DAHDI/1-1", "1") in new stack
> >     -- Auto fallthrough, channel 'DAHDI/1-1' status is 'UNKNOWN'
> >     -- Hungup 'DAHDI/1-1'
> >
> > But if I changed the "_X." to "S" extension, I can get the whole thing
> > to work well:
> > [from-pstn]
> > exten =>s,1,Answer()
> > exten =>s,n,Wait(1)
> > exten =>s,n,Dial(DAHDI/3)
> > exten =>s,n,Hangup
> >
> > Would you please let me which casuses this issue?
>
> The cause is bad programming.  You can't go from an 's' to an '_X.' the
> way you tried.
>
> exten =>s,1,Answer()
> exten =>s,n,Wait(1)
> exten =>s,n,Dial(DAHDI/3)
> exten =>s,n,Hangup
>
> Is correct (that's why it works).
>
> What is it you are trying to achieve?

My guess is that he wants to input an extension and use that in the Dial.  The
issue is the Wait(1).  What the OP actually wants to use there is a
WaitExten(10) or something similar.

-- 
Tilghman Lesher
Digium, Inc. | Senior Software Developer
twitter: Corydon76 | IRC: Corydon76-dig (Freenode)
Check us out at: www.digium.com & www.asterisk.org



More information about the asterisk-users mailing list