I'm trying to get an IAX2 connection to work between two machines, initiating the call on 'nikita' and trying to pass that to 'jones' I'm using a call file and dropping it into the outgoing spool. The call file looks like this:
Channel: IAX2/jones/442077519062
MaxRetries: 2
RetryTime: 60
WaitTime: 30
Context: iax-out
Extension: s
Priority: 1
The iax.conf on the client (nikita) looks like this:
[general]
port=5036
disallow=all
allow=ulaw
allow=alaw
tos=lowdelay
[jones]
type=friend
username=nikita
secret=blabla
host=jones.domainname.net
context=iax-out
the extensions.conf on the client (nikita) contains:
[iax-out]
exten => s,1,Dial(IAX2/jones/${EXTEN:1},30,r)
exten => s,2,Congestion
Meanwhile, at the host end of the connection (jones), the iax.conf contains:
[nikita]
type=friend
username=nikita
secret=blabla
host=195.82.137.161
context=iax-incoming
and jones' extensions.conf includes:
[iax-incoming]
exten => _XXX.,1,Dial(zap/g2/${EXTEN:1})
When I move the call file into the /var/spool/asterisk/ougoing on the client server, I get the following errors:
on the client:
nikita*CLI>
-- Attempting call on IAX2/jones/442077519062 for s@:1 (Retry 1)
Apr 20 12:04:52 WARNING[14724]: chan_iax2.c:5546 socket_read: Call rejected by 195.82.113.19: No authority found
-- Hungup 'IAX2/jones/2'
Apr 20 12:04:52 NOTICE[14744]: pbx_spool.c:232 attempt_thread: Call failed to go through, reason 1
on the remove server:
Apr 20 11:25:13 NOTICE[22282]: chan_iax2.c:5754 socket_read: Rejected connect attempt from 195.82.137.161, request '442077519062@iax-incoming' does not exist
Both machines are running Asterisk 1.0.5
Somebody please point out my stupid mistake(s) ! :)
christo