Hello everybody
I have developped a web application that allows people to make call from web to a VoiP System based on Asterisk with only a click ( it is like a click to call )
But all the calls that come from the app are issued from the same SIP Account. So I created 3 fields to enter some informations ( Name, phone number , Email) these informations are put in Asterisk database before making the call .
What i want is that the name and the phone number may be shown instead of the SIP account from which the call is initied.
How can I use the AMI to allow this function .
Regards
You can handle that via Dialplan, using AMI try with SETVAR
Correct me if I am wrong, but it seems that you have a web based SIP client making calls to Asterisk. If such is a case then you can set SIP headers from your web application(Check APIs provided by web application to add SIP header in INVITE) for each call and check those values in Asterisk dialplan with the help of SIP_HEADER function.
–Satish Barot
Thanks for the answers
Tell me what about if i want that before making the call and when i enter these informations , these informations will be sent to a CRM System such as AsterCC
Here is the scenario:
I enter data in these 3 fields then i validate (send these data) then i make the call
I want that once i make the call these information show up in Agent interface .
It is kinda the same thing but how should I take advantage of AMI to do it .
Best regards
too early for a bump.
But you can do many things like:
-
Send the call to the dialplan after setting some variables based on customer data, in the dialplan you can handle the CID(name) & CID(num) based on those vars.
-
You can use ARA in order to register new sip peers based on customer data.
-
You can use PHP to override the CID if you are using a DB backend to store your sip peers.
etc etc.
–>Tell me what about if i want that before making the call and when i enter these informations , these informations will be sent to a CRM System such as AsterCC.
This doesn’t even require Asterisk (or AMI for that matter). You should probably develop a web service or establish a Socket connection that communicates information between your web application and CRM.
–>I want that once i make the call these information show up in Agent interface .
Asterisk Events. Monitor events in Agent interface of your CRM applications.
–Satish Barot