On Wed, Oct 14, 2020 at 5:09 AM Rui Mota <ruimota at gmail.com> wrote:
> 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
>
The function CHANNEL(callid) returns exactly what you want.
See https://wiki.asterisk.org/wiki/display/AST/Asterisk+16+Function_CHANNEL
Richard
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.digium.com/pipermail/asterisk-users/attachments/20201014/9d179906/attachment.html>