Hi im using 2 analogs channel for incoming and outgoing calls.
No problems with incoming calls.
When 1st analogs busy, I can’t dial out using 2nd analogs.
I’m getting error
[Aug 30 09:46:15] WARNING[8429] ast_expr2.fl: If you have questions, please refer to wiki.asterisk.org/wiki/display/ … +Variables
[Aug 30 09:46:15] WARNING[8429] app_dial.c: Unable to create channel of type ‘dahdi’ (cause 17 - User busy)
[Aug 30 09:48:03] WARNING[8432] pbx.c: Error in extension logic (missing ‘]’)
[Aug 30 09:48:03] WARNING[8432] ast_expr2.fl: ast_yyerror(): syntax error: syntax error, unexpected $end; Input:
"{DIALSTATUS}" = “BUSY”?free:bus
This is my automatic script.
exten => _X.,1,GotoIf($["{DIALSTATUS}" = “BUSY”?free:busy)
exten => _X.,n(free),Dial(dahdi/1/${EXTEN})
exten => _X.,n,Hangup()
exten => _X.,n(busy),Dial(dahdi/2/${EXTEN})
exten => _X.,n,Hangup()
But if I use this scripts just for 2nd analogs its work
exten => _9X.,1,Dial(dahdi/2/${EXTEN:1})
exten => _9X.,n,Hangup()
Can someone explain to me what im doing wrong on my automatic scripts?