[SIP Beyond VoIP] [Sip simple client] AttributeError:'NotificationData' object has no attribute 'timeout'

Anil KARADAG akaradag at NETAS.com.tr
Thu Oct 11 13:29:57 CEST 2012


Hi all,

 

 

I am continuing to research the problem and I found that;

 

send_notice('%s Failed to register contact for sip:%s: %s (retrying in
%.2f seconds)' % (datetime.now().replace(microsecond=0),
self.account.id, notification.data.error, notification.data.timeout))

 

notification.data is an instance of NotificationData. And the instance
has the below attributes;

 

NotificationData(retry_after=1.4917001857171823, error='No more routes
to try')

 

 

My /usr/bin/sip-session code is sample with [1]. I think this is a bug
and it should be fixed .

 

 

 

root at trhtlangley35:~# aptitude show python-application

Package: python-application

State: installed

Automatically installed: yes

Version: 1.4.0natty

Priority: optional

Section: python

Maintainer: Dan Pascu <dan at ag-projects.com>

Uncompressed Size: 406 k

Depends: python2.7 | python2.6, python (>= 2.7.1-0ubuntu2), python (<
2.8), python-zopeinterface

 

root at trhtlangley35:~# aptitude show python-sipsimple

Package: python-sipsimple

State: installed

Automatically installed: yes

Version: 0.30.1natty

Priority: optional

Section: python

Maintainer: Dan Pascu <dan at ag-projects.com>

Uncompressed Size: 9,118 k

Depends: python2.7 | python2.6, python (>= 2.7.1-0ubuntu2), python (<
2.8), libasound2 (> 1.0.24.1), libc6 (>= 2.11), libssl0.9.8 (>=
0.9.8m-1),

         python-application (>= 1.4.0), python-backports,
python-dateutil, python-dnspython (>= 1.6), python-eventlib,
python-gnutls, python-lxml,

         python-msrplib (>= 0.15.0), python-twisted-core (>= 8.1.0),
python-xcaplib (>= 1.0.17)

Suggests: libavahi-compat-libdnssd1

 

 

[1] http://devel.ag-projects.com/repositories/sipclients/sip-session

 

 

 

Thanks

 

From: sipbeyondvoip-bounces at lists.ag-projects.com
[mailto:sipbeyondvoip-bounces at lists.ag-projects.com] On Behalf Of Anil
KARADAG
Sent: Wednesday, October 10, 2012 5:55 PM
To: sipbeyondvoip at lists.ag-projects.com
Subject: [SIP Beyond VoIP] [Sip simple client]
AttributeError:'NotificationData' object has no attribute 'timeout'

 

Hi all,

 

 

Does anyone know that why sip-session prints the below error? I
installed sipsimple and sipclient from ubuntu 11.0.4 repository. 

I think something's wrong. What can we disable user registration? I
tried establish session after setting of sip.register=False, but there
is no change.

 

          +-- always_use_my_proxy = True

sip --|-- outbound_proxy = SIPProxyAddress('x.y.z.t', port=5060,
transport='udp')

          |-- publish_interval = 86400

          |-- register = False

          |-- register_interval = 86400

          +-- subscribe_interval = 86400

 

 

Error:

 

error: Exception occured in observer <__main__.SIPSessionApplication
object at 0x293b950> while handling notification
'SIPAccountRegistrationDidFail'

Traceback (most recent call last):

  File "/usr/lib/python2.7/dist-packages/application/notification.py",
line 216, in post_notification

    observer.handle_notification(notification)

  File "<string>", line 1, in handle_notification

  File
"/usr/lib/python2.7/dist-packages/sipsimple/threading/__init__.py", line
100, in wrapper

    func(*args, **kwargs)

  File "/usr/lib/python2.7/dist-packages/sipsimple/application.py", line
342, in handle_notification

    handler(notification)

  File "/usr/bin/sip-session", line 1126, in
_NH_SIPAccountRegistrationDidFail

    send_notice('%s Failed to register contact for sip:%s: %s (retrying
in %.2f seconds)' % (datetime.now().replace(microsecond=0),
self.account.id, notification.data.error, notification.data.timeout))

AttributeError: 'NotificationData' object has no attribute 'timeout'

 

 

thanks

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ag-projects.com/pipermail/sipbeyondvoip/attachments/20121011/3b0d50c3/attachment.html>


More information about the SIPBeyondVoIP mailing list