[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
Re: [asterisk-users] howto configure an asterisk to send credentials in a REGISTER message to another asterisk
Inter-* registry is done with iax.conf, not sip.conf. sip is for phones/sip-lines. -Original Message- From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Imanol Pardavila Sent: Thursday, January 29, 2009 10:01 AM To: asterisk-users@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
Re: [asterisk-users] howto configure an asterisk to send credentials in a REGISTER message to another asterisk
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-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Imanol Pardavila Sent: Thursday, January 29, 2009 10:01 AM To: asterisk-users@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
Re: [asterisk-users] howto configure an asterisk to send credentials in a REGISTER message to another asterisk
If you are connecting 2 Asterisk boxes and you are setting them both up then use IAX (Intra Asterisk Exchange) instead of SIP. IAX does not pass off the packets to RTP and should fix some of the firewall problems people get. As far as credential passing I am unsure if it will help that. So like mentioned below set up a connection in iax.conf on both ends. There is a chapter in the O'Reily Asterisk the future of telephony book that talks you through an Asterisk to Asterisk connection using IAX. Is there a specific reason you want to use SIP/RTP? Brent Imanol Pardavila wrote: 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-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Imanol Pardavila Sent: Thursday, January 29, 2009 10:01 AM To: asterisk-users@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 -- Brent T. Vrieze CIM Automation Softare Engineer 507-216-0465 ___ -- 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
Re: [asterisk-users] howto configure an asterisk to send credentials in a REGISTER message to another asterisk
On Thu, 2009-01-29 at 10:15 -0600, Danny Nicholas wrote: Inter-* registry is done with iax.conf, not sip.conf. sip is for phones/sip-lines. That's not quite accurate. Inter-asterisk registrations *can* be done with either the IAX2 or the SIP protocols. -- Jared Smith Digium, Inc. | Training Manager ___ -- 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
Re: [asterisk-users] howto configure an asterisk to send credentials in a REGISTER message to another asterisk
Paste your register lines (hide pass) 2009/1/29 Imanol Pardavila imanol.pardav...@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-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Imanol Pardavila Sent: Thursday, January 29, 2009 10:01 AM To: asterisk-users@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
Re: [asterisk-users] howto configure an asterisk to send credentials in a REGISTER message to another asterisk
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:0...@ast2.domain.com;tag=as715628d7 To: sip:0...@ast2.domain.com Call-ID: 13106f3936f01d1c103d5f5230278...@aaa.bbb.ccc.ddd CSeq: 133 REGISTER User-Agent: Asterisk PBX Max-Forwards: 70 Expires: 120 Contact: sip:s...@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:0...@ast2.domain.com;tag=as715628d7 To: sip:0...@ast2.domain.com Call-ID: 13106f3936f01d1c103d5f5230278...@aaa.bbb.ccc.ddd CSeq: 133 REGISTER User-Agent: Asterisk PBX Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY Contact: sip:0...@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:0...@ast2.domain.com;tag=as715628d7 To: sip:0...@ast2.domain.com;tag=as5ccb43ac Call-ID: 13106f3936f01d1c103d5f5230278...@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.pardav...@ibercom.com mailto:imanol.pardav...@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-boun...@lists.digium.com mailto:asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Imanol Pardavila Sent: Thursday, January 29, 2009 10:01 AM To: asterisk-users@lists.digium.com mailto:asterisk-users@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 ___ -- 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
Re: [asterisk-users] howto configure an asterisk to send credentials in a REGISTER message to another asterisk
You are repeating yourself, paste here sip.conf of each server with register lines AND peer configurations. 2009/1/29 Imanol Pardavila imanol.pardav...@ibercom.com 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:0...@ast2.domain.com sip%3a0...@ast2.domain.com ;tag=as715628d7 To: sip:0...@ast2.domain.com sip%3a0...@ast2.domain.com Call-ID: 13106f3936f01d1c103d5f5230278...@aaa.bbb.ccc.ddd CSeq: 133 REGISTER User-Agent: Asterisk PBX Max-Forwards: 70 Expires: 120 Contact: sip:s...@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:0...@ast2.domain.com sip%3a0...@ast2.domain.com ;tag=as715628d7 To: sip:0...@ast2.domain.com sip%3a0...@ast2.domain.com Call-ID: 13106f3936f01d1c103d5f5230278...@aaa.bbb.ccc.ddd CSeq: 133 REGISTER User-Agent: Asterisk PBX Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY Contact: sip:0...@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:0...@ast2.domain.com sip%3a0...@ast2.domain.com ;tag=as715628d7 To: sip:0...@ast2.domain.com sip%3a0...@ast2.domain.com;tag=as5ccb43ac Call-ID: 13106f3936f01d1c103d5f5230278...@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.pardav...@ibercom.com mailto:imanol.pardav...@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-boun...@lists.digium.com mailto:asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Imanol Pardavila Sent: Thursday, January 29, 2009 10:01 AM To: asterisk-users@lists.digium.com mailto:asterisk-users@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
Re: [asterisk-users] howto configure an asterisk to send credentials in a REGISTER message to another asterisk
Please check the full syntax for the register= option in sip.conf. You will find it in the section named OUTBOUND SIP REGISTRATIONS of sip.conf.samples in your source code distribution or here for release 1.4: http://svn.digium.com/view/asterisk/branches/1.4/configs/sip.conf.sample?view=co register = user[:secret[:authuse...@host[:port][/extension] Reading documentation is a good thing (TM). /O ___ -- 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