<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Oct 14, 2020 at 5:09 AM Rui Mota <<a href="mailto:ruimota@gmail.com">ruimota@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><div dir="ltr"><div>Hi.</div><div>I'd like to get the call-id from a call (the 
<b>C-0000061c</b> part) to set in on a field on cdr's, like</div><div><br></div><div></div><div>[Oct  8 16:09:37] VERBOSE[25701][<b>C-0000061c</b>] app_queue.c: SIP/12234-00006b18 is busy<br>[Oct  8 16:09:37] VERBOSE[25701][<b>C-0000061c</b>] app_queue.c: Nobody picked up in 0 ms<br>[Oct  8 16:09:38] VERBOSE[25843][<b>C-00000622</b>] netsock2.c: Using SIP RTP CoS mark 5</div><div><br></div><div>...</div><div>same => n,Set(CDR(custom_callid)=<b>${CALL-ID}</b>)</div><div><br></div><div>Is there any variable/way to get that value to use it in the dialplan?</div><div><br></div><div>Thank you in advance<br></div></div></div></div></blockquote><div><br></div><div>The function CHANNEL(callid) returns exactly what you want.</div><div>See <a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+16+Function_CHANNEL">https://wiki.asterisk.org/wiki/display/AST/Asterisk+16+Function_CHANNEL</a></div><div><br></div><div>Richard</div><br></div></div>