[asterisk-users] Who am xxx talking to.agi

Danny Nicholas danny at debsinc.com
Tue Sep 29 08:31:05 CDT 2009


IMO the easiest way to accomplish this would be to do an AMI call to "core
show channels verbose" and pick out the line containing the extension.  You
could also pick out the customer number so a record could be made if another
agent was talking to the customer.

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Leif Neland
Sent: Tuesday, September 29, 2009 4:37 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: [asterisk-users] Who am xxx talking to.agi

In relation to our CRM-system I'd like to send a query to asterisk who 
is extension xxx talking to.

When the operator enters the page with customer data, the crm should 
send a query to asterisk, to get the cli of the call the operator is having.
If the number is matching the customers number in crm, a record will be 
made, if it is not, a popup "Are you talking with this customer now?", 
if confirmed, the number will be recorded in the crm.

Can asterisk answer this question?

I've tried using sip show channels and sip show peer, but the cli is not 
in an obvious place.

Is it better done by parsing logfile or storing numbers in the internal 
database from the dialplan?

Leif


_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2009 - October 13 - 15 Phoenix, Arizona
Register Now: http://www.astricon.net

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




More information about the asterisk-users mailing list