[python] Problem reloading account configuration

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Aug 13, 2008 at 10:39 AM, Sa?l Ibarra <saghul at gmail.com> wrote:

> > If you've got 3 different unregister requests, then that means you have
> > three accounts with active registration. Meaning it works! Am I missing
> > something?
> >
>
> I'll try to explain myself better :)
>
> What I'm trying to achieve is to reload the account configuration. To
> do that, I _think_ I have to do this:
>
> * Delete the actual accout object by doing acc.delete() and acc = None
> * Create another acc object whith lib.create_account...
>
>
Yep.


> I've checked, and I only have one single acc object, because to reload
> the configuration (for example if the user changes the domain) I do
> the acc.delete and acc=None, but when I stop the acc and the lib to
> exit the application, I get more than one unregister requests.
>
>
These two requests are identical, so they're just retransmissions of the
same request. Meaning it comes from the same unregistration of the same
account.


> Did I explain myself better? Should I protect the account deleting
> with lib.auto_lock?
>
>
It doesn't sound necessary for now. So what's the problem? :)

Cheers
 Benny
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20080813/ff1ee4b1/attachment.html 


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux