Hi, my ATA has two phones attached and the possibility to set different accounts. I put two account of my asterisk server, however, it is able to call only with the second one in order to the sip.conf and the first it gives me 403. And idea how to solve it? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070909/945ca757/attachment.htm
Am Sonntag, den 09.09.2007, 20:16 +0200 schrieb Il Neofita:> Hi, > my ATA has two phones attached and the possibility to set different > accounts. > I put two account of my asterisk server, however, it is able to call > only with the second one in order to the sip.conf and the first it > gives me 403. > And idea how to solve it?Well, it seems there are differences between those accounts then. You might want to post your sip.conf, and -if that is possible- the ATA conf file; or at least a writedown of the configuration there. If those are not the source of trouble, _I_ probably would switch the accounts in the ATA (port A versus port B) and try if the problem sticks with the port or with the account. I would also google if there are known problems with my ATA, look if a newer firmware is available, if there are informative messages that are worth a verbatim quote, and get another bottle of beer to keep the sunday relaxation at a proper level. BR Anselm
On 9/9/07, Anselm Martin Hoffmeister <anselm at hoffmeister-online.de> wrote:> > Am Sonntag, den 09.09.2007, 20:16 +0200 schrieb Il Neofita: > > Well, it seems there are differences between those accounts then. > > You might want to post your sip.conf, and -if that is possible- the ATA > conf file; or at least a writedown of the configuration there.First of all, thank you for you reply The ATA is the Fritz!Box and I tried with different FW version but I have the same behaviour this is part of the sip.conf [180] type=peer username=180 secret=aaaaaa callerid=First<180> canreinvite = yes host = dynamic dtmfmode = rfc2833 qualify = yes nat = yes context = mycont disallow = all allow = g726 allow = g723 allow = ulaw allow = alaw allow = g729 allow = gsm [181] type=peer username=181 secret=bbbbbb callerid=Second<181> canreinvite = yes host = dynamic dtmfmode = rfc2833 qualify = yes nat = yes context = mycont disallow = all allow = g726 allow = g723 allow = ulaw allow = alaw allow = g729 allow = gsm If those are not the source of trouble, _I_ probably would switch the> accounts in the ATA (port A versus port B) and try if the problem sticks > with the port or with the account.I tried to switch the account for the two ports but what it is important is only the order in the sip.conf I would also google if there are> known problems with my ATA, look if a newer firmware is available, if > there are informative messages that are worth a verbatim quote, and get > another bottle of beer to keep the sunday relaxation at a proper level.I found some information in german and I do not know it -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070910/09d9eb08/attachment.htm
Am Montag, den 10.09.2007, 05:14 +0200 schrieb Il Neofita:> On 9/9/07, Anselm Martin Hoffmeister <anselm at hoffmeister-online.de> > wrote: > Am Sonntag, den 09.09.2007, 20:16 +0200 schrieb Il Neofita: > > Well, it seems there are differences between those accounts > then. > > You might want to post your sip.conf, and -if that is > possible- the ATA > conf file; or at least a writedown of the configuration there. > > First of all, thank you for you reply > The ATA is the Fritz!Box and I tried with different FW version but I > have the same behaviourI have been using FritzBoxes for quite a while, and have not found such strange bugs - except after a Firmware Upgrade. It seems after some upgrades you need to do a "factory reset" (via the web interface) and enter your data again, else they behave stupidly.> this is part of the sip.conf > [180] > type=peer > username=180 > secret=aaaaaa > callerid=First<180> > canreinvite = yes > host = dynamic > dtmfmode = rfc2833 > qualify = yes > nat = yes > context = mycont > disallow = all > allow = g726 > allow = g723 > allow = ulaw > allow = alaw > allow = g729 > allow = gsm > > [181] > type=peer > username=181 > secret=bbbbbb > callerid=Second<181> > canreinvite = yes > host = dynamic > dtmfmode = rfc2833 > qualify = yes > nat = yes > context = mycont > disallow = all > allow = g726 > allow = g723 > allow = ulaw > allow = alaw > allow = g729 > allow = gsmLooks pretty OK to me. Just a stupid idea: Do you have a [general] section before those two? And then, I use type=friend, not type=peer, that _might_ make a difference in how asterisk matches sip.conf contexts to registered clients. 8<==== From my sip.conf: [sip501] mailbox=01 callerid=501 type=friend username=sip501 secret=lk1j2eu89 context=sipclient host=dynamic nat=yes disallow=all allow=alaw allow=gsm allow=ulaw [sip502] mailbox=02 callerid=502 type=friend username=sip502 secret=1092jd0 context=sipclient host=dynamic nat=yes disallow=all allow=alaw allow=gsm allow=ulaw =====>8 Note: Those two accounts belong to the same FritzBox.> I tried to switch the account for the two ports but what it is > important is only the order in the sip.confThat made me think about that friend/peer thingy.> I found some information in german and I do not know itThe FritzBoxes are popular here in Germany - no wonder, being a German manufactured product and being given away for (nearly) free with any 2-year DSL contract... I like them nevertheless :) BR, HTH Anselm
Thank you I will try tonight On 9/10/07, Anselm Martin Hoffmeister <anselm at hoffmeister-online.de> wrote:> > Am Montag, den 10.09.2007, 05:14 +0200 schrieb Il Neofita: > > On 9/9/07, Anselm Martin Hoffmeister <anselm at hoffmeister-online.de> > > wrote: > > Am Sonntag, den 09.09.2007, 20:16 +0200 schrieb Il Neofita: > > > > Well, it seems there are differences between those accounts > > then. > > > > You might want to post your sip.conf, and -if that is > > possible- the ATA > > conf file; or at least a writedown of the configuration there. > > > > First of all, thank you for you reply > > The ATA is the Fritz!Box and I tried with different FW version but I > > have the same behaviour > > I have been using FritzBoxes for quite a while, and have not found such > strange bugs - except after a Firmware Upgrade. It seems after some > upgrades you need to do a "factory reset" (via the web interface) and > enter your data again, else they behave stupidly. > > > this is part of the sip.conf > > [180] > > type=peer > > username=180 > > secret=aaaaaa > > callerid=First<180> > > canreinvite = yes > > host = dynamic > > dtmfmode = rfc2833 > > qualify = yes > > nat = yes > > context = mycont > > disallow = all > > allow = g726 > > allow = g723 > > allow = ulaw > > allow = alaw > > allow = g729 > > allow = gsm > > > > [181] > > type=peer > > username=181 > > secret=bbbbbb > > callerid=Second<181> > > canreinvite = yes > > host = dynamic > > dtmfmode = rfc2833 > > qualify = yes > > nat = yes > > context = mycont > > disallow = all > > allow = g726 > > allow = g723 > > allow = ulaw > > allow = alaw > > allow = g729 > > allow = gsm > > Looks pretty OK to me. Just a stupid idea: Do you have a [general] > section before those two? > > And then, I use type=friend, not type=peer, that _might_ make a > difference in how asterisk matches sip.conf contexts to registered > clients. > > 8<==== From my sip.conf: > [sip501] > mailbox=01 > callerid=501 > type=friend > username=sip501 > secret=lk1j2eu89 > context=sipclient > host=dynamic > nat=yes > disallow=all > allow=alaw > allow=gsm > allow=ulaw > > [sip502] > mailbox=02 > callerid=502 > type=friend > username=sip502 > secret=1092jd0 > context=sipclient > host=dynamic > nat=yes > disallow=all > allow=alaw > allow=gsm > allow=ulaw > =====>8 > > Note: Those two accounts belong to the same FritzBox. > > > I tried to switch the account for the two ports but what it is > > important is only the order in the sip.conf > > That made me think about that friend/peer thingy. > > > I found some information in german and I do not know it > > The FritzBoxes are popular here in Germany - no wonder, being a German > manufactured product and being given away for (nearly) free with any > 2-year DSL contract... I like them nevertheless :) > > BR, HTH > > Anselm > > > > _______________________________________________ > > Sign up now for AstriCon 2007! September 25-28th. > http://www.astricon.net/ > > --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 >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070910/cef7e251/attachment.htm