[asterisk-users] Return codes

Doug Crompton doug at crompton.com
Tue Nov 28 10:54:53 MST 2006


How does one process a return code in Asterisk?

Example...

exten => s,n,Playback(/tmp/podcast/${CALLERIDNUM})
exten => s,n,System(rm "/tmp/podcast/${CALLERIDNUM}.gsm")


If the caller hangs up on the playback command the file remove System
statement after it never gets executed. The playback command returns a -1
in this case and logs a warning. The only thing mentioned in the command
reference is 101 for file not found.

Doug



More information about the asterisk-users mailing list