extension to trunk mapping

bellew

Joined
Jul 25, 2008
Messages
2
Likes
0
Points
0
#1
My extensions are the three last numbers from the trunk.
I have some trunks like these (external numbers from my provider): 352111, 352112, 352113.
The extensions (internal numbers): 111, 112, 113.
I want to map extension to trunk - when extension 111 dial something to go though trunk 352111.
How can I do this?
 

johnryan

Joined
Feb 3, 2008
Messages
15
Likes
0
Points
0
#2
You might look here...

It's pretty easy to setup.
 

bellew

Joined
Jul 25, 2008
Messages
2
Likes
0
Points
0
#3
The described method use prefixes which is ok, but I want to do something like next example but without messing with elastix's macros.

exten => _X.,1,NoOp()
exten => _X.,n,Set(LAST="${CALLERID(num)}")
exten => _X.,n,NoOp(${LAST})
exten => _X.,n,Set(CALLERID(all)=352${LAST}<352${LAST}>)
exten => _X.,n,Dial(SIP/${EXTEN}@352${LAST})
exten => _X.,n,Hangup()

In the above example if caller is 111 it will go through 352111 SIP trunk without using any prefix in extension.
 

Members online

No members online now.

Latest posts

Forum statistics

Threads
30,902
Messages
130,886
Members
17,563
Latest member
dineshr
Top