[Asterisk-Users] Why don't I get a ringing sound?

Paul Mahler pmahler at signate.com
Sun May 2 15:42:39 MST 2004


I am using the following macro to dial a ZAP channel. When I dial in, *
answers and I go to voicemail. I never hear any ringing, though. It doesn't
work with the Ringing command before or after the Dial command. 

[macro-zapdial]
;
; call a ZAP extension for ${ARG2} seconds, and then voice mail
;   ${ARG1} - Extension
;   ${ARG2} - Time to ring
exten => s,1,Dial(ZAP/${ARG1},${ARG2})
exten => s,2,ringing
exten => s,3,Voicemail(u$[${ARG1} + 99]) ; match the channel to the mailbox
exten => s,4,Goto(${ARG1},1) ; If they press #, return to start
exten => s,104,Voicemail(b$[${ARG1} + 99])
exten => s,5,Goto(${ARG1},1) ; If they press #, return to start

Here is what the log shows: 

-- Zap/1-1 is ringing
    -- Nobody picked up in 20000 ms
    -- Hungup 'Zap/1-1'
    -- Executing Ringing("Zap/49-1", "") in new stack
    -- Executing VoiceMail("Zap/49-1", "u100") in new stack
    -- Playing 'vm-theperson' (language 'en')
May  2 18:36:45 WARNING[163851]: chan_zap.c:1193 zt_set_hook: zt hook
failed: Device or resource busy
    -- Starting simple switch on 'Zap/1-1'
    -- Hungup 'Zap/1-1'
    -- Playing 'digits/1' (language 'en')
    -- Playing 'digits/0' (language 'en')
    -- Playing 'digits/0' (language 'en')
    -- Playing 'vm-isunavail' (language 'en')
    -- Playing 'vm-intro' (language 'en')
  == Spawn extension (macro-zapdial, s, 3) exited non-zero on 'Zap/49-1' in
macro 'zapdial'
  == Spawn extension (main, 100, 1) exited non-zero on 'Zap/49-1'
    -- Hungup 'Zap/49-1'

Paul Mahler 
pmahler at signate.com <mailto:pmahler at signate.com>  	




More information about the asterisk-users mailing list