Get Dialed Number

Status
Not open for further replies.

australian

Joined
Aug 20, 2008
Messages
11
Reaction score
0
Hi Guys,

I need to get the number the caller dialed for an app I'm working on. is that possible?
Not to be confused with the caller ID, but the number the caller dialed.

Thanks
Droyt
 
You can easily get the extension number where the VAD callflow is registered. That is stored into the "session.dnis" variable. But the external number dialed by the user is a bit more difficult. You need to search into the CallHistory3 table (in the 3CX database) and correlate your current call with the right record using date and time...

Regards,
 
Hi,

Was wondering if anyone knows about a solution that will enable us to get the phone numbers that our caller are dialing.
We have many numbers and can't tell right now, which are being used for non-spam calls, and which aren't, etc...

Please advise,
 
From a VAD application you can do it reading from the CallHistory3 table (from the 3CX database). You would have to use a Database Access component to query that table and match the current call by ANI, date and time. Then you will have the number dialed by external users to reach your PBX.

Note that this is only possible if you have digital or VoIP lines. With analog lines, you don't receive the destination number dialed by the remote user, in that case you just receive the call.

Hope the information helps.

Regards,
 
you can do this easily from VAD application........

you just access your database component from the query and match your fields by call ANI......... no worry about it...... :)
 
It would be great to get the 3CX CallID or HistoryID as a session variable. This would make my work much easier.
 
Agreed. Not having access to that ID value has made some things very challenging. Although I have plenty of workarounds for the limits of the VAD at this point, they're just not all ideal.
 
SWSDEV said:
Agreed. Not having access to that ID value has made some things very challenging. Although I have plenty of workarounds for the limits of the VAD at this point, they're just not all ideal.

Ich agree fully i have the same problems here.
 
One Point: The callhistory3 record are created when the call is done. You have to use the api to get the current active calls and then you can use the dialed number in your workflow. I've made a service using sockets.
 
You can easily get the extension number where the VAD callflow is registered.
 
Status
Not open for further replies.

Forum statistics

Threads
112,320
Messages
591,878
Members
165,466
Latest member
EMMEPICASA