I have sucefully setup two asterisk BOXes, I call them SERVER A and SERVER B. Now I want to connect them, so that the users from either server can call each other.
user from SERVER A named : home1(SIP telphone No is 401)
user from SERVER B named: server1(SIP telphone No is 501)
extensions of SERVER A
exten=> _7XXX,1,Dial(IAX2/serverB/${EXTEN:1},30,r)
extensions of SERVER B
exten=> _8XXX,1,Dial(IAX2/serverA/${EXTEN:1},30,r)
when I connect server A as ‘home1’, I want to call ‘server1’ in server B, I use the No. 7501.
And the asterisk server B console tells that:
Jun 30 18:14:20 NOTICE[31132]: chan_iax2.c:6812 socket_read: Rejected connect attempt from 1xx.xx.xxx.XX, request ‘501@incoming’ does not exist
where 1xx.xx.xxx.XX is the IP address of Server A.
Can someone tell me what is wrong?
As I though SERVER B receive the request but don’t know how to handle it.
P.S all the user extensions diretries are in one block in extensions.conf file, which name [internal].
I don’t know what is the meaning of ‘501@incoming’ in console
since I connect the two BOXes, now home1 can call server 1 using the No. 7501. But when server1 pick up the phone. home1 can’t hear server1, but server1 can hear home1
home1-----speak to-------->server1 works
server1-----speark to------>home1 no sound and no logs from asterisk
I don’t know why. I am sure both OS sound system work well. (speaker and microphone)
++++++++++++++++++++++++++++=
Another question is that home1 can call server1, but server1 can’t call home1
the asterisk giving the hits: unable to create channel of type IAX2 (case 3- No route to destination)
As I understand it means that SERVER A registry in SERVER B doesn’t work.
my network is : SERVERA using VPN to connect the network, so it has only [color=red]dynamic IP.[/color]
SERVER B has [color=red]static IP[/color]
the dial command tells the system to dial using IAX, with username serverB and password 1234, connecting to server 10.100.1.60, and dialing extension 101.
your setup looks like it should work, but i’d guess from the error that you have a NAT in the way. you can get by that using IAX, but if you can put these two servers on the same subnet for testing, it makes life much easier.
is it necessary to declare to SERVER B that to route SEVER A(10.100.1.60) using
as i think once you regist in SEVER A using the iax2.conf you don’t need to use validate the password and server IP again in the SERVER B.
The problem for me is that SERVER A didn’t has static IP.
But I will try more, Thanks
SERVER B has the IP 132.230.AAA.AAA
SERVER A has IP 10.xx.xx.xx according the vpn, but the vpn server(IP 132.230.XX.XX) is in the same subnet with SERVER A.
When I use the iax2 show registry in the SERVER A, it will show up the SERVER B has succefully registed with the IP. 132.230.xx.xx, which is the ip of the vpn server
the network like follow:
SERVER A-----VPN server(static IP)------internet-----SERVER B(static IP)