<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>Nhadie<BR>
Can you copy and paste your sip.conf settings for those two servers?? i think there is a problem with your settings.. <BR>
regards<BR>
Tarek Sawah<BR>
<BR><BR> <BR>
<DIV>
<P align=center> </P><A href="http://www.tareksawah.com/"></A></DIV><BR><BR>
<HR id=stopSpelling>
> Date: Tue, 26 Aug 2008 09:00:52 +0800<BR>> From: nhadie@tbgi.net.ph<BR>> To: asterisk-users@lists.digium.com<BR>> Subject: Re: [asterisk-users] sip peering between 2 asterisk<BR>> <BR>> Hi Tariq,<BR>> <BR>> Tnx for your reply. Tried adding the deny/permit but still gave me the <BR>> same result.<BR>> I still have these error,<BR>> <BR>> handle_response_invite: Failed to authenticate on INVITE<BR>> <BR>> regards,<BR>> nhadie<BR>> <BR>> Tariq .. wrote:<BR>> > im not sure this will help but i did the same settings you mentioned and <BR>> > added my lines and it worked..<BR>> > you need some sort of authentication between the Asterisk boxes.. and <BR>> > the easiest way to do it is to do it like this<BR>> > <BR>> > [asterisk-2]<BR>> > type=peer<BR>> > host 10.20.30.2 *** i will assume that you have the "=" sign after the <BR>> > host<BR>> > context=from-remote-asterisk<BR>> > insecure=port,invite<BR>> > deny=0.0.0.0/0.0.0.0<BR>> > permit=10.20.30.2/0.0.0.0<BR>> > <BR>> > and do the same on the other server and you are done.. test it and let <BR>> > me know how did it go ...<BR>> > salam<BR>> > Tarek Sawah<BR>> > <BR>> > <BR>> > <BR>> > <BR>> > <http://www.tareksawah.com/><BR>> > <BR>> > <BR>> > ------------------------------------------------------------------------<BR>> > > Date: Mon, 25 Aug 2008 21:06:51 +0800<BR>> > > From: nhadie@tbgi.net.ph<BR>> > > To: asterisk-users@lists.digium.com<BR>> > > Subject: [asterisk-users] sip peering between 2 asterisk<BR>> > ><BR>> > > Hi,<BR>> > ><BR>> > > I have 2 asterisk on 2 separate location:<BR>> > ><BR>> > > sip.conf of asterisk-1<BR>> > ><BR>> > > [asterisk-2]<BR>> > > type=peer<BR>> > > host 10.20.30.2<BR>> > > context=from-remote-asterisk<BR>> > > insecure=port,invite<BR>> > ><BR>> > > sip.conf of asterisk-2<BR>> > ><BR>> > > [asterisk-1]<BR>> > > type=peer<BR>> > > host 10.20.30.1<BR>> > > context=from-remote-asterisk<BR>> > > insecure=port,invite<BR>> > ><BR>> > > extensions.conf on asterisk-1<BR>> > ><BR>> > > [from-remote-asterisk]<BR>> > > exten => _1XXXXX,1,Dial(SIP/${EXTEN})<BR>> > > exten => _1XXXXX,n,Hangup<BR>> > ><BR>> > > extensions.conf on asterisk-2<BR>> > ><BR>> > > [from-remote-asterisk]<BR>> > > exten => _1XXXXX,1,Dial(SIP/${EXTEN})<BR>> > > exten => _1XXXXX,n,Hangup<BR>> > ><BR>> > ><BR>> > > when i am registered on asterisk-1 i called an extension on asterisk-2,<BR>> > > this is what happens;<BR>> > ><BR>> > > ip phone --INVITE--> asterisk-1<BR>> > > asterisk-1 --407 Proxy Authentication Required--> ip phone<BR>> > > ip phone --ACK--> asterisk-1<BR>> > > ip phone --INVITE--> asterisk-1<BR>> > > asterisk-1 --Trying--> ip phone<BR>> > ><BR>> > > since the extension is on asterisk-2, asterisk -1 will will send invite<BR>> > > to asterisk-2<BR>> > ><BR>> > > asterisk-1 --INVIITE--> asterisk-2<BR>> > > asterisk-2 --407 Proxy Authentication Required--> asterisk-1<BR>> > > asterisk-1 --ACK--> asterisk-2<BR>> > > asterisk-1 --Forbidden--> ip phone (this part i don't get, after sending<BR>> > > ACK to asterisk-2 it suddenly send Forbidden to IP phone)<BR>> > ><BR>> > > it seems like, asterisk-2 still trying to authenticate the IP phone even<BR>> > > though it was already authenticated on asterisk-1.<BR>> > ><BR>> > > on asterisk-1 this is a NOTICE on the console:<BR>> > ><BR>> > > [Aug 25 21:00:30] -- Called 100200@asterisk-2<BR>> > > [Aug 25 21:00:30] NOTICE[840]: chan_sip.c:12322 handle_response_invite:<BR>> > > Failed to authenticate on INVITE<BR>> > ><BR>> > > what could i be doing wrong? having insecure=port,invite i think should<BR>> > > not authenticate calls from the other asterisk anymore, at least that's<BR>> > > how i understand it.<BR>> > ><BR>> > > regards,<BR>> > > nhadie<BR>> > ><BR>> > ><BR>> > ><BR>> > ><BR>> > > _______________________________________________<BR>> > > -- Bandwidth and Colocation Provided by http://www.api-digital.com --<BR>> > ><BR>> > > AstriCon 2008 - September 22 - 25 Phoenix, Arizona<BR>> > > Register Now: http://www.astricon.net<BR>> > ><BR>> > > asterisk-users mailing list<BR>> > > To UNSUBSCRIBE or update options visit:<BR>> > > http://lists.digium.com/mailman/listinfo/asterisk-users<BR>> > <BR>> > ------------------------------------------------------------------------<BR>> > Be the filmmaker you always wanted to be—learn how to burn a DVD with <BR>> > Windows®. Make your smash hit <BR>> > <http://clk.atdmt.com/MRT/go/108588797/direct/01/><BR>> > <BR>> > <BR>> > ------------------------------------------------------------------------<BR>> > <BR>> > _______________________________________________<BR>> > -- Bandwidth and Colocation Provided by http://www.api-digital.com --<BR>> > <BR>> > AstriCon 2008 - September 22 - 25 Phoenix, Arizona<BR>> > Register Now: http://www.astricon.net<BR>> > <BR>> > asterisk-users mailing list<BR>> > To UNSUBSCRIBE or update options visit:<BR>> > http://lists.digium.com/mailman/listinfo/asterisk-users<BR>> <BR>> _______________________________________________<BR>> -- Bandwidth and Colocation Provided by http://www.api-digital.com --<BR>> <BR>> AstriCon 2008 - September 22 - 25 Phoenix, Arizona<BR>> Register Now: http://www.astricon.net<BR>> <BR>> asterisk-users mailing list<BR>> To UNSUBSCRIBE or update options visit:<BR>> http://lists.digium.com/mailman/listinfo/asterisk-users<BR><br /><hr />Talk to your Yahoo! Friends via Windows Live Messenger. <a href='http://www.windowslive.com/explore/messenger?ocid=TXT_TAGLM_WL_messenger_yahoo_082008' target='_new'>Find Out How</a></body>
</html>