You are repeating yourself, paste here sip.conf of each server with register lines AND peer configurations.<br><br><div class="gmail_quote">2009/1/29 Imanol Pardavila <span dir="ltr"><<a href="mailto:imanol.pardavila@ibercom.com">imanol.pardavila@ibercom.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>
The SIP messages flow is this:<br>
<br>
###################################<br>
AAA.BBB.CCC.DDD: Asterisk 1 IP address<br>
EEE.FFF.GGG.HHH: Asterisk 2 IP address<br>
###################################<br>
<br>
REGISTER sip:ast2.domain.comSIP/2.0<br>
Via: SIP/2.0/UDP AAA.BBB.CCC.DDD:19646;branch=z9hG4bK0939cc12;rport<br>
From: <<a href="mailto:sip%3A0021@ast2.domain.com">sip:0021@ast2.domain.com</a>>;tag=as715628d7<br>
To: <<a href="mailto:sip%3A0021@ast2.domain.com">sip:0021@ast2.domain.com</a>><br>
Call-ID: 13106f3936f01d1c103d5f5230278d98@AAA.BBB.CCC.DDD<br>
CSeq: 133 REGISTER<br>
User-Agent: Asterisk PBX<br>
Max-Forwards: 70<br>
Expires: 120<br>
Contact: <sip:s@AAA.BBB.CCC.DDD:19646><br>
Event: registration<br>
Content-Length: 0<br>
<br>
Using latest REGISTER request as basis request<br>
Sending to AAA.BBB.CCC.DDD : 19646 (NAT)<br>
Transmitting (NAT) to AAA.BBB.CCC.DDD:19646:<br>
SIP/2.0 100 Trying<br>
Via: SIP/2.0/UDP<br>
AAA.BBB.CCC.DDD:19646;branch=z9hG4bK0939cc12;received=AAA.BBB.CCC.DDD;rport=19646<br>
From: <<a href="mailto:sip%3A0021@ast2.domain.com">sip:0021@ast2.domain.com</a>>;tag=as715628d7<br>
To: <<a href="mailto:sip%3A0021@ast2.domain.com">sip:0021@ast2.domain.com</a>><br>
Call-ID: 13106f3936f01d1c103d5f5230278d98@AAA.BBB.CCC.DDD<br>
CSeq: 133 REGISTER<br>
User-Agent: Asterisk PBX<br>
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY<br>
Contact: <sip:0021@EEE.FFF.GGG.HHH><br>
Content-Length: 0<br>
<br>
Transmitting (NAT) to AAA.BBB.CCC.DDD:19646:<br>
SIP/2.0 401 Unauthorized<br>
Via: SIP/2.0/UDP<br>
AAA.BBB.CCC.DDD:19646;branch=z9hG4bK0939cc12;received=AAA.BBB.CCC.DDD;rport=19646<br>
From: <<a href="mailto:sip%3A0021@ast2.domain.com">sip:0021@ast2.domain.com</a>>;tag=as715628d7<br>
To: <<a href="mailto:sip%3A0021@ast2.domain.com">sip:0021@ast2.domain.com</a>>;tag=as5ccb43ac<br>
Call-ID: 13106f3936f01d1c103d5f5230278d98@AAA.BBB.CCC.DDD<br>
CSeq: 133 REGISTER<br>
User-Agent: Asterisk PBX<br>
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY<br>
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="7294c1d1"<br>
ontent-Length: 0D<br>
<br>
<br>
Asterisk 1 sends an REGISTER without credentials, and Asterisk 2 replies<br>
with a 401 message (with Digest algorithm, realm and nonce).<br>
I want to configure the Asterisk 1 in order to send REGISTER with<br>
credentials.<br>
<br>
Thanks<br>
Regards<br>
<br>
<br>
Grygoriy Dobrovolskyy escribió:<br>
> Paste your register lines (hide pass)<br>
><br>
> 2009/1/29 Imanol Pardavila <<a href="mailto:imanol.pardavila@ibercom.com">imanol.pardavila@ibercom.com</a><br>
> <mailto:<a href="mailto:imanol.pardavila@ibercom.com">imanol.pardavila@ibercom.com</a>>><br>
><br>
> I want to establish a trunk SIP between Asterisk 1 and Asterisk 2,<br>
> using<br>
> a sip account (Asterisk 1 acting as a "conventional" sip user).<br>
> Thanks<br>
> Regards<br>
><br>
><br>
> Danny Nicholas escribió:<br>
> > Inter-* registry is done with iax.conf, not sip.conf. sip is for<br>
> > phones/sip-lines.<br>
> ><br>
> > -----Original Message-----<br>
> > From: <a href="mailto:asterisk-users-bounces@lists.digium.com">asterisk-users-bounces@lists.digium.com</a><br>
> <mailto:<a href="mailto:asterisk-users-bounces@lists.digium.com">asterisk-users-bounces@lists.digium.com</a>><br>
> > [mailto:<a href="mailto:asterisk-users-bounces@lists.digium.com">asterisk-users-bounces@lists.digium.com</a><br>
> <mailto:<a href="mailto:asterisk-users-bounces@lists.digium.com">asterisk-users-bounces@lists.digium.com</a>>] On Behalf Of Imanol<br>
> > Pardavila<br>
> > Sent: Thursday, January 29, 2009 10:01 AM<br>
> > To: <a href="mailto:asterisk-users@lists.digium.com">asterisk-users@lists.digium.com</a><br>
> <mailto:<a href="mailto:asterisk-users@lists.digium.com">asterisk-users@lists.digium.com</a>><br>
> > Subject: [asterisk-users] howto configure an asterisk to send<br>
> credentials in<br>
> > a REGISTER message to another asterisk<br>
> ><br>
> > Hi,<br>
> > I am trying to register an asterisk (Asterisk 1) against another one<br>
> > (Asterisk 2). My problem is that the REGISTER message goes without<br>
> > credentials and the Asterisk 2 send a 401 message to the Asterisk 1.<br>
> > How can I configure Asterisk 1 to force it to send credentials?<br>
> I have<br>
> > tried setting Asterisk 2's IP in the "realm" field of Asterisk's 1<br>
> > sip.conf, but it doesn`t work.<br>
> > Any ideas?<br>
> > Thanks<br>
> > Regards<br>
> ><br>
> ><br>
> ><br>
> > _______________________________________________<br>
> > -- Bandwidth and Colocation Provided by<br>
> <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>
> ><br>
> ><br>
> > _______________________________________________<br>
> > -- Bandwidth and Colocation Provided by<br>
> <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>
> ><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>
><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>
<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>
</blockquote></div><br>