[Serusers] save("location") causing routing errors?
Patrick Jordan-Smith
pjs at quicksilver.co.nz
Mon Oct 17 04:08:01 CEST 2005
But I don't understand why I can't save the location when it's a INVITE
not just a REGISTER? Could you please explain this?
Thank you,
On Sun, 2005-10-16 at 20:26 -0400, sip wrote:
> That's what you need a static repository of location info. This is what the
> database is for.
>
> Assuming you have your mysql db set up, you'd add these lines to your config:
>
>
> modparam("usrloc", "db_mode", 2)
> modparam("usrloc", "db_url", "mysql://ser:heslo@localhost/ser")
>
>
> The DB mode could be 0, 1, or 2. 0 says that there will be no storage of the
> information in the database, 1 means that the information will be stored at a
> partciular interval, 2 means that the data will be stored upon each register.
>
> Then, if the server restarts before the registration expires, the location
> information will be stored within the database upon restart.
>
> N.
>
>
> On Mon, 17 Oct 2005 12:07:47 +1300, Patrick Jordan-Smith wrote
> > On Sun, 2005-10-16 at 17:57 -0400, sip wrote:
> > > That should be couched in an if(method=="REGISTER") block.
> > >
> > >
> > > In such a way, it would never GET an INVITE
> > >
> >
> > Yes, but then how do we handle a situation where the server has
> > fallen over (happens sometimes) and then come back up, we check them
> > but until the UA sends another REGISTER we don't know where they are
> > and can't get incoming calls to that UA.
> >
> > Maybe I can force the re-register period to be really small (5
> > seconds?)
> >
> > Thanks for your help,
> > Patrick
> >
> > --
>
> > Patrick Jordan-Smith
> > Mercury Telecommunications Ltd
> >
> > voice +64-9-916-0300
> > paper +64-9-916-0301
> >
> > _______________________________________________
> > Serusers mailing list
> > serusers at lists.iptel.org
> > http://lists.iptel.org/mailman/listinfo/serusers
>
>
More information about the sr-users
mailing list