- Joined
- Apr 13, 2011
- Messages
- 97
- Reaction score
- 0
I have written a php script that gets triggered when an inbound call comes in. It's working but I am having a problem when a caller goes into a call queue. If a call queue has three extensions it's triggering the script three times. I need it to only get triggered once when extension 7946 is called.
Is the extensions.conf file where this macro/php script trigger should go?
How should I modify the macro so it only get's trigger when a specific extension is called?
I tried this but it does not work:
Thanks.
Is the extensions.conf file where this macro/php script trigger should go?
Code:
;
############################################################################
; Macros [macro]
; ############################################################################
; Rings one or more extensions. Handles things like call forwarding and DND
; We don't call dial directly for anything internal anymore.
; ARGS: $TIMER, $OPTIONS, $EXT1, $EXT2, $EXT3, ...
; Use a Macro call such as the following:
; Macro(dial,$DIAL_TIMER,$DIAL_OPTIONS,$EXT1,$EXT2,$EXT3,...)
[macro-dial]
exten => s,1,GotoIf($["${MOHCLASS}" = ""]?dial)
;PIXAR MOD dialecticphp.agi
exten => s,n,AGI(dialecticphp.agi)
How should I modify the macro so it only get's trigger when a specific extension is called?
I tried this but it does not work:
Code:
exten => 7946,n,AGI(dialecticphp.agi)
Thanks.