try adding a "username" setting in your friends: auth is "username/key", not only "key".<br>Keep in mind that "username" in peers and friends is valid only for "outbound",
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, "username" is for "peers", not for "users". So when used in a "friend", username is used only when that "friend" 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 ; <=========== 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 => _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 ; <=========== 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 => _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 <<a href="mailto:andrutto@poczta.fm">
andrutto@poczta.fm</a>>:</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 => _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 => _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! >>> <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> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users
</a><br></blockquote></div><br>