cvschleich
Member
- Joined
- Dec 17, 2007
- Messages
- 55
- Reaction score
- 0
[SOLVED] Where in the dialplan can I get extension and callerid?
I need to trigger an external event when an extension answers an incoming line from a zap channel. Can anyone help me kn where in the dialplan to insert some instructions *AFTER* the extension picks up the call?
Can I safely hijack the macro-auto-blkvm macro?
Thanks!
EDIT: The external procedure needs to know the extension and the cid data. Thx!
I need to trigger an external event when an extension answers an incoming line from a zap channel. Can anyone help me kn where in the dialplan to insert some instructions *AFTER* the extension picks up the call?
Code:
[Apr 18 12:23:13] VERBOSE[9108] logger.c: -- SIP/102-09308b88 is ringing
[Apr 18 12:23:15] VERBOSE[9108] logger.c: -- Zap/7-1 is ringing
[Apr 18 12:23:15] VERBOSE[9108] logger.c: -- SIP/102-09308b88 answered Zap/6-1
[Apr 18 12:23:15] VERBOSE[9108] logger.c: -- Hungup 'Zap/7-1'
[Apr 18 12:23:15] VERBOSE[9108] logger.c: -- Executing [s@macro-auto-blkvm:1] Set("SIP/102-09308b88", "__MACRO_RESULT=") in new stack
[Apr 18 12:23:15] DEBUG[9108] app_macro.c: Executed application: Set
[Apr 18 12:23:15] VERBOSE[9108] logger.c: -- Executing [s@macro-auto-blkvm:2] Set("SIP/102-09308b88", "__CWIGNORE=") in new stack
[Apr 18 12:23:15] DEBUG[9108] app_macro.c: Executed application: Set
[Apr 18 12:23:15] VERBOSE[9108] logger.c: -- Executing [s@macro-auto-blkvm:3] DBdel("SIP/102-09308b88", "BLKVM/600/Zap/6-1") in new stack
[Apr 18 12:23:15] VERBOSE[9108] logger.c: -- DBdel: family=BLKVM, key=600/Zap/6-1
[Apr 18 12:23:15] DEBUG[9108] app_macro.c: Executed application: DBDel
Thanks!
EDIT: The external procedure needs to know the extension and the cid data. Thx!