Routing incoming calls with no DNID support


#1

I’ve searched everywhere and can’t find even a close answer to my problem. I have 2 digium TDM04B 4port FXO cards and receive no DID information from my POTS provider. I need to be able to route incoming calls to certian extension groups and I’m clueless on how to acomplish this. Can I manually set the DNID for each Zap Channel or is there a way to route calls based on which FXO port the call originated from?


#2

the simplest way is to define a separate context for each ZAP channel, then set a variable in each context that you can use in later dialplan processing, then dumping the channel into a generic incoming context.


#3

Not to be difficult, but I’m still learning the syntax for asterisk scripting. Could you give me an example of how you would solve it? I understand what your saying to do, but don’t know how to write the code to make it happen.


#4

are you using A@H ? or AMP ?


#5

A@H with AMP


#6

i just posted this link on the A@H forums, someone asking the same question !! sourceforge.net/forum/message.php?msg_id=3380844


#7

Awesome post :smiley:

Thanks so much… can’t believe I couldn’t find that one after searching all day. Your help is greatly appreciated baconbuttie.