[Asterisk-Users] Conf files

David J Carter david.carter at codepipe.com
Wed Jan 21 16:09:57 MST 2004


Hi All,

In my extensions.conf I have : -

exten => _6XXX,1,Dial(IAX2/guest@${RMT3}/${EXTEN})
exten => _6XXX,2,Playback(remote_unavail)
exten => _6XXX,3,Hangup
;
exten => _7XXX,1,Dial(IAX2/guest@${RMT2}/${EXTEN})
exten => _7XXX,2,Playback(remote_unavail)
exten => _7XXX,3,Hangup
;
exten => _81XX,1,Playback(transfer,skip)
exten => _81XX,2,Dial(IAX2/${EXTEN}@${EXTEN},50,t)
exten => _81XX,3,voicemail2(u${EXTEN})
exten => _81XX,5,Goto(s|6)
exten => _81XX,103,voicemail2(b${EXTEN})
exten => _81XX,104,Goto(5)
;
exten => _80XX,1,Playback(transfer,skip)
exten => _80XX,2,Dial(SIP/${EXTEN},20,t)
exten => _80XX,3,voicemail2(u${EXTEN})
exten => _80XX,5,Goto(s,6)
exten => _80XX,103,voicemail2(b${EXTEN})
exten => _80XX,104,Goto(5)


Which is great for setting up banks of extensions.

Question> Is there any way to set a range of SIP, IAX and VOICEMAIL
extensions up in the coresponding .conf files instead of: -

SIP.CONF

[8000] ; SIP Phone
type=friend
insecure=yes
host=dynamic
reinvite=no
canreinvite=no
nat=1
mailbox=8002
dtmfmode=inband
disallow=all
allow=ulaw
allow=alaw
allow=gsm
allow=ilbc
allow=speex
allow=lpc10
;
[8001] ; SIP Phone
type=friend
insecure=yes
host=dynamic
reinvite=no
canreinvite=no
nat=1
mailbox=8003
dtmfmode=inband
disallow=all
allow=ulaw
allow=alaw
allow=gsm
allow=ilbc
allow=speex
allow=lpc10


IAX.CONF

[8100]
type=friend
host=dynamic
secret=xxxx
disallow=all
allow=gsm
context=default
;
[8101]
type=friend
host=dynamic
secret=xxxx
disallow=all
allow=gsm
context=default
;
[8102]
type=friend
host=dynamic
secret=xxxx
disallow=all
allow=gsm
context=default




More information about the asterisk-users mailing list