IAX Setup Rejected Connection
Goto page 1, 2 Next |
| Author |
Message |
g7rup

Joined: Jan 13, 2005
Posts: 7
Status: Offline
|
| Posted:
Jan 13, 2005 - 03:34 AM |
|
Hi,
I've follwed the instructions at http://www.voipuser.org/forum_post_403.html .
Upon dialing the PSTN number a connection is made to my * box but the following error occurs
Rejected connect attempt from 213.166.5.129, who was trying to reach '448444845226@'
Any idea how I can solve this please |
|
|
|
 |
ichilton
Joined: Aug 30, 2004
Posts: 514
Location: UK
Status: Offline
|
| Posted:
Jan 13, 2005 - 06:48 AM |
|
|
Hi,
If you could post your config snippets (but blank out part of your username/password/number with x's) - then we can have a look and see if we can spot any errors.
--ian |
|
|
|
 |
g7rup

Joined: Jan 13, 2005
Posts: 7
Status: Offline
|
| Posted:
Jan 13, 2005 - 11:27 AM |
|
|
Here's extensions.conf
[sip]
include => outgoing
include => incoming
include => iaxtel
include => iaxtel-trunks
include => fromiaxfwd
include => inbound-voipuser
exten => 3,1,Dial(SIP/Phone3,20,tr)
exten => 3,2,VoiceMail,u1000
exten => 3,102,VoiceMail,b1000
exten => 4,1,Dial(SIP/Phone4,20,tr)
exten => 4,2,VoiceMail,u1000
exten => 4,102,VoiceMail,b1000
exten => 1000,1,VoicemailMain(1000)
[incoming]
exten => s,1,Dial(SIP/Phone3&SIP/Phone4,20,tr)
exten => s,2,Voicemail,u1000
exten => s,102,Voicemail,b1000
[outgoing]
exten => _9X.,1,Dial(Zap/1/${EXTEN:1})
exten => _9X.,2,Hangup
[from-iaxtel]
exten => s,1,Wait(2)
exten => s,2,Answer
exten => _.,3,Dial(SIP/Phone3,60,tr)
exten => _.,4,Hangup
[iaxtel-trunks]
exten => _1700NXXXXXX,1,Dial(IAX2/XXXX:XXXX@iaxtel.com/${EXTEN}@iaxtel)
exten => _1800NXXXXXX,1,Dial(IAX2/XXXX:XXXX@iaxtel.com/${EXTEN}@iaxtel)
exten => _1888NXXXXXX,1,Dial(IAX2/XXXX:XXXX@iaxtel.com/${EXTEN}@iaxtel)
exten => _1877NXXXXXX,1,Dial(IAX2/XXXX:XXXX@iaxtel.com/${EXTEN}@iaxtel)
exten => _1866NXXXXXX,1,Dial(IAX2/XXXX:XXXX@iaxtel.com/${EXTEN}@iaxtel)
;Test Conferance Server for asterisk-uk mailing list
exten => 4000,1,Dial(IAX2/ukguest:ukuser@codepipe.kicks-ass.net/9000)
exten => 4000,2,Hangup
[inbound-voipuser]
exten => 448444845226,1,Dial(SIP/Phone3&SIP/Phone4,20)
exten => 448444845226,2,Voicemail,u2
exten => 448444845226,3,Hangup
heres iax.conf
[guest]
type=user
context=default
callerid="Guest IAX User"
;
; Trust Caller*ID Coming from iaxtel.com
;
[iaxtel]
type=user
context=default
auth=rsa
inkeys=iaxtel
[iaxtel]
type=friend
host=iaxtel.com
secret=XXXX
auth=rsa
context=from-iaxtel
inkeys=iaxtel
[voipuser]
username=XXXX
secret=XXXX
type=user
context=inbound-voipuser
Is there something missing ?
Thanks
Jon |
|
|
|
 |
ichilton
Joined: Aug 30, 2004
Posts: 514
Location: UK
Status: Offline
|
| Posted:
Jan 13, 2005 - 03:08 PM |
|
|
Hi,
I'll have a look at this and get back to you.
--ian |
|
|
|
 |
ichilton
Joined: Aug 30, 2004
Posts: 514
Location: UK
Status: Offline
|
| Posted:
Jan 13, 2005 - 05:36 PM |
|
|
Hi,
That all looks correct to me.
What are you putting in the control panel for that number (again, please blank out passwords).
Also, please try this:
Start the Asterisk console up like this:
asterisk -vvvvvvvvvvvvvvvvvvvvvvvvr
..wait for everything to stop flashing past, give it a few presses of the enter key so you can see what's new and make an incoming call on that number. Please paste in everything that comes up (blanking out the secret stuff).
--ian |
|
|
|
 |
wesmills
Joined: Oct 22, 2004
Posts: 6
Status: Offline
|
| Posted:
Jan 13, 2005 - 05:38 PM |
|
|
What IAX2/ string are you using? |
|
|
|
 |
ichilton
Joined: Aug 30, 2004
Posts: 514
Location: UK
Status: Offline
|
| Posted:
Jan 13, 2005 - 05:42 PM |
|
that's what I just asked
--ian |
|
|
|
 |
g7rup

Joined: Jan 13, 2005
Posts: 7
Status: Offline
|
| Posted:
Jan 13, 2005 - 07:04 PM |
|
|
Thanks guys...
Ok the string in the control panel says
IAX2/XXXX:XXXXXX@g7rup.homeip.net
and the output from * when making an incoming call is
Jan 13 19:00:25 NOTICE[2683]: chan_iax2.c:5884 socket_read: Rejected connect attempt from 213.166.5.129, who was trying to reach '448444845226@'
I don't know whether it makes any differance but the * box is behind NAT
Thanks again |
|
|
|
 |
ichilton
Joined: Aug 30, 2004
Posts: 514
Location: UK
Status: Offline
|
| Posted:
Jan 13, 2005 - 07:09 PM |
|
|
Hi,
The IAX2 string looks ok.
Do you have the IAX2 port forwarded in to the asterisk box and open on the firewall?
--ian |
|
|
|
 |
g7rup

Joined: Jan 13, 2005
Posts: 7
Status: Offline
|
| Posted:
Jan 13, 2005 - 07:19 PM |
|
|
Yup thats definately open.. |
|
|
|
 |
wesmills
Joined: Oct 22, 2004
Posts: 6
Status: Offline
|
| Posted:
Jan 13, 2005 - 09:07 PM |
|
| g7rup : | Thanks guys...
Ok the string in the control panel says
IAX2/XXXX:XXXXXX@g7rup.homeip.net
|
One thing I noticed .. Here, your password is 6 characters. In the iax.conf you posted earlier, under the voipuser heading, the "secret" line is only 4 characters. Do these two passwords match, and you just got overzealous with the Xing out?  If not, make secret and the second part of the colon match, and see if it works. Also, try setting host to dynamic; that has helped for me. This is exactly how I have mine set up:
iax.conf:
[voipuser]
type=friend
username=someusername
secret=somepassword
context=voipuseriax
host=dynamic
In control panel:
IAX2/someusername:somepassword@thebe.home.wyvern.org |
|
|
|
 |
g7rup

Joined: Jan 13, 2005
Posts: 7
Status: Offline
|
| Posted:
Jan 13, 2005 - 09:26 PM |
|
Thanks wesmills
Yes the usernames and passwords are the same all the way through..I've got a sticky X key  .
I've also added the host=dynamic line and altered the type = to both friend and user .
Cheers |
|
|
|
 |
serik
Joined: Jan 12, 2005
Posts: 16
Status: Offline
|
| Posted:
Jan 25, 2005 - 03:18 PM |
|
|
HI guys,
Experiencing exactly the same problem with regards to the rejected connection.
Everything in iax.conf looks 100%.
Any ideas ? |
|
|
|
 |
tjardick
Site Admin
Joined: Dec 12, 2003
Posts: 943
Status: Offline
|
| Posted:
Jan 25, 2005 - 03:28 PM |
|
|
Any friend entries in the iax.conf.
Have you tried marking them out or split them out into a user and a peer entry ?
Tj
[ichilton edited and changed AIX.conf to iax.conf] |
|
|
|
 |
ichilton
Joined: Aug 30, 2004
Posts: 514
Location: UK
Status: Offline
|
| Posted:
Jan 25, 2005 - 03:28 PM |
|
|
Hi,
Rejected connection is normally because the context/extension doesn't exist.
Try typing:
iax2 debug
..and making a call - you might be able to see some more errors - or at least what context/extension it's looking for in there.
You turn it off with iax2 no debug.
--ian |
|
|
|
 |
|
| Forum Rules and Guidelines |
About VoIP User |
Privacy Policy
|
All logos and trademarks in this site are property of their respective owner. Comments and posts are property of the poster, all the rest (c) 2003-2006 VoIP User.
No part of this site may be reproduced without our prior consent.
|
|