[OpenSIPS-Users] sip-chatserver spits exception during MSRP conf Session

mani sivaraman mani.opensips at gmail.com
Thu Dec 3 22:35:45 CET 2009


I fixed the 500 Error by adjusting the MSRP SDP from Client. Now
sip-chatServer (en-routed via opensips) is able to accept the incoming INV
and create a chat session. But MSRP media session connect timeout on the
sip-chatServer after sip sig session is established. I get an exception on
sip-chatServer after the sip session is established. Also with in 5 to 10
sec the sip-chatServer sends BYE to the client that initiated the group chat
session.

Any pointer is appreciated. I tried AG Sim SImple Py Client , but it Seg
Faults some where in pjsip when doing sip_register.

sip-chatServer Console:
----------------------------------
$ sip-chatserver --no-fork
Starting SIP Chat Server 0.9.2, config=/etc/sip-chatserver/config.ini
Listening for incoming SIP/UDP connections on 0.0.0.0:5065
Listening for incoming SIP/TCP connections on 0.0.0.0:5065
Listening for incoming SIP/TLS connections on 0.0.0.0:5066
"mani" <sip:msivaraman at mydomain.com <sip%3Amsivaraman at mydomain.com>> created
room imconference at mydomain.com
eventlet.twistedutil.protocol.SpawnFactory starting on 2858
Starting factory <eventlet.twistedutil.protocol.SpawnFactory instance at
0x940ffec>
Listening for incoming MSRPS connections on 63.148.166.215:2858
Incoming connection from 63.148.166.5:3136
mani (sip:msivaraman at mydomain.com <sip%3Amsivaraman at mydomain.com>)
(call-id=248705329-279090350) at imconference at mydomain.com/none:Failed to
establish session: MSRPBindSessionTimeout
Traceback (most recent call last):
  File "/usr/bin/sip-chatserver", line 84, in <module>
    server.run_reactor()
  File "/usr/lib/pymodules/python2.5/sipchatserver/server.py", line 79, in
run_reactor
    reactor.run()
  File "/usr/lib/python2.5/site-packages/twisted/internet/base.py", line
1128, in run
    self.mainLoop()
  File "/usr/lib/python2.5/site-packages/twisted/internet/base.py", line
1137, in mainLoop
    self.runUntilCurrent()
*--- <exception caught here> ---*
  File "/usr/lib/python2.5/site-packages/twisted/internet/base.py", line
757, in runUntilCurrent
    call.func(*call.args, **call.kw)
  File "/usr/lib/pymodules/python2.5/eventlet/hubs/twistedr.py", line 155,
in call_if_greenlet_alive
    return func(*args1, **kwargs1)
  File "/usr/lib/pymodules/python2.5/eventlet/api.py", line 308, in startup
    g.switch()
  File "/usr/lib/pymodules/python2.5/eventlet/proc.py", line 548, in _run
    result = function(*args, **kwargs)
  File "/usr/lib/pymodules/python2.5/eventlet/twistedutil/protocol.py", line
405, in _run_handler
    self.handler(gtransport)
  File "/usr/lib/pymodules/python2.5/msrplib/connect.py", line 432, in
_incoming_handler
    chunk = msrp.read_chunk(10000)
  File "/usr/lib/pymodules/python2.5/msrplib/transport.py", line 203, in
read_chunk
    func, msrpdata = self._wait()
  File "/usr/lib/pymodules/python2.5/eventlet/twistedutil/protocol.py", line
124, in _wait
    return self._queue.wait()
  File "/usr/lib/pymodules/python2.5/eventlet/coros.py", line 1014, in wait
    self.sem.acquire()
  File "/usr/lib/pymodules/python2.5/eventlet/coros.py", line 302, in
acquire
    api.get_hub().switch()
  File "/usr/lib/pymodules/python2.5/eventlet/hubs/twistedr.py", line 117,
in switch
    return self.greenlet.switch()
msrplib.connect.MSRPBindSessionTimeout:



SIP Trace From Client/UA:
-----------------------------------------
08:414|
08:414| INVITE sip:imconference at mydomain.com<sip%3Aimconference at mydomain.com>SIP/2.0
08:414| Via: SIP/2.0/UDP 63.148.166.5:7867
;rport;branch=z9hG4bK248705329-279090351
08:414| Max-Forwards: 70
08:414| Allow:
INVITE,BYE,CANCEL,ACK,INFO,PRACK,OPTIONS,SUBSCRIBE,NOTIFY,PUBLISH,MESSAGE,REFER,REGISTER,UPDATE
08:414| Supported: timer,replaces,norefersub,100rel
08:414| Accept-Contact: *;+g.oma.sip-im
08:414| User-Agent: SMSI IMS Client R02.0.00
08:414| P-Preferred-Identity:
sip:msivaraman at mydomain.com<sip%3Amsivaraman at mydomain.com>
08:414| From: mani<sip:msivaraman at mydomain.com<sip%3Amsivaraman at mydomain.com>
>;tag=smsiUA_248705329-279090352
08:414| To: <sip:imconference at mydomain.com <sip%3Aimconference at mydomain.com>
>
08:414| Call-ID: 248705329-279090350
08:414| CSeq: 1 INVITE
08:414| Contact: msivaraman<sip:msivaraman at 63.148.166.5:7867
;transport=udp>;+g.oma.sip-im
08:414| Content-Type: application/sdp
08:414| Content-Length: 328
08:414|
08:414| v=0
08:414| o=SMSI 256 2 IN IP4 63.148.166.5
08:414| s=SipSession with SMSIUA
08:414| i=SIP Session in SMSIUA
08:414| u=http://www.smithmicro.com
08:414| c=IN IP4 63.148.166.5
08:414| t=0 0
08:414| m=message 8573 TCP/TLS/MSRP *
08:414| c=IN IP4 63.148.166.5
08:414| a=accept-types:message/cpim text/*
08:414| a=path:msrps://63.148.166.5:8573/ciwq1u5bzchb;tcp
08:414| a=sendrecv
08:414| a=accept-wrapped-types:*
08:414| --------------------------------------------------------------
08:414|
08:430| ------------------------------------------------------------
08:430| SIP/2.0 100 Giving a try
08:430| Via: SIP/2.0/UDP 63.148.166.5:7867
;rport=7867;branch=z9hG4bK248705329-279090351
08:430| From: mani<sip:msivaraman at mydomain.com<sip%3Amsivaraman at mydomain.com>
>;tag=smsiUA_248705329-279090352
08:430| To: <sip:imconference at mydomain.com <sip%3Aimconference at mydomain.com>
>
08:430| Call-ID: 248705329-279090350
08:430| CSeq: 1 INVITE
08:430| Server: OpenSIPS (1.5.3-tls (i386/linux))
08:430| Content-Length: 0
08:430|
08:430| --------------------------------------------------------------
08:430| ------------------------------------------------------------
08:430| Got an Event
08:430| SIP/2.0 200 OK
08:430| Via: SIP/2.0/UDP 63.148.166.5:7867
;rport=7867;received=63.148.166.5;branch=z9hG4bK248705329-279090351
08:430| Call-ID: 248705329-279090350
08:430| From: "mani" <sip:msivaraman at mydomain.com<sip%3Amsivaraman at mydomain.com>
>;tag=smsiUA_248705329-279090352
08:430| To: <sip:imconference at mydomain.com <sip%3Aimconference at mydomain.com>
>;tag=tAUxpLyCJNxSGLCBeds22FcUEE.nepWI
08:430| CSeq: 1 INVITE
08:430| Contact: <sip:imconference at 63.148.166.215:5065>
08:430| Allow: SUBSCRIBE, NOTIFY, PRACK, INVITE, ACK, BYE, CANCEL, UPDATE,
MESSAGE
08:430| Supported: 100rel
08:430| Server: sip-chatserver-0.9.2
08:430| Content-Type: application/sdp
08:430| Content-Length:   247
08:430|
08:430| v=0
08:430| o=- 3468865040 3468865041 IN IP4 63.148.166.215
08:446| s=
08:446| c=IN IP4 63.148.166.215
08:446| t=0 0
08:446| m=message 2858 TCP/TLS/MSRP *
08:446| a=path:msrps://63.148.166.215:2858/d1c75b1779e4f49789ae;tcp
08:446| a=accept-types:message/cpim
08:446| a=accept-wrapped-types:text/plain
08:446| decompression done
08:461| ------------------------------------------------------------
08:461| ACK sip:imconference at 63.148.166.215:5065 SIP/2.0
08:461| Via: SIP/2.0/UDP 63.148.166.5:7867
;rport;branch=z9hG4bK248767329-279090418
08:461| Max-Forwards: 70
08:461| From: mani<sip:msivaraman at mydomain.com<sip%3Amsivaraman at mydomain.com>
>;tag=smsiUA_248705329-279090352
08:461| To: <sip:imconference at mydomain.com <sip%3Aimconference at mydomain.com>
>;tag=tAUxpLyCJNxSGLCBeds22FcUEE.nepWI
08:461| Call-ID: 248705329-279090350
08:461| CSeq: 1 ACK
08:461| Contact: msivaraman<sip:msivaraman at 63.148.166.5:7867
;transport=udp>;+g.oma.sip-im
08:461| Content-Length: 0
08:461|
08:461| Media stream 0 attributes: Type:4,port:2858,PktRate:0,Dir:0
08:461| MSRP <=> direction:0 rport:2858 raddr:63.148.166.215 lport:8573
codec:0
08:477| createMedia entered method.
08:477| createMedia leaving method.
08:477| addMedia mediaParams.LocalMediaPort = 8573
08:477|
08:477| addMedia mediaParams.RemoteMediaPort = 2858
08:477| print localUri
=<sip:msivaraman at mydomain.com<sip%3Amsivaraman at mydomain.com>>

08:477| print m_remoteUri
=<sip:imconference at mydomain.com<sip%3Aimconference at mydomain.com>>

08:477| print MediaDescriptor m_nRefId =32
08:477| print MediaDescriptor msrp.m_pszLocalAddress =63.148.166.5
08:477| print MediaDescriptor msrp.m_pszRemoteAddress =63.148.166.215
08:477| print MediaDescriptor msrp.m_nLocalPort =8573
08:477| print MediaDescriptor msrp.m_nRemotePort =2858
08:477| print MediaDescriptor msrp.m_pszLocalSessionId =ciwq1u5bzchb
08:477| print MediaDescriptor msrp.m_pszRemoteSessionId
=d1c75b1779e4f49789ae
08:477| print MediaDescriptor msrp.m_localMSRPMediaPath =msrp://
63.148.166.5:8573/ciwq1u5bzchb;tcp
08:477| print MediaDescriptor msrp.m_remoteMSRPMediaPath =msrp://
63.148.166.215:2858/d1c75b1779e4f49789ae;tcp
08:477| print MediaDescriptor msrp.m_MsrpRelayPath =
08:477| print MediaDescriptor msrp.m_MsrpRemoteRelayPath =msrps://
63.148.166.215:2858/d1c75b1779e4f49789ae;tcp
09:539| processSessionEvent Received IMS_SESSION_ESTABLISHED
22:368|
22:368| ---- CALLED sdf_cbk_uaSendMsgOnNetwork ----
22:368|
22:368|
22:368| ------------------------------------------------------------
22:368| Trace generated at :
22:368| Thu Dec 03 22 2009
22:368|
22:368| ------------------------------------------------------------
22:368|
22:368| --------------------------------------------------------------
22:368|
22:368| sending to ip:63.148.166.215, port:5060
22:368|
22:368| ---- CALLED sdf_cbk_uaSendMsgOnNetwork ----
22:368|
22:368|
22:368| ------------------------------------------------------------
22:368| Trace generated at :
22:368| Thu Dec 03 22 2009
22:368|
38:477|
38:477| ------------------------------------------------------------
38:477| BYE sip:msivaraman at 63.148.166.5:7867;transport=udp SIP/2.0
38:477| Via: SIP/2.0/UDP 63.148.166.215:5065
;rport;branch=z9hG4bKPjG81UefUITT9wQsnyOVEuyB-fyCKrsls7
38:477| Max-Forwards: 70
38:477| From: <sip:imconference at mydomain.com<sip%3Aimconference at mydomain.com>
>;tag=tAUxpLyCJNxSGLCBeds22FcUEE.nepWI
38:477| To: "mani" <sip:msivaraman at mydomain.com<sip%3Amsivaraman at mydomain.com>
>;tag=smsiUA_248705329-279090352
38:477| Call-ID: 248705329-279090350
38:477| CSeq: 17787 BYE
38:477| User-Agent: sip-chatserver-0.9.2
38:477| Content-Length:  0
38:477|
38:477| --------------------------------------------------------------
38:477|
38:493|
38:493| ********** BYE RECEIVED **********
38:493|
38:493|
38:493|
38:493| ********** YOU HAVE RECEIVED REQUEST FOR CALL TERMINATION **********
38:493|
38:493| ************OTHER EVENT**********
38:493|
38:493|
38:493|
38:493| ------------------------------------------------------------
38:493| Trace generated at :
38:493| Thu Dec 03 38 2009
38:493|
38:493| ------------------------------------------------------------
38:493| SIP/2.0 200 OK
38:493| Via: SIP/2.0/UDP 63.148.166.215:5065
;rport;branch=z9hG4bKPjG81UefUITT9wQsnyOVEuyB-fyCKrsls7
38:493| From: <sip:imconference at mydomain.com<sip%3Aimconference at mydomain.com>
>;tag=tAUxpLyCJNxSGLCBeds22FcUEE.nepWI
38:493| To: mani<sip:msivaraman at mydomain.com <sip%3Amsivaraman at mydomain.com>
>;tag=smsiUA_248705329-279090352
38:493| Call-ID: 248705329-279090350
38:493| CSeq: 17787 BYE
38:493| Contact: msivaraman<sip:msivaraman at 63.148.166.5:7867
;transport=udp>;+g.oma.sip-im
38:493| Allow:
INVITE,BYE,CANCEL,ACK,INFO,PRACK,OPTIONS,SUBSCRIBE,NOTIFY,PUBLISH,MESSAGE,REFER,REGISTER,UPDATE
38:493| Supported: norefersub,100rel
38:493| Content-Length: 0
38:493|
38:493| --------------------------------------------------------------
38:493|


On Sun, Nov 15, 2009 at 1:07 PM, Bogdan-Andrei Iancu <bogdan at voice-system.ro
> wrote:

> Hi Mani,
>
> The 500 reply you received indicates that opensips was not able to
> forward the request - you have to check the opensips logs to see the
> cause of the failure.
>
> Post the error messages (from the logs) to help you with the error.
>
> Regards,
> Bogdan
>
> mani sivaraman wrote:
> > Hi Adrian
> > I changed by SDP to support TLS and now I'm getting "500 Internal
> > Server Error" from sip-chatserver. Please see the trace below. The
> > only change from your working trace and mine is that, my client tries
> > to send TLS connect to sip-chatserver and not listen on port 2855.
> > Where as your client seems like it acts as a TLS server that listen on
> > port 2855. Is this the problem ?
> >
> > here is the trace.
> >
> >  ------------------------------------------------------------
> >
> >
> > INVITE sip:imconference at mydomain.com <sip%3Aimconference at mydomain.com>
> > <mailto:sip%3Aimconference at mydomain.com<sip%253Aimconference at mydomain.com>>
> SIP/2.0
> >  Via: SIP/2.0/UDP 172.16.1.160:7927
> ;rport;branch=z9hG4bK227591048-91588957
> >  Max-Forwards: 70
> >  Allow:
> >
> INVITE,BYE,CANCEL,ACK,INFO,PRACK,OPTIONS,SUBSCRIBE,NOTIFY,PUBLISH,MESSAGE,REFER,REGISTER,UPDATE
> >  Supported: timer,replaces,norefersub,100rel
> >  Accept-Contact: *;+g.oma.sip-im
> >  User-Agent: SMSI IMS Client R02.0.00
> >  P-Preferred-Identity: sip:msivaraman at mydomain.com<sip%3Amsivaraman at mydomain.com>
> > <mailto:sip%3Amsivaraman at mydomain.com <sip%253Amsivaraman at mydomain.com>>
> >  From: mani<sip:msivaraman at mydomain.com <sip%3Amsivaraman at mydomain.com>
> > <mailto:sip%3Amsivaraman at mydomain.com <sip%253Amsivaraman at mydomain.com>
> >>;tag=smsiUA_227591048-91588958
> >  To: <sip:imconference at mydomain.com <sip%3Aimconference at mydomain.com>
> > <mailto:sip%3Aimconference at mydomain.com<sip%253Aimconference at mydomain.com>
> >>
> >  Call-ID: 227591048-91588956
> >  CSeq: 1 INVITE
> >  Contact:
> > msivaraman<sip:msivaraman at 172.16.1.160:7927;transport=udp>;+g.oma.sip-im
> >  Content-Type: application/sdp
> >  Content-Length: 328
> >
> >  v=0
> >  o=SMSI 256 2 IN IP4 172.16.1.160
> >  s=SipSession with SMSIUA
> >  i=SIP Session in SMSIUA
> >  u=http://www.mydomain.com
> >  c=IN IP4 172.16.1.160
> >  t=0 0
> >  m=message 9602 TCP/TLS/MSRP *
> >  c=IN IP4 172.16.1.160
> >  a=accept-types:message/cpim text/*
> >  a=path:msrps://172.16.1.160:9602/z3mfbweby6vb;tcp
> > <http://172.16.1.160:9602/z3mfbweby6vb;tcp>
> >  a=accept-wrapped-types:*
> >  a=sendrecv
> >  --------------------------------------------------------------
> >
> >
> >  Got a message on UDP
> >
> >
> >  ------------------------------------------------------------
> >  Trace generated at :
> >  Thu Nov 12 11:41:28 2009
> >
> >  ------------------------------------------------------------
> >  SIP/2.0 100 Giving a try
> >  Via: SIP/2.0/UDP
> > 172.16.1.160:7927
> ;rport=25279;branch=z9hG4bK227591048-91588957;received=63.148.166.3
> >  From: mani<sip:msivaraman at mydomain.com <sip%3Amsivaraman at mydomain.com>
> > <mailto:sip%3Amsivaraman at mydomain.com <sip%253Amsivaraman at mydomain.com>
> >>;tag=smsiUA_227591048-91588958
> >  To: <sip:imconference at mydomain.com <sip%3Aimconference at mydomain.com>
> > <mailto:sip%3Aimconference at mydomain.com<sip%253Aimconference at mydomain.com>
> >>
> >  Call-ID: 227591048-91588956
> >  CSeq: 1 INVITE
> >  Server: OpenSIPS (1.5.3-tls (i386/linux))
> >  Content-Length: 0
> >
> >  --------------------------------------------------------------
> >
> >
> >  Got a message on UDP
> >
> >
> >  ------------------------------------------------------------
> >  Trace generated at :
> >  Thu Nov 12 11:41:28 2009
> >
> >  ------------------------------------------------------------
> >  SIP/2.0 500 Internal Server Error
> >  Via: SIP/2.0/UDP
> > 172.16.1.160:7927
> ;rport=25279;received=63.148.166.3;branch=z9hG4bK227591048-91588957
> >  Call-ID: 227591048-91588956
> >  From: "mani" <sip:msivaraman at mydomain.com<sip%3Amsivaraman at mydomain.com>
> > <mailto:sip%3Amsivaraman at mydomain.com <sip%253Amsivaraman at mydomain.com>
> >>;tag=smsiUA_227591048-91588958
> >  To: <sip:imconference at mydomain.com <sip%3Aimconference at mydomain.com>
> > <mailto:sip%3Aimconference at mydomain.com<sip%253Aimconference at mydomain.com>
> >>;tag=id9HOCrk1cfHWEoKDHmKpZaHX60esLl1
> >  CSeq: 1 INVITE
> >  Server: sip-chatserver-0.9.2
> >  Content-Length:  0
> >
> >  --------------------------------------------------------------
> >
> > On Fri, Nov 6, 2009 at 3:50 AM, Adrian Georgescu <ag at ag-projects.com
> > <mailto:ag at ag-projects.com>> wrote:
> >
> >     You are not using TLS:
> >
> >     m=message 8876 TCP/MSRP *
> >
> >     --
> >     Adrian
> >
> >
> >
> >
> >
> >
> >     _______________________________________________
> >     Users mailing list
> >     Users at lists.opensips.org <mailto:Users at lists.opensips.org>
> >     http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> >
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Users mailing list
> > Users at lists.opensips.org
> > http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> >
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20091203/14adc709/attachment-0001.htm 


More information about the Users mailing list