Automated attendent for multiple inbound numbers


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

If I do it like explained in this link

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.


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

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)

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