[Asterisk-Users] exited non-zero

steve steve at szmidt.org
Thu Apr 10 20:03:33 MST 2003


I've been beating myself up over this script but clearly I'm missing 
something. If I enter an extension like 101 it rings through fine, 
but if I pick 2 for sales it hangs up with this message:

== Spawn extension (sales, s, 1) exited non-zero on `Zap/1-1'

Since I'm not sure what that exacly means I cannot take appropriate 
action. Any help would be appreciated.

[default]
include => incoming
include => parkedcalls

[incoming]
exten => s,1,Wait,1
exten => s,2,Answer
exten => s,3,DigitTimeout,5
exten => s,4,ResponseTimeout,15
exten => s,5,SetMusicOnHold,Random
exten => s,6,Background,tku4calling
exten => s,7,Background,menu

exten => 2,1,Goto(sales,s,1)
exten => 3,1,Goto(finance,s,1)
exten => 4,1,Goto(change,s,1)
exten => 5,1,Goto(support,s,1)

exten => 0,1,Dial,ZAP/2|10|mt

exten => 100,1,Dial,Zap/2|20|m
exten => 100,2,Voicemail,u100
exten => 100,102,Voicemail,b100

exten => 101,1,Dial,Zap/2|20|m
exten => 101,2,WaitMusicOnHold,15
exten => 101,3,Voicemail,u101
exten => 101,102,Voicemail,b101

exten => 102,1,Dial,Zap/2|20|m
exten => 102,2,Voicemail,u102
exten => 102,102,Voicemail,b102

exten => 103,1,Dial,Zap/2|20|m
exten => 103,2,Voicemail,u103
exten => 103,102,Voicemail,b103

exten => 8500,1,VoicemailMain

exten => i,1,Playback,pbx-invalid

exten => t,1,Playback,demo-thanks
exten => t,2,Hangup

include => extensions

[sales]
exten => s,1,Background(welcome)
exten => 1,1,Goto(default,101,1)

[finance]
exten => s,1,Background(welcome)
exten => 1,1,Goto(default,101,1)

[change]
exten => s,1,Background(welcome)
exten => 1,1,Goto(default,101,1)

[support]
exten => s,1,Background(welcome)
exten => 1,1,Goto(default,101,1)

[extensions]
; Main extension
exten => 100,1,Goto,default|s|1

; Steve's Extension
exten => 101,1,Dial,Zap/2|30
exten => 101,2,VoiceMail,u101
exten => 101,102,VoiceMail,b101

; Mo's Extension
exten => 102,1,Dial,Zap/2|30
exten => 102,2,VoiceMail,u102
exten => 102,102,VoiceMail,b102

; Natasha's Extension
exten => 103,1,Dial,Zap/2|30
exten => 103,2,VoiceMail,u103
exten => 103,102,VoiceMail,b103


-- 

Steve Szmidt
___________________________________________________________
HTML in e-mail is not safe. It let's spammers know to spam you more,
and sets you up for online attack through IE 4.x and above.
Using HTML in e-mail only promotes it as safe to the uninitiated.





More information about the asterisk-users mailing list