[Asterisk-Users] Asterisk to Asterisk via IAX2 Help

Darren Ellis darren at ieworks.net
Mon Feb 21 09:34:30 MST 2005


Hi,

I have two asterisk machines, chomper and otao.

otao is otao.ieworks.net, has a public IP address (66.101.11.61), but no 
PSTN connections.

chomper is at my house, behind NAT, but has a single X100P PSTN connection.

I would like to establish two way calling between otao and chomper.  
Right now, I can call my extension on otao (2101) from my x-lite 
softphone on chomper, but I cannot call my extension (7101) on chomper 
from my sipura/hardphone on 2101 (Connected to otao).

This is the error from otao:
otao*CLI>
    -- Executing Dial("SIP/2101-02b8", 
"IAX2/chomper:SECRET at chomper/101|20|Tt") in new stack
    -- Called chomper:aragorn at chomper/101
Feb 21 11:25:25 WARNING[6894]: chan_iax2.c:5562 socket_read: Call 
rejected by 69.173.140.135: No authority found
    -- Hungup 'IAX2/chomper/16384'
  == No one is available to answer at this time
    -- Executing Playback("SIP/2101-02b8", "goodbye") in new stack
    -- Playing 'goodbye' (language 'en')
    -- Executing Hangup("SIP/2101-02b8", "") in new stack
  == Spawn extension (from-sip, 7101, 3) exited non-zero on 'SIP/2101-02b8'

This is the error from chomper:
Feb 21 11:25:25 NOTICE[23368]: chan_iax2.c:5449 socket_read: Rejected 
connect attempt from 66.101.11.61

What am I missing? 

I've read through the wiki on this exact topic and must be having a 
dense day ;)  Links I have looked at:
http://www.voip-info.org/wiki-Asterisk+-+dual+servers
http://www.voip-info.org/wiki-Asterisk+config+iax.conf
http://www.voip-info.org/wiki-Asterisk+iax+channels
http://www.voip-info.org/tiki-index.php?page=IAX2

I've also googled for answers, but what I've found seems to be related 
to IAX clients, rather than asterisk to asterisk via IAX2.

Anyway, thanks for the clues in advance.

Darren

Relevant configs below:

otao:iax.conf
=========
[chomper]
type=friend
username=chomper
host=dynamic
;secret=aragorn
context=from-sip
qualify=200
trunk=yes
permit=0.0.0.0/0.0.0.0

otao:extensions.conf
==============
; 7101: Darren at chomper
exten => 7101,1,Dial(IAX2/chomper:SECRET at chomper/101,20,Tt)
exten => 7101,2,Playback(goodbye)
exten => 7101,3,Hangup

chomper:iax.conf
===========
[general]
register => chomper:SECRET at otao.ieworks.net

;
; VOIP * server on static IP
[otao]
type=friend
host=otao.ieworks.net
;secret=aragorn
context=from-sip
qualify=200
trunk=yes
permit=0.0.0.0/0.0.0.0


chomper:extensions.conf
================
[general]

static=yes       ; These two lines prevent the command-line interface
writeprotect=yes ; from overwriting the config file. Leave them here.

;
; Set my info up.
IAXINFO=chomper:SECRET
DIALOUTANALOG=Zap/1

;
; Extension 2101 is found on otao:
exten => 2101,1,Dial(IAX2/${IAXINFO}@otao.ieworks.net/2101)




More information about the asterisk-users mailing list