Automated attendent for multiple inbound numbers

Hi,

I’m trying to create an automated attendant for multiple inbound DID’s.

If I do it like explained in this link
https://www.voip-info.org/wiki/view/Asterisk+tips+ivr+menu

I’m not sure how to separate it for different numbers

Is there any way I can create separate contexts or use gotoif()

You can always create separate contexts.

[inbound-call-routing]

exten => 5551234,1,Goto(company1-attendant,s,1)
exten => 5554567,1,Goto(company2-attendant,s,1)

[company1-attendant]
exten => s,1,Background(company1-menu)

exten => 1,1,NoOP(Company 1 Option 1)

exten => 2,1,NoOP(Company 1 Option 2)

exten => 3,1,NoOP(Company 1 Option 3)

[company2-attendant]
exten => s,1,Background(company2-menu)

exten => 1,1,NoOP(Company 2 Option 1)

exten => 2,1,NoOP(Company 2 Option 2)

exten => 3,1,NoOP(Company 2 Option 3)
1 Like

That’s exactly what I was looking for.

One more thing, how can I forward my call to other number, I mean if 1 is pressed, a new call should be dialed and connected to that call.

Just define an extension that dials that outside number.

exten => 1,1,Dial(PJSIP/5554695@myprovider)
same => n,Playtones(congestion)
same => n,Congestion(16)

1 Like