Hi,
I had the same problem using Realtime, seams not to be possible to use both...
Whatever, I use another way than gotoIf to achieve this function:
[to_ext]
switch=>Realtime/extd
_X.,1, set(numdial=${EXTEN})
_X.,2,Goto(${CALLERID(num)},1)
_X.,3,Goto(to_ext_def,${EXTEN},1)
i,1,Goto(to_ext_def,${EXTEN},1)
in sql db, extd:
300,1,Dial([EMAIL PROTECTED])
300,2,Goto(to_ext_def,${EXTEN},1)
in to_ext_def context, your default route for the calls.
Then you simply add lines in your extension table, directing calls to
different routes for different callerID.
Hope that this help...
Alban Elziere
Le Mardi 13 Juin 2006 22:22, Michael E. Kromer a écrit :
> Hello all,
>
> Last night I have successfully setup Asterisk Realtime with mysql. but I
> have one problem regarding the "Ex-Girlfrind"-Functionality.
>
> The example: I have a phone running on a specific extension (300) and I
> want that one to call out via ZAP, but it simply gets IGNORED.
>
> I have tried _X./300 => Dial(zap/g1/${EXTEN})
>
> but what happens now is that (because of includes defined) all other
> calls (_X.) are using this extension, even if somebody completely
> different (for example 55) wants to call outside.
>
> ZAP is definitly not the problem.
>
> Help in this manner would be great. Thanks in advance.
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --
Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users