mickorz / rtmplite

Automatically exported from code.google.com/p/rtmplite
1 stars 0 forks source link

AttributeError ClientTransaction object has no receivedRequest in siprtmp #20

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Reported by bernard roubaud <broubaud@gmail.com>on Sep 14, 2010.

Hi,
I am playing with siprtmp (6.0) and X-Lite (3.0 build 56125) as described i=
n the =93Testing=94 paragraph and I got the following error  :  AttributeErro=
r: 'ClientTransaction' object has no attribute 'receivedRequest'
Does I miss something in the configuration ?
Thanks
Bernard

C:\p2p-sip\src\app>python.exe sipd.py -d

starting agent on ('0.0.0.0', 5060) with transports ('udp',)

('10.184.83.33', 5062)=3D>('0.0.0.0', 5060) on type=3D2

REGISTER sip:10.184.83.33 SIP/2.0

Via: SIP/2.0/UDP 127.0.0.1:5062
;branch=3Dz9hG4bK-d8754z-49044a660b56871e-1---d875

z-;rport

Max-Forwards: 70

Contact: <sip:bernard@127.0.0.1:5062;rinstance=3D6d89135e21df93da>

To: "bernard"<sip:bernard@10.184.83.33>

From: "bernard"<sip:bernard@10.184.83.33 <sip%3Abernard@10.184.83.33>
>;tag=3D57755873

Call-ID: MTE4ZTk3Mzc3YTIxMWI1OTIzNjRkZTk0ODdhYzk1ZTc.

CSeq: 1 REGISTER

Expires: 0

Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE=
,
IN

O

User-Agent: X-Lite release 1104o stamp 56125

Content-Length: 0

received request from stack REGISTER

save {}

locate sip:bernard@10.184.83.33 {}

('0.0.0.0', 5060)=3D>('10.184.83.33', 5062) on type=3D2

SIP/2.0 200 OK

Content-Length: 0

Via: SIP/2.0/UDP 127.0.0.1:5062
;received=3D10.184.83.33;branch=3Dz9hG4bK-d8754z-490

4a660b56871e-1---d8754z-;rport=3D5062

From: "bernard" <sip:bernard@10.184.83.33 <sip%3Abernard@10.184.83.33>
>;tag=3D57755873

Expires: 0

To: "bernard" <sip:bernard@10.184.83.33 <sip%3Abernard@10.184.83.33>
>;tag=3D28744989463

CSeq: 1 REGISTER

Call-ID: MTE4ZTk3Mzc3YTIxMWI1OTIzNjRkZTk0ODdhYzk1ZTc.

('10.184.83.33', 5062)=3D>('0.0.0.0', 5060) on type=3D2

SUBSCRIBE sip:bernard@10.184.83.33 SIP/2.0

Via: SIP/2.0/UDP 127.0.0.1:5062
;branch=3Dz9hG4bK-d8754z-a67c6e0157793427-1---d875

z-;rport

Max-Forwards: 70

Contact: <sip:bernard@127.0.0.1:5062>

To: "bernard"<sip:bernard@10.184.83.33>

From: "bernard"<sip:bernard@10.184.83.33 <sip%3Abernard@10.184.83.33>
>;tag=3D2607fb33

Call-ID: ZTJjZDUyNjBhYjM2Njc3MjI4YTk0NjQyMjgwZGUzYTk.

CSeq: 1 SUBSCRIBE

Expires: 300

Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE=
,
IN

O

User-Agent: X-Lite release 1104o stamp 56125

Event: message-summary

Content-Length: 0

received request from stack SUBSCRIBE

proxying non-invite non-local request

sending request on stack SUBSCRIBE

('0.0.0.0', 5060)=3D>('10.184.83.33', 5060) on type=3D2

SUBSCRIBE sip:bernard@10.184.83.33 SIP/2.0

Event: message-summary

Content-Length: 0

Via: SIP/2.0/UDP 10.184.83.33:5060
;rport;branch=3Dz9hG4bKlPGUl9DxKlheAqvOZPNE5A..

Via: SIP/2.0/UDP 127.0.0.1:5062
;received=3D10.184.83.33;rport=3D5062;branch=3Dz9hG4bK

d8754z-a67c6e0157793427-1---d8754z-

From: "bernard" <sip:bernard@10.184.83.33 <sip%3Abernard@10.184.83.33>
>;tag=3D2607fb33

Expires: 300

To: "bernard" <sip:bernard@10.184.83.33 <sip%3Abernard@10.184.83.33>>

Contact: <sip:bernard@127.0.0.1:5062>

CSeq: 1 SUBSCRIBE

Max-Forwards: 69

Allow: INVITE

Allow: ACK

Allow: CANCEL

Allow: OPTIONS

Allow: BYE

Allow: REFER

Allow: NOTIFY

Allow: MESSAGE

Allow: SUBSCRIBE

Allow: INFO

Call-ID: ZTJjZDUyNjBhYjM2Njc3MjI4YTk0NjQyMjgwZGUzYTk.

User-Agent: X-Lite release 1104o stamp 56125

('10.184.83.33', 5060)=3D>('0.0.0.0', 5060) on type=3D2

SUBSCRIBE sip:bernard@10.184.83.33 SIP/2.0

Event: message-summary

Content-Length: 0

Via: SIP/2.0/UDP 10.184.83.33:5060
;rport;branch=3Dz9hG4bKlPGUl9DxKlheAqvOZPNE5A..

Via: SIP/2.0/UDP 127.0.0.1:5062
;received=3D10.184.83.33;rport=3D5062;branch=3Dz9hG4bK

d8754z-a67c6e0157793427-1---d8754z-

From: "bernard" <sip:bernard@10.184.83.33 <sip%3Abernard@10.184.83.33>
>;tag=3D2607fb33

Expires: 300

To: "bernard" <sip:bernard@10.184.83.33 <sip%3Abernard@10.184.83.33>>

Contact: <sip:bernard@127.0.0.1:5062>

CSeq: 1 SUBSCRIBE

Max-Forwards: 69

Allow: INVITE

Allow: ACK

Allow: CANCEL

Allow: OPTIONS

Allow: BYE

Allow: REFER

Allow: NOTIFY

Allow: MESSAGE

Allow: SUBSCRIBE

Allow: INFO

Call-ID: ZTJjZDUyNjBhYjM2Njc3MjI4YTk0NjQyMjgwZGUzYTk.

User-Agent: X-Lite release 1104o stamp 56125

Traceback (most recent call last):

  File "sipd.py", line 110, in <module>

    sipapi.run()  # the loop to process the SIP listening point

  File "c:\p2p-sip\src\app\sipapi.py", line 246, in run

    try: multitask.run()

  File "c:\p2p-sip\src\external\multitask.py", line 1196, in run

    get_default_task_manager().run()

  File "c:\p2p-sip\src\external\multitask.py", line 897, in run

    self.run_next()

  File "c:\p2p-sip\src\external\multitask.py", line 963, in run_next

    output =3D task.send(input)

  File "c:\p2p-sip\src\app\sipapi.py", line 151, in _sipreceiver

    if data: stack.received(data, remote)

  File "c:\p2p-sip\src\std\rfc3261.py", line 425, in received

    self._receivedRequest(m, uri)

  File "c:\p2p-sip\src\std\rfc3261.py", line 494, in _receivedRequest

    t.receivedRequest(r)

AttributeError: 'ClientTransaction' object has no attribute
'receivedRequest'

C:\p2p-sip\src\app>

Original issue reported on code.google.com by voiprese...@gmail.com on 5 Feb 2011 at 3:35

GoogleCodeExporter commented 9 years ago
Kundan: I have added a hack in p2p-sip's rfc3261.py in svn r25, so that it will 
not crash. But without that, looks like you will need to disable the SUBSCRIBE 
message sent from X-lite: in SIP accounts settings, under presence tab, make 
the mode as "peer-to-peer" instead of "presence agent".

TODO: need to re-implement the transaction/branch id generation in rfc3261 to 
fix the loop detection issue.

Original comment by voiprese...@gmail.com on 5 Feb 2011 at 3:40

GoogleCodeExporter commented 9 years ago
Also reported by leoLee <leoliwork.2007@gmail.com> on Nov 24, 2010.

Hi
I got a trouble when i login the  sip-rtmp gateway with x-lite.

The problem is that will throws Exception when x-lite login.

Traceback (most recent call last):

File "app/sipd.py", line 110, in <module>

sipapi.run() # the loop to process the SIP listening point

File "/home/protel/p2p-sip/back up/src/app/sipapi.py", line 246, in run

try: multitask.run()

File "/home/protel/p2p-sip/src/external/multitask.py", line 1196, in run

get_default_task_manager().run()

File "/home/protel/p2p-sip/src/external/multitask.py", line 897, in run

self.run_next()

File "/home/protel/p2p-sip/src/external/multitask.py", line 963, in run_next

output = task.send(input)

File "/home/protel/p2p-sip/back up/src/app/sipapi.py", line 151, in sipreceiver

if data: stack.received(data, remote)

File "/home/protel/p2p-sip/src/std/rfc3261.py", line 425, in received

self.receivedRequest(m, uri)

File "/home/protel/p2p-sip/src/std/rfc3261.py", line 494, in receivedRequest

t.receivedRequest(r)

AttributeError?: 'ClientTransaction?' object has no attribute 'receivedRequest'

thanks a lot .
leo

Original comment by voiprese...@gmail.com on 5 Feb 2011 at 5:21