James Freire
2004-Aug-16 08:37 UTC
[Asterisk-Users] Formatting in sip.conf...can you have 2 @ signs for register?
Hi All, I am trying to setup another sip trunk in addition to what I am already using. The sip provider we are using right now gives you your username as your email address. So IE. If my email is james@james.com.... that is my username . Now... When I put this in the sip.conf file I have found that Asterisk is not able to parse it correctly and instantly goes to the email server to authenticate the sip user upon registration Here is the line below in my sip.conf file register => username@theiremailhost.com:password@sipprovider.com THe error is below Aug 16 11:30:05 NOTICE[114695]: chan_sip.c:3922 sip_reg_timeout: Registration for 'john@useremail.com@sip.voipamericas.com' timed out, trying again Aug 16 11:30:06 NOTICE[114695]: chan_sip.c:6575 handle_response: Failed to authenticate on REGISTER to '<sip:john@useremail.com>;tag=as1c528b93' -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20040816/9631fcf1/attachment.htm
Olle E. Johansson
2004-Aug-16 09:54 UTC
[Asterisk-Users] Formatting in sip.conf...can you have 2 @ signs for register?
James Freire wrote:> Hi All, > I am trying to setup another sip trunk in addition to what I am already > using. The sip provider we are using right now gives you your username > as your email address. So IE. If my email is james@james.com.... that is > my username . Now... When I put this in the sip.conf file I have found > that Asterisk is not able to parse it correctly and instantly goes to > the email server to authenticate the sip user upon registration > > Here is the line below in my sip.conf file > > register => username@theiremailhost.com:password@sipprovider.com > > THe error is below > > Aug 16 11:30:05 NOTICE[114695]: chan_sip.c:3922 sip_reg_timeout: > Registration for 'john@useremail.com@sip.voipamericas.com' timed > out, trying again > Aug 16 11:30:06 NOTICE[114695]: chan_sip.c:6575 handle_response: Failed > to authenticate on REGISTER to > '<sip:john@useremail.com>;tag=as1c528b93' >That's obviously an error. Please add it to the bug tracker and we'll solve it. /O
James Freire
2004-Aug-16 10:58 UTC
[Asterisk-Users] Formatting in sip.conf...can you have 2 @ signs for register?
Hi Olle, I submitted the bug into the bugtracker. It is number 0002258 Thanks, James -----Original Message----- From: asterisk-users-admin@lists.digium.com [mailto:asterisk-users-admin@lists.digium.com]On Behalf Of Olle E. Johansson Sent: Monday, August 16, 2004 12:54 PM To: asterisk-users@lists.digium.com Subject: Re: [Asterisk-Users] Formatting in sip.conf...can you have 2 @ signs for register? James Freire wrote:> Hi All, > I am trying to setup another sip trunk in addition to what I am already > using. The sip provider we are using right now gives you your username > as your email address. So IE. If my email is james@james.com.... that is > my username . Now... When I put this in the sip.conf file I have found > that Asterisk is not able to parse it correctly and instantly goes to > the email server to authenticate the sip user upon registration > > Here is the line below in my sip.conf file > > register => username@theiremailhost.com:password@sipprovider.com > > THe error is below > > Aug 16 11:30:05 NOTICE[114695]: chan_sip.c:3922 sip_reg_timeout: > Registration for 'john@useremail.com@sip.voipamericas.com' timed > out, trying again > Aug 16 11:30:06 NOTICE[114695]: chan_sip.c:6575 handle_response: Failed > to authenticate on REGISTER to > '<sip:john@useremail.com>;tag=as1c528b93' >That's obviously an error. Please add it to the bug tracker and we'll solve it. /O _______________________________________________ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Sean Cheesman
2004-Aug-16 11:31 UTC
[Asterisk-Users] Formatting in sip.conf...can you have 2 @ signs for register?
It might make sense for * to parse the register line from right to left. Then it wouldn't be an issue. Or am I missing another issue that would arise? -----Original Message----- From: asterisk-users-admin@lists.digium.com [mailto:asterisk-users-admin@lists.digium.com] On Behalf Of Greg Hill Sent: Monday, August 16, 2004 1:21 PM To: asterisk-users@lists.digium.com Subject: Re: [Asterisk-Users] Formatting in sip.conf...can you have 2 @ signs for register? On Mon, 16 Aug 2004, Olle E. Johansson wrote:> James Freire wrote: > > > Hi All, > > I am trying to setup another sip trunk in addition to what I am > > already using. The sip provider we are using right now gives you > > your username as your email address. So IE. If my email is > > james@james.com.... that is my username . Now... When I put this in > > the sip.conf file I have found that Asterisk is not able to parse it> > correctly and instantly goes to the email server to authenticate the> > sip user upon registration > > > > Here is the line below in my sip.conf file > > > > register => username@theiremailhost.com:password@sipprovider.com > > > > THe error is below > > > > Aug 16 11:30:05 NOTICE[114695]: chan_sip.c:3922 sip_reg_timeout: > > Registration for 'john@useremail.com@sip.voipamericas.com' timed > > out, trying again Aug 16 11:30:06 NOTICE[114695]: chan_sip.c:6575 > > handle_response: Failed to authenticate on REGISTER to > > '<sip:john@useremail.com>;tag=as1c528b93' > > > > That's obviously an error. Please add it to the bug tracker and we'll > solve it.I disagree.. although the sip rfc (I'm looking at 3261, June 2002) doesn't specifically state that the user field cannot have the @ character in it, the language there suggests that '@' is supposed to be the separator between the user string and the host string. In addition, it is stated that the sip URI scheme follows RFC 2396, which states that all of [;/?:@&=+$,] are reserved characters. See section 2.2: The "reserved" syntax class above refers to those characters that are allowed within a URI, but which may not be allowed within a particular component of the generic URI syntax; they are used as delimiters of the components described in Section 3. I think Asterisk's behavior is correct and the syntax 'john@useremail.com@sip.voipamericas.com' is debateable at best. It's possible that replacing the @ in the intended user portion with %40 may allow it to slip through Asterisk and get un-escaped by the server on the far end.. Anyway, the issue may warrant some more dialogue before declaring it a defect. Greg _______________________________________________ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users