Problems with incoming calls from POTS in Asterisk 1.2.12.1

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dear Folks,

I am stuck and would appreciate any help to move forward.

I am having a problem configuring the dialplan for an Asterisk 1.2.12.1 
system running on Linux that gives me the result shown below.

In this problem, I an trying to dial into Asterisk and then connect to 
an internal user at extension 1002 (as in call <phone number> Ext 1002). 
  The problem occurs no matter which extension I dial, in particular, it 
tells me that there is no valid extension '1' in context 'incoming' on 
Zap/1-1.

The message about file DDSLGREET is deliberate.  I set it up like that 
so I can distinguish Asterisk from our existing phone system when I dial 
in.  Please ignore it.

     -- Starting simple switch on 'Zap/1-1'
Jan 24 11:44:53 NOTICE[2391]: chan_zap.c:6073 ss_thread: Got event 18 
(Ring Begin)...
     -- Executing Answer("Zap/1-1", "") in new stack
     -- Executing BackGround("Zap/1-1", "DDSLGREET") in new stack
Jan 24 11:44:53 WARNING[2391]: file.c:512 ast_openstream_full: File 
DDSLGREET does not exist in any format
Jan 24 11:44:53 WARNING[2391]: file.c:824 ast_streamfile: Unable to open 
DDSLGREET (format unknown): No such file or directory
Jan 24 11:44:53 WARNING[2391]: pbx.c:5798 pbx_builtin_background: 
ast_streamfile failed on Zap/1-1 for DDSLGREET
     -- Executing WaitExten("Zap/1-1", "15") in new stack
     -- Invalid extension '1' in context 'incoming' on Zap/1-1
   == CDR updated on Zap/1-1
     -- Executing Hangup("Zap/1-1", "") in new stack
   == Spawn extension (incoming, i, 1) exited non-zero on 'Zap/1-1'
     -- Hungup 'Zap/1-1'


The output of show dialplan is as follows.

*CLI> show dialplan
[ Context 'EMERGENCY_FIRE' created by 'pbx_ael' ]
   '990' =>          1. Dial(${TRUNK}/990||r)                      [pbx_ael]
   '9990' =>         1. Dial(${TRUNK}/990||r)                      [pbx_ael]

[ Context 'RESTRICTED' created by 'pbx_ael' ]
   '_1XXX' =>        1. Macro(std-exten-ael|${EXTEN}|SIP)          [pbx_ael]

[ Context 'international' created by 'pbx_ael' ]
   Ignore pattern => '=> 9 _9011. => {   Dial(${TRUNK}/${EXTEN:1},,r); 
}' [pbx_ael]

[ Context 'longdistance' created by 'pbx_ael' ]
   '_91NXXNXXXXXX' => 1. Dial(${TRUNK}/${EXTEN:1}||r) 
[pbx_ael]
   Ignore pattern => '=> 9'                                        [pbx_ael]

[ Context 'local' created by 'pbx_ael' ]
   '_9NXXXXXX' =>    1. Dial(${TRUNK}/${EXTEN:1}||r)               [pbx_ael]
   Ignore pattern => '=> 9'                                        [pbx_ael]

[ Context 'incoming' created by 'pbx_ael' ]
   'i' =>            1. Hangup()                                   [pbx_ael]
   's' =>            1. Answer()                                   [pbx_ael]
                     2. Background(DDSLGREET)                      [pbx_ael]
                     3. WaitExten(15)                              [pbx_ael]
   't' =>            1. Hangup()                                   [pbx_ael]
   '_1XXX' =>        1. Goto(internal|_1XXX|1)                     [pbx_ael]

[ Context 'internal' created by 'pbx_ael' ]
   '_1XXX' =>        1. Macro(std-exten-ael|${EXTEN}|SIP)          [pbx_ael]
   Include =>        'RESTRICTED'                                  [pbx_ael]
   Include =>        'local'                                       [pbx_ael]
   Include =>        'londgistance'                                [pbx_ael]
   Include =>        'international'                               [pbx_ael]

[ Context 'default' created by 'pbx_ael' ]
   Include =>        'internal'                                    [pbx_ael]

[ Context 'macro-std-exten-ael' created by 'pbx_ael' ]
   'a' =>            1. VoiceMailMain(${ext})                      [pbx_ael]
                     2. return()                                   [pbx_ael]
   's' =>            1. Set(ext=${ARG1})                           [pbx_ael]
                     2. Set(dev=${ARG2})                           [pbx_ael]
                     3. Dial(${dev}/${ext}|20|r)                   [pbx_ael]
                     4. Goto(sw-4-${DIALSTATUS}|1)                 [pbx_ael]
                     5. NoOp(Finish switch-4)                      [pbx_ael]
   'sw-4-BUSY' =>    1. VoiceMail(b${ext})                         [pbx_ael]
                     2. Goto(s|5)                                  [pbx_ael]
   '_sw-4-.' =>      1. VoiceMail(u${ext})                         [pbx_ael]
                     2. Goto(s|5)                                  [pbx_ael]

[ Context 'parkedcalls' created by 'res_features' ]
   '700' =>          1. Park() 
[res_features]

-= 15 extensions (24 priorities) in 10 contexts. =-
*CLI>


Any help would be appreciated.

Yours sincerely,
Robert Honore.

[Index of Archives]     [Asterisk App Development]     [PJ SIP]     [Gnu Gatekeeper]     [IETF Sipping]     [Info Cyrus]     [ALSA User]     [Fedora Linux Users]     [Linux SCTP]     [DCCP]     [Gimp]     [Yosemite Backpacking]     [Deep Creek Hot Springs]     [Yosemite Campsites]     [ISDN Cause Codes]     [Asterisk Books]

  Powered by Linux