[Asterisk-Users] Sending IAX2 calls back to a registered client

JP Hindin jplist at kiwigeek.com
Wed Sep 15 09:19:44 MST 2004


Greetings folks;

I guess I must be missing something, because for the life of me I can't
seem to make this work. I have remote clients connecting to Asterisk using
IAX2, these clients have changing IPs so we're using the useful register
tool.

The client can call out successfully, that's not an issue at all. Calling
coming from the server to the client, however, do not appear to go
through. I get this:

    -- Accepting call from '3015551212' to '13015559999' on channel 0/1, span 1
    -- Executing Answer("Zap/1-1", "") in new stack
    -- Executing Dial("Zap/1-1", "IAX2/2222/13015559999") in new stack
Sep 15 12:17:04 NOTICE[327696]: app_dial.c:714 dial_exec: Unable to create channel of type 'IAX2'
  == Everyone is busy/congested at this time
    -- Channel 0/1, span 1 got hangup
    -- Hungup 'Zap/1-1'



The confs are a little like this:
Server iax.conf
[2222]
permit=63.149.0.0/255.255.0.0		# IP range of client
secret=pass1
host=dynamic
context=reseller
type=friend

Server extension.conf:
exten => 3015559999,1,Answer
exten => 3015559999,Dial(IAX2/2222/${EXTEN})

Client iax.conf:
[general]
register => 2222:pass1 at server
[server]
type=friend
context=IAX-incoming
host=244.244.244.244		# Actual IP of server here
secret=pass1
trunk=no

Client extensions.conf:
[IAX-incoming]
exten => _2.,1,Dial(SIP/2222)

[IAX-outgoing]
exten => _1NXXNXXXXXX,1,Dial(IAX2/2222 at server/${EXTEN})
exten => _011.,1,Dial(IAX/2222 at server/${EXTEN})


What am I missing that is stopping the server from patching the call
through to the remote IAX2 client?

All suggestions appreciated;
JP




More information about the asterisk-users mailing list