<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.24.5">
</HEAD>
<BODY>
According to my IAX-provider, an account has been created for me on their Asterisk-server...<BR>
<BR>
But the Asterisk CLI tells me this :<BR>
<BR>
<FONT SIZE="2"><I>asterisk*CLI&gt; iax2 reload</I></FONT><BR>
<FONT SIZE="2"><I>&nbsp; == Parsing '/etc/asterisk/iax.conf': Found</I></FONT><BR>
<FONT SIZE="2"><I>[Apr 30 20:51:30] NOTICE[6391]: chan_iax2.c:10124 set_config: Ignoring bindport on reload</I></FONT><BR>
<FONT SIZE="2"><I>[Apr 30 20:51:30] NOTICE[6391]: chan_iax2.c:10183 set_config: Ignoring bindaddr on reload</I></FONT><BR>
<FONT SIZE="2"><I>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &gt; doing dnsmgr_lookup for '62.213.196.38'</I></FONT><BR>
<FONT SIZE="2"><I>&nbsp; == Parsing '/etc/asterisk/users.conf': Found</I></FONT><BR>
<FONT SIZE="2"><I>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &gt; doing dnsmgr_lookup for '62.213.196.38'</I></FONT><BR>
<FONT SIZE="2"><I>&nbsp; == Loaded firmware 'iaxy.bin'</I></FONT><BR>
<FONT SIZE="2"><I>&nbsp; == Parsing '/etc/asterisk/iaxprov.conf': Found</I></FONT><BR>
<FONT SIZE="2"><I>&nbsp;&nbsp;&nbsp; -- Loaded provisioning template 'default'</I></FONT><BR>
<FONT SIZE="2"><I><B>[Apr 30 20:51:30] NOTICE[3203]: chan_iax2.c:8474 socket_process: Registration of 'cstore' rejected: 'Registration Refused' from: '62.213.196.38'</B></I></FONT><BR>
<FONT SIZE="2"><I>asterisk*CLI&gt; iax2 show registry</I></FONT><BR>
<FONT SIZE="2"><I>Host&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dnsmgr&nbsp; Username&nbsp;&nbsp;&nbsp; Perceived&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Refresh&nbsp; State</I></FONT><BR>
<FONT SIZE="2"><I>62.213.196.38:4569&nbsp;&nbsp;&nbsp; N&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cstore&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Unregistered&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 60&nbsp; Rejected</I></FONT><BR>
<FONT SIZE="2"><I><B>[Apr 30 20:52:20] NOTICE[3206]: chan_iax2.c:8474 socket_process: Registration of 'cstore' rejected: 'Registration Refused' from: '62.213.196.38'</B></I></FONT><BR>
<FONT SIZE="2"><I>asterisk*CLI&gt; exit</I></FONT><BR>
<BR>
Now, before I tell my IAX-provider that the fault lies with them I want to be sure that I did nothing wrong.<BR>
<BR>
<B>My iax.conf :</B><BR>
<BR>
<I><FONT SIZE="2">[general]</FONT></I><BR>
<FONT SIZE="2">autokill=yes</FONT><BR>
<FONT SIZE="2">bindport=4569</FONT><BR>
<FONT SIZE="2">bindaddr=192.168.3.249</FONT><BR>
<BR>
<FONT SIZE="2">register =&gt; cstore:my-password@ip-of-iaxprovider</FONT><BR>
<BR>
<FONT SIZE="2">[cstore] ; my accountname @ remote Asterisk</FONT><BR>
<FONT SIZE="2">type=user</FONT><BR>
<FONT SIZE="2">auth=plaintext,md5</FONT><BR>
<FONT SIZE="2">trunk=yes</FONT><BR>
<FONT SIZE="2">context=from-iaxprovider</FONT><BR>
<FONT SIZE="2">disallow=all</FONT><BR>
<FONT SIZE="2">allow=ulaw</FONT><BR>
<FONT SIZE="2">allow=alaw</FONT><BR>
<FONT SIZE="2">allow=gsm</FONT><BR>
<BR>
<FONT SIZE="2">[attractel] ; IAX-provider</FONT><BR>
<FONT SIZE="2">type=peer</FONT><BR>
<FONT SIZE="2">host=ip-of-iaxprovider</FONT><BR>
<FONT SIZE="2">username=cstore ; username @ remote asterisk</FONT><BR>
<FONT SIZE="2">secret=my-password ; pass @ remote Asterisk</FONT><BR>
<FONT SIZE="2">trunk=yes</FONT><BR>
<FONT SIZE="2">disallow=all</FONT><BR>
<FONT SIZE="2">allow=ulaw</FONT><BR>
<FONT SIZE="2">allow=alaw</FONT><BR>
<FONT SIZE="2">allow=gsm</FONT><BR>
<BR>
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 ?!<BR>
<BR>
Do you see anything wrong in my config ? Is the &quot;[NOTICE] registration rejected&quot; my fault ? Or my IAX-providers's fault ??<BR>
<BR>
Thanks for the feedback !<BR>
Jonas.
</BODY>
</HTML>