I've been self-learning OAI programming from the NEC manuals. I've accomplished what I wanted so far, but now it seems like I'm running into a tough one.
There is a command, ACPNCL, which allows one to define an outgoing caller ID based on what station is making the call and what route is used. I want to control this from OAI. We have many call-back numbers or DID numbers from our telco with different area codes. What I want to accomplish is if a caller calls a number in a certain area, then the caller ID sent out is the number we own with that area code. But next time, when the same caller makes a call and now to a different area, I want to send out a different caller ID we own from that area.
I can use the MakeCall function of OAI to make any call I want in the system, but I couldn't find any command/advice/trick to modify the caller ID from a program for outgoing calls.
Any bright ideas?
There is a command, ACPNCL, which allows one to define an outgoing caller ID based on what station is making the call and what route is used. I want to control this from OAI. We have many call-back numbers or DID numbers from our telco with different area codes. What I want to accomplish is if a caller calls a number in a certain area, then the caller ID sent out is the number we own with that area code. But next time, when the same caller makes a call and now to a different area, I want to send out a different caller ID we own from that area.
I can use the MakeCall function of OAI to make any call I want in the system, but I couldn't find any command/advice/trick to modify the caller ID from a program for outgoing calls.
Any bright ideas?