Call-id On Cdr’s
Hi. I’d like to get the call-id from a call (the *C-0000061c* part) to set in on a field on cdr’s, like
[Oct 8 16:09:37] VERBOSE[25701][*C-0000061c*] app_queue.c:
SIP/12234-00006b18 is busy
[Oct 8 16:09:37] VERBOSE[25701][*C-0000061c*] app_queue.c: Nobody picked up in 0 ms
[Oct 8 16:09:38] VERBOSE[25843][*C-00000622*] netsock2.c: Using SIP RTP
CoS mark 5
… same => n,Set(CDR(custom_callid)=*${CALL-ID}*)
Is there any variable/way to get that value to use it in the dialplan?
Thank you in advance
One thought on - Call-id On Cdr’s
The function CHANNEL(callid) returns exactly what you want. See https://wiki.asterisk.org/wiki/display/AST/Asterisk+16+Function_CHANNEL
Richard