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@signate.com <mailto:pmahler@signate.com>
Paul Mahler
2004-May-02 16:07 UTC
[Asterisk-Users] Why don't I get a ringing sound? - DUH!
I got it! Nothing like posting to the mailing list when you're going to look
stupid to help you find the answer yourself!
The answer is to use waitforring(1)!
Thanks!
Paul Mahler
pmahler@signate.com
Signate, LLC
PO Box 60430
Palo Alto, CA
94306
VoIP Systems, Training & Consulting
-----Original Message-----
From: asterisk-users-admin@lists.digium.com
[mailto:asterisk-users-admin@lists.digium.com] On Behalf Of Paul Mahler
Sent: Sunday, May 02, 2004 2:43 PM
To: asterisk-users@lists.digium.com
Subject: [Asterisk-Users] Why don't I get a ringing sound?
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@signate.com <mailto:pmahler@signate.com>
_______________________________________________
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users