[Asterisk-Users] Digit detect during a Background() inside a Macro wrongly jumps b ack to the calling context to match digits?

el Flynn el_flynn at lanvik-icu.com
Fri Aug 27 01:38:06 MST 2004


Kris Boutilier wrote:
> 
> 	[macro-process-routing]
> 	; This is the entrypoint of the debug call but is also refered to by
> Macro(process-routing) elsewhere in the dialplan
> 
> 	; XXX-NNN-6800
> 	exten => _6800,1,Macro(6800-interceptor)
> 
> 	; This is matched when 8 is dialed during macro-6800-interceptor,s,4
> 	exten => _8,1,Playback(welcome)	
> 	exten => _8,2,Hangup
> 
> 
> 	[macro-6800-interceptor]
> 	exten => s,1,DigitTimeout,2
> 	exten => s,2,ResponseTimeout,7
> 	exten => s,3,Answer
> 	exten => s,4,Background(autoattendant-ivr/grtg-6)
> ; Play full after-hours greeting
> 

if the 6800-interceptor is only referenced within the process-routing 
macro, and nowhere else in the dialplan, couldn't you just create a new 
context called [6800-interceptor] and change the process-routing macro to:

exten => _6800,1,Goto(6800-interceptor,s,1)

That might work.

Flynn




More information about the asterisk-users mailing list