[Asterisk-Users] adding a thrid asterisk server
MDM
mdm at bigmtnskier.com
Thu Apr 21 12:01:19 MST 2005
To All
I am a new to Asterisk and dialplans have me stumped
I just inherited 2 Asterisk server conected as IAX peers.
Now from what i can tell when Asterisk Server (ask-chic) needs to make a
call to an extension
which resides on the other server (ask-MAIN) it goes over a IAX channel.
Now i am trying to add that third asterisk server to mix (ask-SD) and i
figured i would do it in baby steps.
The first thing i did was configure two local SIP client so they could
call each other and leave voicemail.
Then i tried to add (ask-SD) to (ask-Main) as a IAX peer. Just like
(ask-chic).
To test i tried dialing an (ask-SD) ext from a phone off the (ask-MAIN)
server.
The call did not go through. However i watched it from the CLI> and
captured the following output. What could be wrong. i am so stumped.
'E61AE777CDD048168CA8336C46B5D897 at bigmtnskier.com' in 15000 ms
-- Accepting call from '' to '7101' on channel 0/23, span 2
-- Executing Dial("Zap/47-1", "IAX2/ask-SD/7101") in new stack
-- Called telx-NY17S/7101
Apr 21 13:52:12 WARNING[147465]: chan_iax2.c:5495 socket_read: Call
rejected by ask-SD: No such context/extension
-- IAX2/telx-NY17S/2 is circuit-busy
-- Hungup 'IAX2/telx-NY17S/2'
== Everyone is busy/congested at this time
-- Executing Congestion("Zap/47-1", "") in new stac
here is server (ask-sd) iax.conf and extension.conf files
iax.conf:
[root at ask-SD asterisk]# cat iax.conf
[general]
allow=all
jitterbuffer=no
tos=lowdelay
[guest]
type=user
context=guest
callerid="Gust User"
; BMS-ask-Main-asterisk - Incoming -
;
[ask-mail]
type=user
secret=ask-mail
context=from-ask-main
disallow=all
allow=ulaw
; bmc-asl-main - Outgoing
;
[telx-nyc]
type=peer
username=ask-sd ; our username
secret=ask-sd ; our password
host=192.168.11.30 ; host to connect to
;qualify=yes
;trunk=yes ; use trunking
[root at ask-SD asterisk]#
Extension.conf
[root at ask-SD asterisk]# cat extensions.conf
[general]
static=yes
writeprotect=yes
[bogon-calls]
exten => _.,1,Congestion
[from-sip]
exten => 7101,1,Dial(SIP/7101,20)
exten => 7101,2,Voicemail(u7101)
exten => 7101,102,Voicemail(b7101)
exten => 7101,103,Hangup
exten => 7102,1,Dial(SIP/7102,20)
exten => 7102,2,Voicemail(u7102)
exten => 7102,102,Voicemail(b7102)
exten => 7102,103,Hangup
exten => 7199,1,VoicemailMain(${CALLERIDNUM})
[macro-telx-nyc]
exten => s,1,Noop()
exten => s,2,Dial(IAX2/ask-mail/${ARG1})
[outgoing]
;ingnorepat => 9
exten => _9NXXNXXXXXX,1,Noop()
exten => _9NXXNXXXXXX,2,Macro(ask-main,${EXTEN})
exten => _9NXXNXXXXXX,3,Playback(invalid)
exten => _9NXXNXXXXXX.4,Hangup
[root at ask-SD asterisk]#
More information about the asterisk-users
mailing list