On 21 Jun, 2010, at 12:45 AM, Richard Zulu wrote:
I want to enable Mark, who sits in the same office as Peter, to
be able to reach him on 100 and also 12100 given the fact he is
calling from the same office. For now Mark can only reach Peter,
(same office) on the three digit extension. All this is on the same
asterisk server...\
ok.. see below.
For example, in real life, you should be able to reach someone when
using the country code + their number even when both callers are in
the same country, it doesn't only work when you are calling from a
different country.
Not exactly the same thing, as you have the idea of scope/context. Not
everyone has their number with one gigantic worldwide telco. If each
office had their own asterisk (just like each telco has its allocated
numbers) then you'd have a closer parallel.
How do i enable that?
Lots of ways, but here's one (untested)
Firstly, your sip accounts have to have the full 5 digits to ease you
telling between 12100 and 13100.
Then a sample (untested) dial plan in extensions.conf would look like
the following:
[inter-office]
; for 5 digit dials jump to office-xx and dial the remaining 3 digits
exten => _XXXXX,1,Goto(office-${EXTEN:0:2}, ${EXTEN:2}, 1)
; if you don't have many offices, then the following is a bit safer
and easier to understand
;exten => _12XXX,1,Goto(office-12, ${EXTEN:2}, 1)
;exten => _13XXX,1,Goto(office-13, ${EXTEN:2}, 1)
[office-12]
exten => _XXX,1,Dial(SIP/12${EXTEN})
exten => _XXX,2,Hangup()
include => inter-office
[office-13]
exten => _XXX,1,Dial(SIP/13${EXTEN})
exten => _XXX,2,Hangup()
include => inter-office
--
patrick
_______________________________________________
LUG mailing list
[email protected]
http://kym.net/mailman/listinfo/lug
LUG is generously hosted by INFOCOM http://www.infocom.co.ug/
All Archives can be found at http://www.mail-archive.com/[email protected]/
The above comments and data are owned by whoever posted them (including
attachments if any). The List's Host is not responsible for them in any way.
---------------------------------------