IAX Setup Rejected Connection
Goto page Previous 1, 2 |
| Author |
Message |
ichilton
Joined: Aug 30, 2004
Posts: 514
Location: UK
Status: Offline
|
| Posted:
Jan 25, 2005 - 03:39 PM |
|
Hi,
By the way, I use the following if this helps:
voipuser.org control panel:
| Code: | | IAX2/voipuser_inbound:PASSWORD@myserver.mydomain.com |
iax.conf:
| Code: |
[voipuser_inbound]
type=user
context=incoming_voipuser
username=voipuser
secret=PASSWORD
disallow=all
allow=ilbc
|
extensions.conf:
| Code: |
[incoming_voipuser]
exten => 44870068xxxx,1,NoOp(--- ${CALLERID} calling on VoIPUser (${EXTEN}) ---)
exten => 44870068xxxx,2,Dial(SIP/office,20)
exten => 44870068xxxx,3,Answer
exten => 44870068xxxx,4,Wait,1
exten => 44870068xxxx,5,Voicemail(su4)
exten => 44870068xxxx,6,HangUp
|
--ian |
|
|
|
 |
serik
Joined: Jan 12, 2005
Posts: 16
Status: Offline
|
| Posted:
Jan 25, 2005 - 07:18 PM |
|
HI Ian
Turned debug on, made a call "INTO" myself via telco.
Here is the output from Console (I can't even pretend to understand it!)
| Code: | Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 000 Type: IAX Subclass: NEW
Timestamp: 00012ms SCall: 00014 DCall: 00000 [213.166.5.129:4569]
VERSION : 2
CALLED NUMBER : 448700689890
CALLING NUMBER : 2131665134
Unknown IE 038 : Present
Unknown IE 039 : Present
Unknown IE 040 : Present
CALLING NAME : unknown
LANGUAGE : en
USERNAME : serik
FORMAT : 8
CAPABILITY : 1038
ADSICPE : 2
DATE TIME : 171546767
Ignoring unknown information element 'Unknown IE' (38) of length 1
Ignoring unknown information element 'Unknown IE' (39) of length 1
Ignoring unknown information element 'Unknown IE' (40) of length 2
Jan 25 21:09:41 NOTICE[147465]: chan_iax2.c:5390 socket_read: Rejected connect attempt from 213.166.5.129
Tx-Frame Retry[000] -- OSeqno: 000 ISeqno: 001 Type: IAX Subclass: REJECT
Timestamp: 00003ms SCall: 00002 DCall: 00014 [213.166.5.129:4569]
CAUSE : No authority found |
Looks like there is a lot missing somewhere!
Please help!
<Edit by Dean>Put in code tags to remove smileys. I can't help I'm afraid - over to you Ian  </Edit> |
|
|
|
 |
ichilton
Joined: Aug 30, 2004
Posts: 514
Location: UK
Status: Offline
|
| Posted:
Jan 25, 2005 - 07:52 PM |
|
| serik : | | CAUSE : No authority found |
humm, looks like it can't find the iax.conf section or the context/extension.
Can you paste in your control panel IAX2 line and your relevent sections, like I did above and i'll see if I can spot anything.
--ian |
|
|
|
 |
serik
Joined: Jan 12, 2005
Posts: 16
Status: Offline
|
| Posted:
Jan 25, 2005 - 09:17 PM |
|
HI
Yes! The header [xxxxx] in iax.conf contained a typo. I can now get it to dial myself from telco just great!
Thanks guys!
Sorry Dean I forgot to put in the code correctly, I'll try to remember next time.
All that I now need to do again is get it to dial out, but that is tomorows job.
BTW, I started from scratch instead of using the demo * scripts for the config files. MUCH better, and I have a better understanding of *  |
|
|
|
 |
g7rup

Joined: Jan 13, 2005
Posts: 7
Status: Offline
|
| Posted:
Jan 25, 2005 - 09:45 PM |
|
Cracked it finally
I didn't realise that the header [xxxxx] in the iax.conf had to match the termination destination at voipuser
IAX2/xxxxx:somepass@my.domain.com
Thanks for all the help. |
|
|
|
 |
ichilton
Joined: Aug 30, 2004
Posts: 514
Location: UK
Status: Offline
|
| Posted:
Jan 25, 2005 - 10:32 PM |
|
|
Hi,
Ahhhh, that explains it then!
It does use the [header] and ignore the username.
As you both have a problem with that, I should update my guide to state that more clearly.
serik -> Feel free to post in the outbound forum if you have a problem with outbound - I have it working under Asterisk with no problems (see my sticky thread in that forum).
--ian |
|
|
|
 |
serik
Joined: Jan 12, 2005
Posts: 16
Status: Offline
|
| Posted:
Jan 26, 2005 - 07:49 PM |
|
Hi Ian
| Quote: | | serik -> Feel free to post in the outbound forum if you have a problem with outbound - I have it working under Asterisk with no problems (see my sticky thread in that forum). |
Thanks. I'll go there and set it up "as per the book". I got work to do tonight so it looks I can only do it tomorrow.
You were also right about the one way audio, it was being blocked on the firewall even though I specifically forwaded port 4569. I dropped the firewall while testing and it solved the problem. I still need to find a workaround for this. Is there no way you can do something similar FWD as this works 100% when firewall is up. Unfortunately I have to keep a rather strict firewall because of the services we run here, just a suggection.
Thanks for a great service, truly unique . We really appreciate all you guys are doing.
Regards
Serik  |
|
|
|
 |
ichilton
Joined: Aug 30, 2004
Posts: 514
Location: UK
Status: Offline
|
| Posted:
Jan 26, 2005 - 08:17 PM |
|
| serik : | | You were also right about the one way audio, it was being blocked on the firewall even though I specifically forwaded port 4569. |
I wont say I told..... *grin*.
Seriously - that's strange because IAX is normally easy to use with NAT because it's just 1 port - it's normally sip which is a pain in the neck - you need 5060 and the ports from rtp.conf - and sometimes still need to tweek sip.conf settings for some providers... For IAX2 I just have 4569 and seems fine - not had any problems. Are you sure it's open (and forwarded to the right place if you're using NAT)??
--ian |
|
|
|
 |
Globis
Joined: Jan 19, 2005
Posts: 1
Status: Offline
|
| Posted:
Jan 16, 2006 - 09:38 PM |
|
|
I had exactly the same problem. Calls were rejected as asterisk could not find the correct context. Similarly outbound calls were rejected as there is a mismatch between the inbound called number and the outbound account number.
I seem to have solved this as follows:
in iax.conf
register => 8891:XYZZY@nl.voipgate.nl
[8891]
type=user
context=voipgate-inbound
auth=md5
secret=XYZZY
;host=nl.voipgate.nl
; this is double security, MD5 and IP address.
; The IP filtering part is optional
deny=0.0.0.0/0.0.0.0
permit=80.127.191.55/255.255.255.255
The key here is the account '8891' has to match the outbound account that voipgate assigned to you. 8891 is not my real account number, nor is XYZZY my real password. They do not seem to use any authorisation (such as MD5 or RSA) so at least I have filtered by IP address. This is not very flexible to say the least.
Also in extensions.conf you have to have your own inbound PSTN number configured so that asterisk can find it. Newer versions of asterisk apparently check for this to find the right action to perform.
[general]
;set IAX2 vars for VOIPGATE
VOIPGATENUMBER=31880009999; our called number. this is not our real number. NB NO + sign or 00 demanded by E164 syntax.
VOIPGATEACCOUNT=8981; our outbound account
VOIPGATECIDNAME=Globis<0031880009999> ; your caller id
VOIPGATEPASSWORD=XYZZY; our password. this is not our real password
VOIPGATERINGS=IAX2/2200:@2200/2200; the local phone to ring
VOIPGATEVMBOX=2200 ; the VM box for this user
[voipgate-inbound]
; context for inbound calls from voipgate are forwarded to VOIPGATERINGS (local extension 2200)
; first change area code 40 to +3140 in the callername and 40 to 003140 in the caller number
exten => ${VOIPGATENUMBER},1,Set(CALLERID(name)=+31${CALLERIDNUM})
exten => ${VOIPGATENUMBER},2,Set(CALLERID(number)=0031${CALLERIDNUM})
; now ring a local extension
exten => ${VOIPGATENUMBER},3,Dial(${VOIPGATERINGS},30)
exten => ${VOIPGATENUMBER},4,Voicemail,u${VOIPGATEVMBOX}
exten => ${VOIPGATENUMBER},5,Hangup
exten => ${VOIPGATENUMBER},104,Voicemail,b${VOIPGATEVMBOX}
exten => ${VOIPGATENUMBER},105,Hangup
;context for outbound calls to voipgate.
; basically anything starting with a zero will be routed via the PSTN over this gateway.
;Make sure you only give this context to the correct local extensions or it will cost real money.
[voipgate-outbound] ;via voipgate.nl
exten => _0.,1,Set(CALLERID(all)=${VOIPGATECIDNAME})
exten => _0.,2,Dial(IAX2/${VOIPGATEACCOUNT}:${VOIPGATEPASSWORD}@nl.voipgate.nl/${EXTEN},60,r)
exten => _0.,3,Congestion
hope this helps. |
|
|
|
 |
Lambros
Joined: Jan 16, 2006
Posts: 61
Status: Offline
|
| Posted:
Feb 28, 2006 - 10:08 AM |
|
|
This thread is a GEM.....
It should really be properly edited and
made a sticky....
Many thanks.
Lambros |
|
|
|
 |
Cowboy47
Joined: May 29, 2006
Posts: 2
Status: Offline
|
| Posted:
May 29, 2006 - 07:10 PM |
|
|
I have been trying to bring up an asterisk server and while things were working fine, all of the sudden none of the phones will login.
I get the following lines from the debug:
May 29 12:15:53 VERBOSE[2596] logger.c: USERNAME : 200
May 29 12:15:53 VERBOSE[2596] logger.c: REFRESH : 60
May 29 12:15:53 VERBOSE[2596] logger.c:
May 29 12:15:53 NOTICE[2596] chan_iax2.c: No registration for peer '200' (from 200.46.245.13)
May 29 12:15:53 VERBOSE[2596] logger.c: Tx-Frame Retry[000] -- OSeqno: 000 ISeqno: 001 Type: IAX Subclass: REGREJ
May 29 12:15:53 VERBOSE[2596] logger.c: Timestamp: 00002ms SCall: 00001 DCall: 10800 [200.46.245.13:4569]
May 29 12:15:53 VERBOSE[2596] logger.c: CAUSE : Registration Refused
May 29 12:15:53 VERBOSE[2596] logger.c: CAUSE CODE : 29
May 29 12:15:53 VERBOSE[2596] logger.c:
May 29 12:15:53 VERBOSE[2596] logger.c: Rx-Frame Retry[ No] -- OSeqno: 001 ISeqno: 001 Type: IAX Subclass: ACK
May 29 12:15:53 VERBOSE[2596] logger.c: Timestamp: 00002ms SCall: 10800 DCall: 00001 [200.46.245.13:4569]
May 29 12:15:53 VERBOSE[2596] logger.c: Timestamp: 00002ms SCall: 10800 DCall: 00001 [200.46.245.13:4569]
Any ideas on why this would occur all of the sudden and how to I resolve it?
Thanks, |
|
|
|
 |
|
| 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-2008 VoIP User Limited.
VoIP User Limited is incorporated in England and Wales under Company Number 6694577.
No part of this site may be reproduced without our prior consent.
|
|