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-boun...@lists.digium.com
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Songtao Yu
Sent: 29 September 2010 10:56
To: asterisk-users@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 [...@from-pstn:1] Answer("DAHDI/1-1", "") in new stack
    -- Executing [...@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.



-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to