Hi all, Is there anyway i can prevent multiple sip registrations from different IPs using single username in asterisk. Does asterisk provide any aid in this respect? As far as my knowledge is concerned i dont think there is any support for this in asterisk, so i think i'll have to makeup a script which sniffs sip packets coming for asterisk and detect for multiple register requests coming from different IPs for the same username. Can anybody help? -- Best Regards Rizwan Hisham Software Engineer Axvoice Inc. www.axvoice.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070911/62694010/attachment.htm
I believe you can use the host= to configure the allowed IP in sip.conf ________________________________________ From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Rizwan Hisham Sent: 11 September 2007 11:30 To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: [asterisk-users] Prevent multiple sip registrations Hi all, Is there anyway i can prevent multiple sip registrations from different IPs using single username in asterisk. Does asterisk provide any aid in this respect? As far as my knowledge is concerned i dont think there is any support for this in asterisk, so i think i'll have to makeup a script which sniffs sip packets coming for asterisk and detect for multiple register requests coming from different IPs for the same username. Can anybody help? -- Best Regards Rizwan Hisham Software Engineer Axvoice Inc. www.axvoice.com
well he does not have access to hi sip settings, so he cant edit the host=<differentIP> every time he moves or registers from anyother place. Actually he should be able to register from anywhere in the world but once he has registered with us, i dont want anyone else to register with my asterisk using his credentials. On 9/11/07, Atis <atis at best.eu.org> wrote:> > On 9/11/07, Rizwan Hisham <rizwanhasham at gmail.com> wrote: > > We cant do that. Thats becoz the original user may change his/her > location > > which will result in change of ip address. We have to set host=dynamic > for > > allownig the original user to register from anywhere. > > So any other ideas? > > So, if he can change IP, then he probably is changing? Why do you get > multiple registrations? SIP secret should be known only for that user > (or if he has HW device - just for device). > > Regards, > Atis > > -- > Atis Lezdins, > IT Responsible of BEST Riga, > atis at BEST.eu.org > ICQ: 142239285 > Skype: atis.lezdins > Cell Phone: +371 28806004 [Tele2, Latvia] > Work phone: +1 800 7502835 [Toll free, USA] > ?BEST? -> www.BEST.eu.org > > _______________________________________________ > > 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 >-- Best Regards Rizwan Hisham Software Engineer Axvoice Inc. www.axvoice.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070911/93915fc9/attachment.htm
On 9/11/07, Rizwan Hisham <rizwanhasham at gmail.com> wrote:> well he does not have access to hi sip settings, so he cant edit the > host=<differentIP> every time he moves or registers from anyother place. > Actually he should be able to register from anywhere in the world but once > he has registered with us, i dont want anyone else to register with my > asterisk using his credentials.So, why it is a problem to give really secure password? Well, actually some idea popped out of my mind just now.. You can have SIP users in realtime, and create DB trigger.. As soon as "ipaddr" field is changed (SIP registration happened), "SET host=ipaddr". Maybe you also want set back "host=dynamic" when regseconds (time before re-registration) ends. Anyway - creating custom scenarios should be possible. Regards, Atis -- Atis Lezdins, IT Responsible of BEST Riga, atis at BEST.eu.org ICQ: 142239285 Skype: atis.lezdins Cell Phone: +371 28806004 [Tele2, Latvia] Work phone: +1 800 7502835 [Toll free, USA] ?BEST? -> www.BEST.eu.org