[Asterisk-Users] IAX channel

MDM mdm at bigmtnskier.com
Fri Apr 22 11:30:43 MST 2005


I am trying to send calls from (telx-NY17S) to (telx-nyc) via an IAX2 
channel.  However the call is being rejected on the (telx-nyc) server.
See error below copied from telx-nyc CLI>

Apr 22 13:56:57 NOTICE[147465]: chan_iax2.c:5390 socket_read: 		Rejected 
connect attempt from 192.168.0.251

I have icluded the following conf files
1. extensions.conf (telx-nyc)
2. iax.conf (telx-nyc)
3. extensions.conf (telx-NY17S)
4. iax.conf (telx-NY17S)


1. extensions.conf (telx-nyc)
[general]
static=yes
writeprotect=yes

[globals]
EMERGENCY=0
LINEOUT=Zap/1                   ; Line to use in emergency

#include "extensions.conf.macro"
#include "extensions.conf.telx"

[from-telx-atl]
include => internal
include => ext-external-from-atl

[from-telx-NY17S]
include => internal
include => ext-internal

[from-jnctn]
include => aa-main
exten => _NXXNXXXXXX,1,Goto(aa-main,s,1)

[from-swifttel]
exten => _NXXNXXXXXX,1,NoOp("Context is from-swifttel")
exten => _NXXNXXXXXX,2,Goto(aa-main,s,1)

[default]
include => aa-main
exten => _NXXNXXXXXX,1,NoOp("Context is default")
exten => _NXXNXXXXXX,2,Goto(aa-main,s,1)

[internal]
include => ext-local
include => ext-internal

[ext-local]
exten => 7000,1,Goto(aa-main,s,1)

[ext-internal]
exten => _2XXX,1,Dial(${TELX-MICS2}/${EXTEN:${TELX-MICS2-MSD}})
exten => _2XXX,2,Congestion
exten => _3XXX,1,Dial(${TELX-MICS1}/${EXTEN:${TELX-MICS1-MSD}})
exten => _3XXX,2,Congestion

exten => _71XX,1,Dial(IAX2/telx-NY17S/${EXTEN})
exten => _71XX,2,Congestion

exten => _7XXX,1,Dial(IAX2/telx-atl/${EXTEN})
exten => _7XXX,2,Congestion
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

2. iax.conf (telx-nyc)
[general]
allow=all
jitterbuffer=no
tos=lowdelay
bindaddr=0.0.0.0

; Registration to Junction Networks
;register => telx:E3fiw84j at 207.251.118.1

; Guest sections for unauthenticated connection attempts.
[guest]
type=user
context=default
callerid="Guest IAX User"

; from Junction Networks
[jnctn]
type=user
context=from-jnctn
auth=rsa
inkeys=jnctn

; telx-atl-asterisk - Incoming
[telx-atl]              ; name remote end will use to connect
type=user               ; they will send calls to us
secret=telx-atl         ; their password
context=from-telx-atl   ; context for calling in
disallow=all
allow=ulaw

; telx-atl-asterisk - Outgoing
[telx-atl]
type=peer
username=telx-nyc       ; our username
secret=telx-nyc         ; our password
host=192.168.22.7       ; host to connect to
;qualify=yes
;trunk=yes              ; use trunking

; telx-NY17S - Incoming
[telx-NY17S]
type=peer
secret=telx-NY17S
context=from-telx-NY17S
disallow=all
allow=ulaw

; telx-NY17S - Outgoing
[telx-NY17S]
type=peer
username=telx-nyc       ; our username
secret=telx-nyc         ; our password
host=192.168.0.251       ; host to connect to
;qualify=yes
;trunk=yes              ; use trunking



[stealth]
type=friend
host=dynamic
auth=md5
secret=telxvoip
context=from-jnctn
permit=206.252.192.70/255.255.255.255

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3. Extensions.conf  (telx-NY17S)
[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

;Extentions at telx-nyc
exten => _7XXX,1,Dial(IAX2/telx-nyc/${EXTEN})
exten => _7XXX,2,Congestion

exten => _2XXX,1,Dial(IAX2/telx-nyc/${EXTEN})
exten => _2XXX,2,Congestion
exten => _3XXX,1,Dial(IAX2/telx-nyc/${EXTEN})
exten => _3XXX,2,Congestion

exten => 7199,1,VoicemailMain(${CALLERIDNUM})

[from-telx-nyc]
exten => _7XXX,1,Dial(SIP/7101,20)
exten => _7XXX,2,Voicemail(u7101)
exten => _7XXX,102,Voicemail(b7101)
exten => _7XXX,103,Hangup

[macro-telx-nyc]
exten => s,1,Noop()
exten => s,2,Dial(IAX2/telx-nyc/${ARG1})

[outgoing]
;ingnorepat => 9
exten => _9NXXNXXXXXX,1,Noop()
exten => _9NXXNXXXXXX,2,Macro(telx-nyc,${EXTEN})
exten => _9NXXNXXXXXX,3,Playback(invalid)
exten => _9NXXNXXXXXX.4,Hangup

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

4. iax.conf (telx-nys17s)
cat iax.conf
[general]
allow=all
jitterbuffer=no
tos=lowdelay

[guest]
type=user
context=guest
callerid="Gust NY17S IAX User"

; telx-nyc-asterisk - Incoming -
;
[telx-nyc]
type=user
secret=telx-nyc
context=from-telx-nyc
disallow=all
allow=ulaw

; telx-nyc-asterisk - Outgoing
;
[telx-nyc]
type=peer
username=telx-NY17S       ; our username
secret=telx-NY17S         ; our password
host=192.168.11.30      ; host to connect to
;qualify=yes
;trunk=yes              ; use trunking
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~`





More information about the asterisk-users mailing list