[Asterisk-Users] IAX calls between asterisk boxes works 1 way only

James Bean james at hdcs.com.au
Mon Apr 11 04:10:22 MST 2005


Sorry again sorted it out, the [definition] has to be the same as the
username or it doesn't work, well for me anyway.

:-)

Gotta reasearch a few extra hours and play a bit more before I post I
think.

Sorry guys and girls.

James 

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of James Bean
Sent: Monday, 11 April 2005 5:53 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: [Asterisk-Users] IAX calls between asterisk boxes works 1 way
only


Hi,

Weird issue, 2 asterisk boxes running 1.0.7, when I call iax from box 1
to box 2 it works fine, when I dial from box 2 to box 1 I get a 

On Box 1
Apr 11 17:25:39 WARNING[8969]: chan_iax2.c:5553 socket_read: Call
rejected by 192.168.69.1: No authority found

On Box 2
Apr 11 17:26:07 NOTICE[2157]: chan_iax2.c:6573 socket_read: Rejected
connect attempt from 192.168.254.100, who was trying to reach '690@'

Error, so I obviously missed something and can someone smack me upside
the head and point out my error.

Please assume that the passwords are correct in the files :-).

Configurations are attached of each box:

Box 1

iax.conf

[general]
bindport=4569
bandwidth=low
disallow=lpc10
jitterbuffer=no
tos=lowdelay

[guest]
type=user
context=default
callerid="Guest IAX User"

[salisbury]
type=friend
host=192.168.254.100
username=northbuild
secret=<password>
context=voip
permit=192.168.254.100

extensions.conf

[global]

PSTNLine=Zap/g1
AnalogPhone=Zap/g2

[pstn]

exten => s,1,SetMusicOnHold(random)
exten => s,2,Dial(SIP/snom-james&SIP/bt-karen,45,t)
exten => s,4,VoiceMail(u690)
exten => s,5,Hangup

[internal]

exten => i,1,Playback(invalid)
exten => i,2,Hangup
exten => t,1,Hangup

exten => 098,1,WaitMusicOnHold(45)
exten => 099,1,Echo     ;simple echo test when you dial 099 on your
phone

exten => 1690,1,VoicemailMain,s690
exten => 1691,1,VoicemailMain,s691

[outgoing]

exten => _9X.,1,Dial(Zap/g1/${EXTEN:1})
exten => _9X.,2,Congestion()
exten => _9X.,3,Hangup

[sip]

exten => 690,hint,SIP/snom-james
exten => 691,hint,SIP/bt-karen

exten => 690,1,SetMusicOnHold(random)
exten => 690,2,Dial(SIP/snom-james,30,Ttr) exten =>
690,3,Voicemail2,u690 exten => 690,103,Voicemail2,b690

exten => 691,1,SetMusicOnHold(random)
exten => 691,2,Dial(SIP/bt-karen,30,Ttr) exten => 691,3,Voicemail,u691
exten => 691,103,Voicemail,b691

include => internal
include => outgoing
include => parkedcalls
include => voip

[voip]

exten => _1XX,1,Dial(IAX2/james:<password>@192.168.254.100/${EXTEN})
exten => _65X,1,Dial(IAX2/dixst:<password>@192.168.50.1/${EXTEN})

-----------------------------------------------------------------
Box 2

iax.conf

[general]
bindport=4569
bandwidth=low
disallow=lpc10
jitterbuffer=no
tos=lowdelay

[guest]
type=user
context=default
callerid="Guest IAX User"

[dixst]
type=friend
host=192.168.50.1
username=dixst
secret=<password>
context=e100p
permit=192.168.50.1

[james]
type=friend
host=192.168.69.1
username=james
secret=<password>
context=e100p
permit=192.168.69.1

extensions.conf

[dialstring]

exten => i,1,Playback(invalid)
exten => i,2,Hangup
exten => t,1,Hangup

[e100p]

exten => _1XX,1,Dial(Zap/g1/${EXTEN})
exten => _93X.,1,Dial(Zap/g1/${EXTEN})
exten => _9073X.,1,Dial(Zap/g1/${EXTEN})

include = dialstring
include = voip

[voip]

exten => _65X,1,Dial(IAX2/dixst:<password>@192.168.50.1/${EXTEN})
; DixSt Redcliffe Ext
exten => _66X,1,Dial(IAX2/scarb:<password>@192.168.60.1/${EXTEN})
; Scarborough
exten => _69X,1,Dial(IAX2/northbuild:<password>@192.168.69.1/${EXTEN})
; James Home
_______________________________________________
Asterisk-Users mailing list
Asterisk-Users at lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users



More information about the asterisk-users mailing list