All pastes #9894 Raw Edit

Stuff

public text v1 · immutable
#9894 ·published 2005-04-20 10:57 UTC
rendered paste body
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]
include => extensions


When I move the call file into the /var/spool/asterisk/ougoing on the client server, I get the following errors:

on the client:
Apr 20 11:52:36 WARNING[14693]: chan_iax2.c:5546 socket_read: Call rejected by 195.82.123.19: No such context/extension
    -- Hungup 'IAX2/jones/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