ashumeow / p2p-sip

Automatically exported from code.google.com/p/p2p-sip
0 stars 0 forks source link

Crashes due to missing branch in Via #4

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
First reported by Tom van der Geer tom.vandergeer@xs4all.nl on Jun 4 2011.

---

Hi Kundan,

I've been been performing some more tests with your SIP-RTMP gateway.
Today I've experienced a crash which I thought i should share with
you.

While in the middle of an active call the siprtmp.py process crashed.
This was the traceback:

User._listener exception (<type 'exceptions.AttributeError'>,
AttributeError("'Header' object has no attribute 'branch'",),
<traceback object at 0x883f8c4>)
Traceback (most recent call last):
 File "/home/tom/p2p-sip-read-only/src/app/voip.py", line 280, in
_listener
   self.stack.received(data, remote)
 File "/home/tom/p2p-sip-read-only/src/std/rfc3261.py", line 425, in
received
   self._receivedRequest(m, uri)
 File "/home/tom/p2p-sip-read-only/src/std/rfc3261.py", line 434, in
_receivedRequest
   branch = r.first('Via').branch
AttributeError: 'Header' object has no attribute 'branch'
Traceback (most recent call last):
 File "siprtmp.py", line 957, in <module>
   try: multitask.run()
 File "/home/tom/rtmplite-read-only/multitask.py", line 1202, in run
   get_default_task_manager().run()
 File "/home/tom/rtmplite-read-only/multitask.py", line 897, in run
   self.run_next()
 File "/home/tom/rtmplite-read-only/multitask.py", line 964, in
run_next
   output = task.send(input)
 File "/home/tom/p2p-sip-read-only/src/app/voip.py", line 280, in
_listener
   self.stack.received(data, remote)
 File "/home/tom/p2p-sip-read-only/src/std/rfc3261.py", line 425, in
received
   self._receivedRequest(m, uri)
 File "/home/tom/p2p-sip-read-only/src/std/rfc3261.py", line 434, in
_receivedRequest
   branch = r.first('Via').branch
AttributeError: 'Header' object has no attribute 'branch'
Exception RuntimeError: 'generator ignored GeneratorExit' in
<generator object rtmp_invite at 0x88587ac> ignored
Exception RuntimeError: 'generator ignored GeneratorExit' in
<generator object rtmp_invite at 0x8872824> ignored
Exception TypeError: 'exceptions must be old-style classes or derived
from BaseException, not NoneType' in <generator object read at
0x8872e64> ignored
Exception RuntimeError: 'generator ignored GeneratorExit' in
<generator object parse at 0x8872c84> ignored

Best regards,

Tom

Original issue reported on code.google.com by kundan10 on 5 Jul 2011 at 7:14