Hi all, I'm trying to write a set of contexts that will be executed for different destination numbers. But for each of these numbers, different audio files are played as specified in a postgres db depending on the destination number. Is this possible? How can I tell which number has been called at the time when the call is answered? Steven -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20030704/b8a6b042/attachment.htm
On Fri, 2003-07-04 at 02:41, Steven Kawuma wrote:> Hi all, > > I'm trying to write a set of contexts that will be executed for > different destination numbers. But for each of these numbers, > different audio files are played as specified in a postgres db > depending on the destination number. Is this possible? How can I tell > which number has been called at the time when the call is answered?This depends a little on your technology delivering the calls to you. If it is PRI, then you probably will be sent the entire phone number that was called, and you just set up extensions for each inbound number, or pattern matches. If it is channelized T1, then it is probably E&M wink and you will get either 3 or 4 digits of dtmf. In this case your extensions will match the 3 or 4 digits sent from the telco. If VoIP, it is similar to PRI in that you set up your matches to be the entire dialed number. -- Steven Critchfield <critch@basesys.com>
Lets say that you're going to receive 20 diffrent DIDs 1000 - 1019 [incoming] exten => _X.,1,SetVar,SAVE_DID=${EXTEN} exten => _X.,2,Goto,${EXTEN}|s|1 [1000] exten => s,1,blabla .... [1019] exten => s,1,...... Martin On Fri, 4 Jul 2003, Steven Kawuma wrote:> Hi all, > > I'm trying to write a set of contexts that will be executed for different destination numbers. But for each of these numbers, different audio files are played as specified in a postgres db depending on the destination number. Is this possible? How can I tell which number has been called at the time when the call is answered? > > Steven >