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

Saúl Ibarra Corretgé saul at ag-projects.com
Wed Oct 10 17:44:30 CEST 2012


On Oct 10, 2012, at 4:55 PM, Anil KARADAG wrote:

> 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'
>  

This was fixed in version 0.30.1, what version are you running?

--
Saúl Ibarra Corretgé
AG Projects





More information about the SIPBeyondVoIP mailing list