Skip to content
This repository was archived by the owner on Feb 3, 2020. It is now read-only.
This repository was archived by the owner on Feb 3, 2020. It is now read-only.

Paging Server Crash/Music Fade issue #20

@danry25

Description

@danry25

Paging server seems to delay inbound calls to let music fade out, not sure if this was what caused the server crash on the 4th call.

Jun  1 23:00:02 localhost paging[2909]: paging.PSCallState DEBUG :: call [sip:1000@sipdomain.com (#3)] event: state
Jun  1 23:00:02 localhost paging[2909]: paging.PSCallState DEBUG :: call [sip:1000@sipdomain.com (#3)] state change: 'confirmed' -> 'disconnected' (SIP status: 200 Normal call clearing)
Jun  1 23:00:02 localhost paging[2909]: paging.PSAccountState DEBUG :: PSAccountState event: cs_disconnected
Jun  1 23:00:02 localhost paging[2909]: paging.PulseClient DEBUG :: Starting music fade-in for 0 pulse stream(s)
Jun  1 23:00:12 localhost paging[2909]: paging.PulseClient DEBUG :: Finished music fade-in sequence for 0 stream(s)
Jun  1 23:00:23 localhost paging[2909]: paging.PSAccountState DEBUG :: PSAccountState event: incoming_call
Jun  1 23:00:23 localhost paging[2909]: paging.PSCallState DEBUG :: New incoming call [sip:1000@sipdomain.com (#4)] (remote contact: <sip:mod_sofia@SIP.server:5060>)
Jun  1 23:00:23 localhost paging[2909]: paging.PSAccountState INFO :: Handling call: sip:1000@sipdomain.com (#4)
Jun  1 23:00:23 localhost paging[2909]: paging.PulseClient DEBUG :: Starting music fade-out for 0 pulse stream(s)
Jun  1 23:00:24 localhost paging[2909]: paging.PagingServer DEBUG :: Started blocking playback of wav for time: 0.9s
Jun  1 23:00:24 localhost paging[2909]: paging.PagingServer DEBUG :: wav playback finished
Jun  1 23:00:25 localhost paging[2909]: paging.PSCallState DEBUG :: call [sip:1000@sipdomain.com (#4)] event: media_state
Jun  1 23:00:25 localhost paging[2909]: paging.PSCallState DEBUG :: call [sip:1000@sipdomain.com (#4)] media-state change: 'null' -> 'active' (call time: 0)
Jun  1 23:00:25 localhost paging[2909]: paging.PSAccountState DEBUG :: PSAccountState event: cs_media_activated
Jun  1 23:00:25 localhost paging[2909]: paging.PSCallState DEBUG :: call [sip:1000@sipdomain.com (#4)] event: state
Jun  1 23:00:25 localhost paging[2909]: paging.PSCallState DEBUG :: call [sip:1000@sipdomain.com (#4)] state change: 'incoming' -> 'connecting' (SIP status: 200 OK)
Jun  1 23:00:25 localhost paging[2909]: paging.PSAccountState DEBUG :: PSAccountState event: cs_timeout
Jun  1 23:00:25 localhost paging[2909]: paging.PSCallState DEBUG :: call [sip:1000@sipdomain.com (#4)] event: state
Jun  1 23:00:25 localhost paging[2909]: paging.PSCallState DEBUG :: call [sip:1000@sipdomain.com (#4)] state change: 'connecting' -> 'confirmed' (SIP status: 200 OK)
Jun  1 23:00:26 localhost paging[2909]: paging.PulseClient DEBUG :: Finished music fade-out sequence for0 stream(s)
Jun  1 23:00:33 localhost paging[2909]: paging.PSCallState DEBUG :: call [sip:1000@sipdomain.com (#4)] event: state
Jun  1 23:00:33 localhost paging[2909]: paging.PSCallState DEBUG :: call [sip:1000@sipdomain.com (#4)] state change: 'confirmed' -> 'disconnected' (SIP status: 200 Normal call clearing)
Jun  1 23:00:33 localhost paging[2909]: paging.PSAccountState DEBUG :: PSAccountState event: cs_disconnected
Jun  1 23:00:33 localhost paging[2909]: paging.PulseClient DEBUG :: Starting music fade-in for 0 pulse stream(s)
Jun  1 23:00:44 localhost paging[2909]: paging.PSAccountState DEBUG :: PSAccountState event: incoming_call
Jun  1 23:00:44 localhost paging[2909]: paging.PSCallState DEBUG :: New incoming call [sip:1000@sipdomain.com (#5)] (remote contact: <sip:mod_sofia@SIP.server:5060>)
Jun  1 23:00:44 localhost paging[2909]: paging.PSAccountState INFO :: Handling call: sip:1000@sipdomain.com (#5)
Jun  1 23:00:49 localhost paging[2909]: main ERROR :: ERROR (call_init): poll_wakeup() hangs, likely locking issue
Jun  1 23:00:49 localhost paging[2909]: Traceback (most recent call last):
Jun  1 23:00:49 localhost paging[2909]:   File "/usr/lib/python2.7/dist-packages/paging.py", line 73, in_wrapper
Jun  1 23:00:49 localhost paging[2909]:     try: return func(*args, **kws)
Jun  1 23:00:49 localhost paging[2909]:   File "/usr/lib/python2.7/dist-packages/paging.py", line 299, in call_init
Jun  1 23:00:49 localhost paging[2909]:     self.server.set_music_mute(True)
Jun  1 23:00:49 localhost paging[2909]:   File "/usr/lib/python2.7/dist-packages/paging.py", line 837, in set_music_mute
Jun  1 23:00:49 localhost paging[2909]:     with self.poll_wakeup(): self.pulse.set_music_mute(muted)
Jun  1 23:00:49 localhost paging[2909]:   File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
Jun  1 23:00:49 localhost paging[2909]:     return self.gen.next()
Jun  1 23:00:49 localhost paging[2909]:   File "/usr/lib/python2.7/dist-packages/paging.py", line 741, in poll_wakeup
Jun  1 23:00:49 localhost paging[2909]:     raise PagingServerError('poll_wakeup() hangs, likely lockingissue')
Jun  1 23:00:49 localhost paging[2909]: PagingServerError: poll_wakeup() hangs, likely locking issue
Jun  1 23:00:51 localhost systemd[1]: paging.service: Watchdog timeout (limit 30s)!
Jun  1 23:00:51 localhost systemd[1]: paging.service: Killing process 2909 (paging) with signal SIGABRT.
Jun  1 23:00:51 localhost systemd[1]: paging.service: Main process exited, code=killed, status=6/ABRT
Jun  1 23:00:51 localhost systemd[1]: paging.service: Unit entered failed state.
Jun  1 23:00:51 localhost systemd[1]: paging.service: Failed with result 'watchdog'.
Jun  1 23:01:22 localhost systemd[1]: paging.service: Service hold-off time over, scheduling restart.
Jun  1 23:01:22 localhost systemd[1]: Stopped paging.service.
Jun  1 23:01:22 localhost systemd[1]: Starting paging.service...
Jun  1 23:01:23 localhost paging[2956]: main DEBUG :: Initializing systemd watchdog pinger with interval: 15.0s
Jun  1 23:01:23 localhost paging[2956]: main INFO :: Starting PagingServer...
Jun  1 23:01:23 localhost paging[2956]: paging.PagingServer DEBUG :: pulse init
Jun  1 23:01:23 localhost paging[2956]: paging.PagingServer DEBUG :: pjsua init
Jun  1 23:01:24 localhost paging[2956]: WARNING: no real random source present!
Jun  1 23:01:24 localhost paging[2956]: paging.PagingServer DEBUG :: Using output device: sysdefault:CARD=Codec [1]
Jun  1 23:01:24 localhost paging[2956]: paging.PagingServer DEBUG :: Using output port: sysdefault:CARD=Codec [0]
Jun  1 23:01:24 localhost paging[2956]: paging.PagingServer DEBUG :: pjsua event loop started
Jun  1 23:01:24 localhost systemd[1]: Started paging.service.
Jun  1 23:01:24 localhost paging[2956]: paging.PSAccountState DEBUG :: PSAccountState event: reg_state
Jun  1 23:01:24 localhost paging[2956]: paging.PSAccountState DEBUG :: acc registration state (active: 1): 200 OK

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions