How to retrieve the caller ID before an outbound call?

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

How to retrieve the caller ID before an outbound call?

Postby jessiekidfernando » Wed Nov 02, 2022 11:51 am

Hello Everyone,

Does anyone know how to retrieve the caller ID (digit being published to the carrier) before an actual outbound call?
OS: Linux version 4.4.155-68-default (geeko@buildhost) (gcc version 4.8.5 (SUSE Linux) )
VERSION: 2.14-717a
BUILD: 190724-1603
Asterisk: 13.21.1-vici
Dahdi: 2.11.1
jessiekidfernando
 
Posts: 152
Joined: Fri Feb 08, 2019 5:49 pm

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

Postby mflorell » Wed Nov 02, 2022 1:11 pm

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?
mflorell
Site Admin
 
Posts: 18335
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

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

Postby jessiekidfernando » Wed Nov 09, 2022 10:12 am

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.
OS: Linux version 4.4.155-68-default (geeko@buildhost) (gcc version 4.8.5 (SUSE Linux) )
VERSION: 2.14-717a
BUILD: 190724-1603
Asterisk: 13.21.1-vici
Dahdi: 2.11.1
jessiekidfernando
 
Posts: 152
Joined: Fri Feb 08, 2019 5:49 pm


Return to Support

Who is online

Users browsing this forum: No registered users and 67 guests