Why not set your clients up as "extensions" so your employee's call them
with an extension code instead of dialing a number?  For example

Exten => 1001,1,Dial(DAHDI/g1/18005551212)

Exten => 1002,1,Dial(DAHDI/g1/18005551213)

Exten => 1003,1,Dial(DAHDI/g1/18005551214)

 

Or more efficiently

Exten => _1xxx,1,Set(custid=${DB(${EXTEN})})

Exten => _1xxx,n,Dial(DAHDI/g1/${custid})

 

Solution 2 could be modified to use MYSQL, I just use ASTDB bc I don't care
for MYSQL.

In users.conf, set up the client companies as users like

[1001]

Username=abc widgets

[1002]

Username=at&t

[1003]

Username=IBM

 

Just a thought

Danny Nicholas

--

 

  _____  

From: [email protected]
[mailto:[email protected]] On Behalf Of Douglas Pasqua
Sent: Wednesday, February 24, 2010 10:36 AM
To: [email protected]
Subject: [asterisk-users] identify the costumer

 

Hi People,

I work in a company that are using asterisk as pbx.

I need a way to identify what client my employees are calling. For example:

- For each call that an employee of my company make to a customer, must
identify the client name in the CDR table.
- Is there a way of my employee enter a code to identify the client and then
enter a phone number to make the call? I would like to identify the
customer's name in the table 
CDR.

Thanks,

Douglas







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

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

Reply via email to