extension to trunk mapping

Joined
Jul 25, 2008
Messages
2
Points
0
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?
 
Joined
Jul 25, 2008
Messages
2
Points
0
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,990
Messages
131,103
Members
17,716
Latest member
Orbit114
Top