jonas kellens
2009-Apr-30 19:22 UTC
[asterisk-users] Registration of 'cstore' rejected: 'Registration Refused' from: '62.213.196.38'
According to my IAX-provider, an account has been created for me on
their Asterisk-server...
But the Asterisk CLI tells me this :
asterisk*CLI> iax2 reload
== Parsing '/etc/asterisk/iax.conf': Found
[Apr 30 20:51:30] NOTICE[6391]: chan_iax2.c:10124 set_config: Ignoring
bindport on reload
[Apr 30 20:51:30] NOTICE[6391]: chan_iax2.c:10183 set_config: Ignoring
bindaddr on reload
> doing dnsmgr_lookup for '62.213.196.38'
== Parsing '/etc/asterisk/users.conf': Found
> doing dnsmgr_lookup for '62.213.196.38'
== Loaded firmware 'iaxy.bin'
== Parsing '/etc/asterisk/iaxprov.conf': Found
-- Loaded provisioning template 'default'
[Apr 30 20:51:30] NOTICE[3203]: chan_iax2.c:8474 socket_process:
Registration of 'cstore' rejected: 'Registration Refused' from:
'62.213.196.38'
asterisk*CLI> iax2 show registry
Host dnsmgr Username Perceived Refresh
State
62.213.196.38:4569 N cstore <Unregistered> 60
Rejected
[Apr 30 20:52:20] NOTICE[3206]: chan_iax2.c:8474 socket_process:
Registration of 'cstore' rejected: 'Registration Refused' from:
'62.213.196.38'
asterisk*CLI> exit
Now, before I tell my IAX-provider that the fault lies with them I want
to be sure that I did nothing wrong.
My iax.conf :
[general]
autokill=yes
bindport=4569
bindaddr=192.168.3.249
register => cstore:my-password at ip-of-iaxprovider
[cstore] ; my accountname @ remote Asterisk
type=user
auth=plaintext,md5
trunk=yes
context=from-iaxprovider
disallow=all
allow=ulaw
allow=alaw
allow=gsm
[attractel] ; IAX-provider
type=peer
host=ip-of-iaxprovider
username=cstore ; username @ remote asterisk
secret=my-password ; pass @ remote Asterisk
trunk=yes
disallow=all
allow=ulaw
allow=alaw
allow=gsm
My Asterisk-server has a user-account on the remote Asterisk-server, so
I need to define the remote Asterisk-server as a peer, right ?!
Do you see anything wrong in my config ? Is the "[NOTICE] registration
rejected" my fault ? Or my IAX-providers's fault ??
Thanks for the feedback !
Jonas.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.digium.com/pipermail/asterisk-users/attachments/20090430/b2e1cf1f/attachment.htm
jonas kellens
2009-May-02 08:59 UTC
[asterisk-users] Can someone help me with my IAX-registration
I have connected my Asterisk-box directly to my internetconnection. I
have disabled my firewall.
Still I am unable to register with my IAX-provider. Can someone please
point me out why I am unable to register my Asterisk to another
Asterisk-box ?
A RegReq is send to the other Asterisk-box but no reply is received...
No confirm, no reject...
I have tried yet several configuration in my iax.conf file.
There is also always the "ignoring bindaddr" and "ignoring
bindport"...
which doesn't sound right.
What I know from books is that when you want to connect your Asterisk to
another Asterisk-box you need to describe this other Asterisk-box as a
peer.
So my iax.conf :
[general]
autokill=yes
bindport=4569
bindaddr=78.22.166.226 ; the IP-address I get from my ISP
register => cstore:my-password at ip-of-other-iax-box
[cstore]
type=user
trunk=yes
context=from-other-iax-box
disallow=all
allow=ulaw
allow=alaw
allow=gsm
[attractel] ; name I use in extensions.conf to contact other iax-box
type=peer
host=ip-address
username=cstore ; username @ remote asterisk
secret=my-password ; pass @ remote Asterisk
auth=plaintext,md5
trunk=yes
disallow=all
allow=ulaw
allow=alaw
allow=gsm
IAX reload :
asterisk*CLI> iax2 reload
== Parsing '/etc/asterisk/iax.conf': Found
[May 2 10:34:23] NOTICE[4626]: chan_iax2.c:10124 set_config: Ignoring
bindport on reload
[May 2 10:34:23] NOTICE[4626]: chan_iax2.c:10183 set_config: Ignoring
bindaddr on reload
> doing dnsmgr_lookup for '62.213.196.38'
== Parsing '/etc/asterisk/users.conf': Found
> doing dnsmgr_lookup for '62.213.196.38'
== Loaded firmware 'iaxy.bin'
== Parsing '/etc/asterisk/iaxprov.conf': Found
-- Loaded provisioning template 'default'
Is ignoring bindaddr and bindport normal ?????
IAX debug :
Tx-Frame Retry[000] -- OSeqno: 000 ISeqno: 000 Type: IAX Subclass:
REGREQ
Timestamp: 00019ms SCall: 13117 DCall: 00000 [62.213.196.38:4569]
USERNAME : cstore
REFRESH : 60
Tx-Frame Retry[001] -- OSeqno: 000 ISeqno: 000 Type: IAX Subclass:
REGREQ
Timestamp: 00019ms SCall: 13117 DCall: 00000 [62.213.196.38:4569]
USERNAME : cstore
REFRESH : 60
Tx-Frame Retry[002] -- OSeqno: 000 ISeqno: 000 Type: IAX Subclass:
REGREQ
Timestamp: 00019ms SCall: 13117 DCall: 00000 [62.213.196.38:4569]
USERNAME : cstore
REFRESH : 60
IAX status :
asterisk*CLI> iax2 show registry
Host dnsmgr Username Perceived
Refresh State
62.213.196.38:4569 N cstore <Unregistered> 60
Request Sent
Host dnsmgr Username Perceived
Refresh State
62.213.196.38:4569 N cstore <Unregistered> 60
Timeout
Thanks for the help,
Jonas.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.digium.com/pipermail/asterisk-users/attachments/20090502/9acb3c20/attachment.htm