[asterisk-users] howto configure an asterisk to send credentials in a REGISTER message to another asterisk
Imanol Pardavila
imanol.pardavila at ibercom.com
Thu Jan 29 12:00:02 CST 2009
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:0021 at ast2.domain.com>;tag=as715628d7
To: <sip:0021 at ast2.domain.com>
Call-ID: 13106f3936f01d1c103d5f5230278d98 at AAA.BBB.CCC.DDD
CSeq: 133 REGISTER
User-Agent: Asterisk PBX
Max-Forwards: 70
Expires: 120
Contact: <sip:s at AAA.BBB.CCC.DDD: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:0021 at ast2.domain.com>;tag=as715628d7
To: <sip:0021 at ast2.domain.com>
Call-ID: 13106f3936f01d1c103d5f5230278d98 at AAA.BBB.CCC.DDD
CSeq: 133 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Contact: <sip:0021 at EEE.FFF.GGG.HHH>
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:0021 at ast2.domain.com>;tag=as715628d7
To: <sip:0021 at ast2.domain.com>;tag=as5ccb43ac
Call-ID: 13106f3936f01d1c103d5f5230278d98 at AAA.BBB.CCC.DDD
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 <imanol.pardavila at ibercom.com
> <mailto:imanol.pardavila at ibercom.com>>
>
> 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: asterisk-users-bounces at lists.digium.com
> <mailto:asterisk-users-bounces at lists.digium.com>
> > [mailto:asterisk-users-bounces at lists.digium.com
> <mailto:asterisk-users-bounces at lists.digium.com>] On Behalf Of Imanol
> > Pardavila
> > Sent: Thursday, January 29, 2009 10:01 AM
> > To: asterisk-users at lists.digium.com
> <mailto:asterisk-users at lists.digium.com>
> > 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
More information about the asterisk-users
mailing list