<!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 LINK="#0000ff">
<FONT SIZE="2"><I>[root@asterisk asterisk]# cat iax.conf</I></FONT><BR>
<FONT SIZE="2"><I>[general]</I></FONT><BR>
<FONT SIZE="2"><I>autokill=yes</I></FONT><BR>
<FONT SIZE="2"><I>bindport=4569</I></FONT><BR>
<FONT SIZE="2"><I>bindaddr=0.0.0.0</I></FONT><BR>
<BR>
<FONT SIZE="2"><I>[jonaskellens]</I></FONT><BR>
<FONT SIZE="2"><I>type=friend</I></FONT><BR>
<FONT SIZE="2"><I>host=dynamic</I></FONT><BR>
<FONT SIZE="2"><I>;auth=md5</I></FONT><BR>
<FONT SIZE="2"><I>username=jonaskellens</I></FONT><BR>
<FONT SIZE="2"><I>password=zoiper</I></FONT><BR>
<FONT SIZE="2"><I>callerid="Jonas Kellens" <100></I></FONT><BR>
<FONT SIZE="2"><I>context=intern</I></FONT><BR>
<FONT SIZE="2"><I>disallow=all</I></FONT><BR>
<FONT SIZE="2"><I>allow=gsm</I></FONT><BR>
<FONT SIZE="2"><I>allow=speex</I></FONT><BR>
<FONT SIZE="2"><I>allow=alaw</I></FONT><BR>
<BR>
<BR>
<I><FONT SIZE="2">asterisk*CLI> iax2 reload</FONT></I><BR>
<I><FONT SIZE="2"> == Parsing '/etc/asterisk/iax.conf': Found</FONT></I><BR>
<I><FONT SIZE="2">[Apr 18 15:05:50] NOTICE[4179]: chan_iax2.c:10124 set_config: Ignoring bindport on reload</FONT></I><BR>
<I><FONT SIZE="2">[Apr 18 15:05:50] NOTICE[4179]: chan_iax2.c:10183 set_config: Ignoring bindaddr on reload</FONT></I><BR>
<I><FONT SIZE="2"> == Parsing '/etc/asterisk/users.conf': Found</FONT></I><BR>
<I><FONT SIZE="2"> == Loaded firmware 'iaxy.bin'</FONT></I><BR>
<I><FONT SIZE="2"> == Parsing '/etc/asterisk/iaxprov.conf': Found</FONT></I><BR>
<I><FONT SIZE="2"> -- Loaded provisioning template 'default'</FONT></I><BR>
<I><FONT SIZE="2">asterisk*CLI> iax2 show peers</FONT></I><BR>
<I><FONT SIZE="2">Name/Username Host Mask Port Status </FONT></I><BR>
<I><FONT SIZE="2">jonaskellens/jo (Unspecified) (D) 255.255.255.255 0 Unmonitored</FONT></I><BR>
<I><FONT SIZE="2">1 iax2 peers [0 online, 0 offline, 1 unmonitored]</FONT></I><BR>
<I><FONT SIZE="2"> -- Registered IAX2 'jonaskellens' (UNAUTHENTICATED) at 192.168.4.169:4569</FONT></I><BR>
<I><FONT SIZE="2">[Apr 18 15:06:29] NOTICE[3596]: chan_iax2.c:6406 update_registry: Restricting registration for peer 'jonaskellens' to 60 seconds (requested 3600)</FONT></I><BR>
<BR>
<I><FONT SIZE="2">asterisk*CLI> iax2 show peers</FONT></I><BR>
<I><FONT SIZE="2">Name/Username Host Mask Port Status </FONT></I><BR>
<I><FONT SIZE="2">jonaskellens/jo 192.168.4.169 (D) 255.255.255.255 4569 Unmonitored</FONT></I><BR>
<I><FONT SIZE="2">1 iax2 peers [0 online, 0 offline, 1 unmonitored]</FONT></I><BR>
<BR>
<BR>
So my username always needs to be the same as the one between brackets [] ???<BR>
This is not the case with SIP, but it needs to be like that with IAX ???<BR>
<BR>
I want to understand...<BR>
<BR>
Thanks for your reply !<BR>
<BR>
Jonas.<BR>
<BR>
<BR>
On Sat, 2009-04-18 at 07:41 -0500, Cary Fitch wrote:
<BLOCKQUOTE TYPE=CITE>
<FONT SIZE="2"><FONT COLOR="#000080">Perhaps make </FONT></FONT><I><FONT SIZE="2">[Jonas]: [jonaskellens}</FONT></I><BR>
<BR>
<I><FONT SIZE="2"> </FONT></I><BR>
<BR>
<I><FONT SIZE="2">Cary Fitch</FONT></I><BR>
<BR>
<I><FONT SIZE="2"> </FONT></I><BR>
<BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<DIV ALIGN=center>
<HR>
</DIV>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<B><FONT SIZE="2">From:</FONT></B><FONT SIZE="2">asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] </FONT><B><FONT SIZE="2">On Behalf Of </FONT></B><FONT SIZE="2">jonas kellens</FONT><BR>
<B><FONT SIZE="2">Sent:</FONT></B><FONT SIZE="2"> Saturday, April 18, 2009 7:28 AM</FONT><BR>
<B><FONT SIZE="2">To:</FONT></B><FONT SIZE="2"> asterisk-users@lists.digium.com</FONT><BR>
<B><FONT SIZE="2">Subject:</FONT></B><FONT SIZE="2"> [asterisk-users] NOTICE[]: chan_iax2.c:5686 register_verify: No registration for peer 'jonaskellens' (from 192.168.4.169)</FONT><BR>
<BR>
<BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<BR>
<BR>
The Asterisk CLI gets spammed with the following when I launch the Zoiper-softphone on my laptop :<BR>
<BR>
<I><FONT SIZE="2">...</FONT></I><BR>
<I><FONT SIZE="2">[Apr 18 14:07:23] NOTICE[3221]: chan_iax2.c:5686 register_verify: No registration for peer 'jonaskellens' (from 192.168.4.169)</FONT></I><BR>
<I><FONT SIZE="2">[Apr 18 14:07:23] NOTICE[3228]: chan_iax2.c:5686 register_verify: No registration for peer 'jonaskellens' (from 192.168.4.169)</FONT></I><BR>
<I><FONT SIZE="2">[Apr 18 14:07:23] NOTICE[3222]: chan_iax2.c:5686 register_verify: No registration for peer 'jonaskellens' (from 192.168.4.169)</FONT></I><BR>
<I><FONT SIZE="2">[Apr 18 14:07:23] NOTICE[3226]: chan_iax2.c:5686 register_verify: No registration for peer 'jonaskellens' (from 192.168.4.169)</FONT></I><BR>
<I><FONT SIZE="2">[Apr 18 14:07:23] NOTICE[3230]: chan_iax2.c:5686 register_verify: No registration for peer 'jonaskellens' (from 192.168.4.169)</FONT></I><BR>
<I><FONT SIZE="2">[Apr 18 14:07:23] NOTICE[3224]: chan_iax2.c:5686 register_verify: No registration for peer 'jonaskellens' (from 192.168.4.169)</FONT></I><BR>
<I><FONT SIZE="2">[Apr 18 14:07:23] NOTICE[3223]: chan_iax2.c:5686 register_verify: No registration for peer 'jonaskellens' (from 192.168.4.169)</FONT></I><BR>
<I><FONT SIZE="2">[Apr 18 14:07:23] NOTICE[3225]: chan_iax2.c:5686 register_verify: No registration for peer 'jonaskellens' (from 192.168.4.169)</FONT></I><BR>
<I><FONT SIZE="2">[Apr 18 14:07:23] NOTICE[3227]: chan_iax2.c:5686 register_verify: No registration for peer 'jonaskellens' (from 192.168.4.169)</FONT></I><BR>
<I><FONT SIZE="2">[Apr 18 14:07:23] NOTICE[3229]: chan_iax2.c:5686 register_verify: No registration for peer 'jonaskellens' (from 192.168.4.169)</FONT></I><BR>
<I><FONT SIZE="2">[Apr 18 14:07:23] NOTICE[3221]: chan_iax2.c:5686 register_verify: No registration for peer 'jonaskellens' (from 192.168.4.169)</FONT></I><BR>
<I><FONT SIZE="2">[Apr 18 14:07:23] NOTICE[3228]: chan_iax2.c:5686 register_verify: No registration for peer 'jonaskellens' (from 192.168.4.169)</FONT></I><BR>
<I><FONT SIZE="2">[Apr 18 14:07:23] NOTICE[3222]: chan_iax2.c:5686 register_verify: No registration for peer 'jonaskellens' (from 192.168.4.169)</FONT></I><BR>
<I><FONT SIZE="2">...</FONT></I><BR>
<BR>
My iax.conf-file :<BR>
<BR>
<I><FONT SIZE="2">[root@asterisk asterisk]# cat iax.conf</FONT></I><BR>
<I><FONT SIZE="2">[general]</FONT></I><BR>
<I><FONT SIZE="2">autokill=yes</FONT></I><BR>
<I><FONT SIZE="2">bindport=4569</FONT></I><BR>
<I><FONT SIZE="2">bindaddr=0.0.0.0</FONT></I><BR>
<BR>
<I><FONT SIZE="2">[Jonas]</FONT></I><BR>
<I><FONT SIZE="2">type=friend</FONT></I><BR>
<I><FONT SIZE="2">host=dynamic</FONT></I><BR>
<I><FONT SIZE="2">;auth=md5</FONT></I><BR>
<I><FONT SIZE="2">username=jonaskellens</FONT></I><BR>
<I><FONT SIZE="2">password=zoiper</FONT></I><BR>
<I><FONT SIZE="2">callerid="Jonas Kellens" <100></FONT></I><BR>
<I><FONT SIZE="2">context=intern</FONT></I><BR>
<I><FONT SIZE="2">disallow=all</FONT></I><BR>
<I><FONT SIZE="2">allow=gsm</FONT></I><BR>
<I><FONT SIZE="2">allow=speex</FONT></I><BR>
<I><FONT SIZE="2">allow=alaw</FONT></I><BR>
<BR>
On the CLI :<BR>
<BR>
<I><FONT SIZE="2">Verbosity is at least 20</FONT></I><BR>
<I><FONT SIZE="2">asterisk*CLI> iax2 reload</FONT></I><BR>
<I><FONT SIZE="2"> == Parsing '/etc/asterisk/iax.conf': Found</FONT></I><BR>
<I><FONT SIZE="2">[Apr 18 14:12:49] NOTICE[3502]: chan_iax2.c:10124 set_config: Ignoring bindport on reload</FONT></I><BR>
<I><FONT SIZE="2">[Apr 18 14:12:49] NOTICE[3502]: chan_iax2.c:10183 set_config: Ignoring bindaddr on reload</FONT></I><BR>
<I><FONT SIZE="2"> == Parsing '/etc/asterisk/users.conf': Found</FONT></I><BR>
<I><FONT SIZE="2"> == Loaded firmware 'iaxy.bin'</FONT></I><BR>
<I><FONT SIZE="2"> == Parsing '/etc/asterisk/iaxprov.conf': Found</FONT></I><BR>
<I><FONT SIZE="2"> -- Loaded provisioning template 'default'</FONT></I><BR>
<I><FONT SIZE="2">asterisk*CLI> iax2 show peers</FONT></I><BR>
<I><FONT SIZE="2">Name/Username Host Mask Port Status </FONT></I><BR>
<I><FONT SIZE="2">Jonas/jonaskell (Unspecified) (D) 255.255.255.255 0 Unmonitored</FONT></I><BR>
<I><FONT SIZE="2">1 iax2 peers [0 online, 0 offline, 1 unmonitored]</FONT></I><BR>
<BR>
Why would Asterisk ignore the bindport ???<BR>
<BR>
<I><FONT SIZE="2">[root@asterisk asterisk]# netstat -anup | grep 4569</FONT></I><BR>
<I><FONT SIZE="2">udp 0 0 0.0.0.0:4569 0.0.0.0:* 3097/asterisk </FONT></I><BR>
<BR>
Asterisk is listening on port 4569 on all interfaces (eth0 and eth1).<BR>
<BR>
<BR>
The log of my Zoiper-softphone tells this :<BR>
<BR>
<I><FONT SIZE="2">02:26:33 PM: discover network type : Port restricted NAT</FONT></I><BR>
<BR>
<BR>
I hope there's a solution for this 'problem' ?!<BR>
<BR>
Google sends me to <B><I><A HREF="http://bugs.digium.com/view.php?id=14867">http://bugs.digium.com/view.php?id=14867</A></I></B> where there is no solution...<BR>
<BR>
Jonas. <BR>
<BR>
<BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<PRE>
_______________________________________________
-- Bandwidth and Colocation Provided by <A HREF="http://www.api-digital.com">http://www.api-digital.com</A> --
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
<A HREF="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</A>
</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>