Re: [asterisk-users] Fwd: call-id on cdr's

2020-10-14 Thread Richard Mudgett
On Wed, Oct 14, 2020 at 5:09 AM Rui Mota  wrote:

> Hi.
> I'd like to get the call-id from a call (the *C-061c* part) to set in
> on a field on cdr's, like
>
> [Oct  8 16:09:37] VERBOSE[25701][*C-061c*] app_queue.c:
> SIP/12234-6b18 is busy
> [Oct  8 16:09:37] VERBOSE[25701][*C-061c*] app_queue.c: Nobody picked
> up in 0 ms
> [Oct  8 16:09:38] VERBOSE[25843][*C-0622*] 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
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

[asterisk-users] Fwd: call-id on cdr's

2020-10-14 Thread Rui Mota
Hi.
I'd like to get the call-id from a call (the *C-061c* part) to set in
on a field on cdr's, like

[Oct  8 16:09:37] VERBOSE[25701][*C-061c*] app_queue.c:
SIP/12234-6b18 is busy
[Oct  8 16:09:37] VERBOSE[25701][*C-061c*] app_queue.c: Nobody picked
up in 0 ms
[Oct  8 16:09:38] VERBOSE[25843][*C-0622*] 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
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users