Michael E. Kromer
2006-Jun-13  13:22 UTC
[Asterisk-Users] [REPOST] Asterisk Realtime and "Ex-Girlfriend"
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.
-- 
Mit freundlichen Gr??en,
Best regards,
Michael E. Kromer
IT Specialist
Linux Professional Institute Certified (LPIC)
+--------------------------------------+
|   CC  Computer  Consultants  GmbH    |
|     ENTERPRISE.  IT.  BUSINESS.      |
|======================================|
| AMD Solution Provider                |
| Sun Microsystems Partner Associate   |
| Citrix Access Alliance Partner       |
+--------------------------------------+
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3424 bytes
Desc: S/MIME Cryptographic Signature
Url :
http://lists.digium.com/pipermail/asterisk-users/attachments/20060613/e98c6a86/smime.bin
Alban
2006-Jun-15  01:37 UTC
[Asterisk-Users] [REPOST] Asterisk Realtime and "Ex-Girlfriend"
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(${numdial}@route1)
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.