Commit 6a7baefb authored by Luci Stanescu's avatar Luci Stanescu

Customized the User-Agent used by the SIP core engine

parent 7736bc32
...@@ -5,9 +5,13 @@ ...@@ -5,9 +5,13 @@
__all__ = ['SIPSimpleSettingsExtension'] __all__ = ['SIPSimpleSettingsExtension']
import platform
import sys
from sipsimple.configuration import Setting, SettingsGroup, SettingsObjectExtension from sipsimple.configuration import Setting, SettingsGroup, SettingsObjectExtension
from sipsimple.configuration.settings import AudioSettings, LogsSettings from sipsimple.configuration.settings import AudioSettings, LogsSettings
from blink import __version__
from blink.configuration.datatypes import ApplicationDataPath, SoundFile from blink.configuration.datatypes import ApplicationDataPath, SoundFile
from blink.resources import Resources from blink.resources import Resources
...@@ -33,4 +37,6 @@ class SIPSimpleSettingsExtension(SettingsObjectExtension): ...@@ -33,4 +37,6 @@ class SIPSimpleSettingsExtension(SettingsObjectExtension):
logs = LogsSettingsExtension logs = LogsSettingsExtension
sounds = SoundSettings sounds = SoundSettings
user_agent = Setting(type=str, default='Blink %s (%s)' % (__version__, platform.system() if sys.platform!='darwin' else 'MacOSX Qt'))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment