Since you're not registering either server with the other, where is the call going to pick up the required username and password to connect to the other server?<br><br><div class="gmail_quote">On Wed, Dec 16, 2009 at 12:09 AM, Landy Landy <span dir="ltr"><<a href="mailto:landysaccount@yahoo.com">landysaccount@yahoo.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I'm trying to get two server communicate with each other and call from one to the other but, I'm having a lot of problems.<br>
<br>
I tried to create a iax trunk between the two:<br>
At the server:<br>
[client]<br>
type=friend<br>
username=asterisk2<br>
authuser=asterisk2<br>
fromuser=asterisk2<br>
secret=sssssss<br>
auth=md5<br>
context=from_client<br>
;peercontext=from_asterisk<br>
host=172.16.0.11<br>
trunk=yes<br>
qualify=yes<br>
<br>
iax2 show peers<br>
Name/Username Host Mask Port Status<br>
client/asterisk 172.16.0.11 (S) 255.255.255.255 4569 (T) (E) OK (3 ms)<br>
1 iax2 peers [1 online, 0 offline, 0 unmonitored]<br>
<br>
extensions.conf<br>
[to_client]<br>
exten => _3XX,1,Verbose("..... To Asterisk2 Server .....")<br>
exten => _3XX,n,Dial(IAX2/${EXTEN}@client)<br>
exten => _3XX,n,Hangup()<br>
<br>
[from_client]<br>
include => local-dial<br>
<br>
<br>
<br>
<br>
At the client:<br>
[server]<br>
type=friend<br>
host=172.16.0.3<br>
username=asterisk<br>
authuser=asterisk<br>
fromuser=asterisk<br>
secret=xxxxxxx<br>
context=from_server<br>
trunk=yes<br>
auth=md5<br>
qualify=yes<br>
<br>
iax2 show peers<br>
Name/Username Host Mask Port Status<br>
server/asterisk 172.16.0.3 (S) 255.255.255.255 4569 (T) (E) OK (3 ms)<br>
1 iax2 peers [1 online, 0 offline, 0 unmonitored]<br>
<br>
extensions.conf<br>
<br>
[from_server]<br>
include => local-dial<br>
<br>
[to_server]<br>
exten => _5XXX,1,Verbose("..... Trying to contact ${EXTEN:1} @ asterisk .....")<br>
exten => _5XXX,n,Dial(IAX2/${EXTEN}@server)<br>
exten => _5XXX,n,Hangup<br>
<br>
According to some reading, I do NOT need to register neither one.<br>
<br>
When I try to call from one end to the other I get:<br>
<br>
[Dec 15 03:06:04] NOTICE[4265]: chan_iax2.c:10338 socket_process: Host 172.16.0.3 failed to authenticate as 300<br>
<br>
<br>
Please help.<br>
<br>
Thanks.<br>
<div><div></div><div class="h5"><br>
<br>
<br>
<br>
_______________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.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" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>David Cunningham<br>Voisonics<br>IVR development, VOIP consultancy<br><a href="http://voisonics.com/">http://voisonics.com/</a><br>US toll-free: +1 888 842 2720<br>
UK: +44 (0) 20 3411 5024<br>Australia: +61 (0) 2 9037 2180<br><br>