Songtao Yu
2010-Sep-29 09:56 UTC
[asterisk-users] DAHDI FXO port only recognizes the "S" extension
Hi All, 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? Thanks, Songtao Yu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100929/f2111a16/attachment.htm
Warren Selby
2010-Sep-29 14:30 UTC
[asterisk-users] DAHDI FXO port only recognizes the "S" extension
2010/9/29 Songtao Yu <yustao_2002 at hotmail.com>> Would you please let me which casuses this issue? >That is by design. Incoming calls on an FXO port go to the s extension of the context you've defined on that DAHDI channel. -- Thanks, --Warren Selby http://www.selbytech.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100929/cc54a14c/attachment.htm
Carlos Chavez
2010-Sep-29 15:45 UTC
[asterisk-users] DAHDI FXO port only recognizes the "S" extension
On Wed, 2010-09-29 at 17:56 +0800, Songtao Yu wrote:> Hi All, > > 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? >_X. does not match s and that is why your dialplan cannot continue. X only matches digits 0 to 9. -- Telecomunicaciones Abiertas de M?xico S.A. de C.V. Carlos Ch?vez Prats Director de Tecnolog?a +52-55-91169161 ext 2001 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: This is a digitally signed message part Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20100929/03408b24/attachment.pgp
Andrew Thomas
2010-Sep-29 15:58 UTC
[asterisk-users] DAHDI FXO port only recognizes the "S" extension?
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? -----Original Message----- From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Songtao Yu Sent: 29 September 2010 10:56 To: asterisk-users at lists.digium.com Subject: [asterisk-users] DAHDI FXO port only recognizes the "S" extension? Hi All, 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? Thanks, Songtao Yu If you have received this communication in error we would appreciate you advising us either by telephone or return of e-mail. The contents of this message, and any attachments, are the property of DataVox, and are intended for the confidential use of the named recipient only. If you are not the intended recipient, employee or agent responsible for delivery of this message to the intended recipient, take note that any dissemination, distribution or copying of this communication and its attachments is strictly prohibited, and may be subject to civil or criminal action for which you may be liable. Every effort has been made to ensure that this e-mail or any attachments are free from viruses. While the company has taken every reasonable precaution to minimise this risk, neither company, nor the sender can accept liability for any damage which you sustain as a result of viruses. It is recommended that you should carry out your own virus checks before opening any attachments. Registered in England. No. 27459085.
A J Stiles
2010-Sep-29 17:20 UTC
[asterisk-users] DAHDI FXO port only recognizes the "S" extension
On Wednesday 29 Sep 2010, Songtao Yu wrote:> Hi All, > > 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?Extensions represent different numbers dialled by the calling party. An FXO port has only *one* number associated with it -- the number of the POTS line to which it is connected. It does not, therefore, have to be able to differentiate between extensions. Incoming calls just go straight to the "s" extension of the context associated with the channel. If for some reason you have more than one FXO port (ordinarily, you would get multiple lines by means of ISDN), then just bring each one in on a separate context. -- AJS