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