Page 1 of 1

How to retrieve the caller ID before an outbound call?

PostPosted: Wed Nov 02, 2022 11:51 am
by jessiekidfernando
Hello Everyone,

Does anyone know how to retrieve the caller ID (digit being published to the carrier) before an actual outbound call?

Re: How to retrieve the caller ID before an outbound call?

PostPosted: Wed Nov 02, 2022 1:11 pm
by mflorell
Yes, it's the "${CALLERID(num)" channel variable, you can access it right before the "Dial" command in your dialplan entries. What exactly are you looking to do with it?

Re: How to retrieve the caller ID before an outbound call?

PostPosted: Wed Nov 09, 2022 10:12 am
by jessiekidfernando
Hello Matt,

We just want to use it as a reference for our API. Is there a way we can retrieve it on the DB before the asterisk invokes it?

Like we want to get the CID on the DB in a few seconds before the system actually calls a lead.