try adding a &quot;username&quot; setting in your friends: auth is &quot;username/key&quot;, not only &quot;key&quot;.<br>Keep in mind that &quot;username&quot; in peers and friends is valid only for &quot;outbound&quot;, 
i.e. it is used for outbound authentication, no inbound. When you receive a call, the incoming username is matched with the [.....] part of the peer/friend definition.<br>In other words, &quot;username&quot; is for &quot;peers&quot;, not for &quot;users&quot;. So when used in a &quot;friend&quot;, username is used only when that &quot;friend&quot; is acting as a peer, 
i.e. when you're calling it.<br><br>Be sure also to put private and public keys in correct directory (/var/lib/asterisk/keys, as I remember).<br><br>In your conf:<br><br>iax.conf on box 1<br><br>[asterisk2]<br><br>type=friend
<br>username=asterisk1&nbsp;&nbsp; ; &lt;=========== add this: your outbound username<br>context=main<br>auth=rsa<br>inkey=<a href="http://asterisk2.mydomain.com">asterisk2.mydomain.com</a><br>outkey=<a href="http://asterisk1.mydomain.com">
asterisk1.mydomain.com</a><br>host=<a href="http://asterisk2.mydomain.com">asterisk2.mydomain.com</a><br><br>extensions.conf looks like this:<br><br>exten =&gt; _XX.,1,Dial(IAX2/asterisk2/${EXTEN})<br><br>iax on box 2<br>
<br>[asterisk1]<br><br>type=friend<br>context=main<br>username=asterisk2 &nbsp; ; &lt;=========== add this: your outbound username<br>
auth=rsa<br>inkey=<a href="http://asterisk1.mydomain.com">asterisk1.mydomain.com</a><br>outkey=<a href="http://asterisk2.mydomain.com">asterisk2.mydomain.com</a><br>host=<a href="http://asterisk1.mydomain.com">asterisk1.mydomain.com
</a><br><br>extensions.conf looks like this<br><br>exten =&gt; _XX.,1,Dial(IAX2/asterisk1/${EXTEN})<br><br><br>Hope this helps<br><br><div><span class="gmail_quote">05 Sep 2006 20:37:40 +0200, andrutto &lt;<a href="mailto:andrutto@poczta.fm">
andrutto@poczta.fm</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi<br><br>I am tyring to connect two * boxes over IAX with rsa, but I am having a slight problem. It just doesn't work. My configuration looks like this:
<br><br>iax.conf on box 1<br><br>[asterisk2]<br><br>type=friend<br>context=main<br>auth=rsa<br>inkey=<a href="http://asterisk2.mydomain.com">asterisk2.mydomain.com</a><br>outkey=<a href="http://asterisk1.mydomain.com">asterisk1.mydomain.com
</a><br>host=<a href="http://asterisk2.mydomain.com">asterisk2.mydomain.com</a><br><br>extensions.conf looks like this:<br><br>exten =&gt; _XX.,1,Dial(IAX2/asterisk2/${EXTEN})<br><br>iax on box 2<br><br>[asterisk1]<br><br>
type=friend<br>context=main<br>auth=rsa<br>inkey=<a href="http://asterisk1.mydomain.com">asterisk1.mydomain.com</a><br>outkey=<a href="http://asterisk2.mydomain.com">asterisk2.mydomain.com</a><br>host=<a href="http://asterisk1.mydomain.com">
asterisk1.mydomain.com</a><br><br>extensions.conf looks like this<br><br>exten =&gt; _XX.,1,Dial(IAX2/asterisk1/${EXTEN})<br><br>I generated the key with astgenkey -n <a href="http://asterisk1.mydoamin.com">asterisk1.mydoamin.com
</a> on box 1 and astgenkey -n <a href="http://asterisk2.mydomain.com">asterisk2.mydomain.com</a> on box 2. I have also exchanged the .pub files between the servers.<br><br>When I try to call, I can see on a console that the call is not authenticated.
<br><br>I know I did something wrong (but what?). Is it possible to have rsa authentication with type=friend? Any help would be appreciated.<br><br>Cheers<br><br>Andrutto<br><br><br><br><br><br>----------------------------------------------------------------------
<br>Zobacz samochody przyszlosci! &gt;&gt;&gt; <a href="http://link.interia.pl/f199d">http://link.interia.pl/f199d</a><br><br>_______________________________________________<br>--Bandwidth and Colocation provided by <a href="http://Easynews.com">
Easynews.com</a> --<br><br>asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:<br>&nbsp;&nbsp; <a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users
</a><br></blockquote></div><br>