Hi Adriano, I agree with Time Bandit - AGI is what you are looking for. I recently had a similar scenario where I had the check the cid of every customer calling to a support qeue and check the payment status against a windows CRM app. if the customer has an unsettled debt the call is redirected to sales rep. The call flow in your case should be something like this: - Answer call. - depending on the API available to the legacy VB app (or AS/400 directly) you can either write a local script on the * server to perform the query or host a FastAGI script on the VB app server (or on any other server that can perform the DB query). - The script input is the cid and the "output" should be a channel variable assigned to operator exten. - Dial the right operator based on the channel variable assigned by the script (you can also dial the operator within the AGI - but it better to keep AGI as simple as possible and run as little time as possible.
one last tip - keep in mind that cid is not always available (presentation restricted) or customer may be calling from different location (cellphone/office) which is not on your DB - so you might want to present an IVR menu that allows the customer to enter the cid for the requested service. Joss On 4/27/07, adriano ghezzi <[EMAIL PROTECTED]> wrote:
well more indeep the actual process is myparser a php script connected "telnet" to aah manager get and parse events it grab cid from manager event (incoming call) it passes cid to a legacy visual basic app that query a db on ibm as/400 the query return info about customer's status and opened tickets now it should instruct asterisk to send the call to the right operator, because at the moment I'm not able to do it i do: the call get dispatched "Normal way" i wait the call ends, the php parser inform another (master vb app) that open a pop-up on the pc of the operator that processed the call and update the customer'ts ticket what i would like is to dispatch the call to a specific operator eg the "preferred" customer's operator. thanks to Brad. ciao! 2007/4/26, adriano ghezzi <[EMAIL PROTECTED]>: > Hy all > > need to preprocess > 1) incoming call get caller id lookup some info in my db, > 2) based on the result dispatch the call to the right operator > > step 1 is ok I developped a small .php script that connect manager and > parse events, now I have to tell AAH do dispatch call to the right > operator > > questions > 1) is this the right practice ? > 2) where to find a complete manager api reference, (to buy too) > > note that > there is a legacy application that query the db actually php script > send the request to this app and wait for response > > I'm a programmer at very first installation of AAH , just testing capabilities > > thanks in advance for any help and suggestion. > _______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
_______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users