[Sems] Enable to connect to the sems with my smart phone

Stefan Sayer stefan.sayer at iptego.de
Tue Jul 31 15:41:19 CEST 2007


Hello,

your SEMS does not send an rtpmap line in the SDP for the codec used (0 
PCMU), it is imho not a MUST to send an rtpmap line for the codecs < 69 
but maybe this is upsetting your N80. I would recommend to update your 
SEMS version, I think that 0.10.0 rc2 has this fixed, and the trunk 
version from SVN surely does.

If this does not help please try to do a full network dump with e.g. 
wireshark or tcpdump and see whether RTP packets are sent from/to 
conference server.

Stefan

MOHAMED BEN KHEMIS wrote:
> Hi,
>  
> I'm new with sems and SIP technologie in general. I'm trying to test the 
> default conference application of the sems server, all works fine with 
> xlite, but I can't connect to that service with my Nokia N80. I have 
> analized packets sent between the sip proxy and the media server and I 
> didn't found any error.
> Below is the log of the sems :
>  
>  
> (21237) DEBUG: run (AmServer.cpp:93): revents = 0
> (21237) DEBUG: run (AmServer.cpp:93): revents = 1
> (21237) DEBUG: cacheMsg (AmCtrlInterface.cpp:186): recv-ed: <0.3
> sip_request.conference
> INVITE
> 116
> localhost
> 127.0.0.1
> 5070
> sip:116 at localhost:5070;user=phone
> sip:n80 at 192.168.50.154;transport=UDP
> <sip:n80 at 192.168.50.42>
> <sip:116 at 192.168.50.42;user=phone>
> EQyyxAVvoIeGD2quzAv45_GVoj9V8z
> d8hq51ljsphc7bkt4qff
> 1351
> 6189:4532776
> <sip:192.168.50.42;ftag=d8hq51ljsphc7bkt4qff;lr=on>
> sip:192.168.50.42;ftag=d8hq51ljsphc7bkt4qff;lr=on
> P-MsgFlags: 0
> .
> v=0
> o=Nokia-SIPUA 63354069076472625 63354069076472625 IN IP4 192.168.50.154
> s=-
> c=IN IP4 192.168.50.154
> t=0 0
> m=audio 49152 RTP/AVP 96 0 8 97 18 98 13
> a=sendrecv
> a=ptime:20
> a=maxptime:200
> a=fmtp:96 mode-change-neighbor=1
> a=fmtp:18 annexb=no
> a=fmtp:98 0-15
> a=rtpmap:96 AMR/8000/1
> a=rtpmap:0 PCMU/8000/1
> a=rtpmap:8 PCMA/8000/1
> a=rtpmap:97 iLBC/8000/1
> a=rtpmap:18 G729/8000/1
> a=rtpmap:98 telephone-event/8000/1
> a=rtpmap:13 CN/8000/1
>  >
> (21237) DEBUG: execute (AmInterfaceHandler.cpp:99): req.method = <INVITE>
> (21237) DEBUG: execute (AmInterfaceHandler.cpp:100): req.user = <116>
> (21237) DEBUG: execute (AmInterfaceHandler.cpp:101): req.domain = 
> <localhost>
> (21237) DEBUG: execute (AmInterfaceHandler.cpp:102): req.dstip = <127.0.0.1>
> (21237) DEBUG: execute (AmInterfaceHandler.cpp:103): req.port = <5070>
> (21237) DEBUG: execute (AmInterfaceHandler.cpp:104): req.r_uri = 
> <sip:116 at localhost:5070;user=phone>
> (21237) DEBUG: execute (AmInterfaceHandler.cpp:105): req.from_uri = 
> <sip:n80 at 192.168.50.154;transport=UDP>
> (21237) DEBUG: execute (AmInterfaceHandler.cpp:106): req.from = 
> <<sip:n80 at 192.168.50.42>>
> (21237) DEBUG: execute (AmInterfaceHandler.cpp:107): req.to = 
> <<sip:116 at 192.168.50.42;user=phone>>
> (21237) DEBUG: execute (AmInterfaceHandler.cpp:108): req.callid = 
> <EQyyxAVvoIeGD2quzAv45_GVoj9V8z>
> (21237) DEBUG: execute (AmInterfaceHandler.cpp:109): req.from_tag = 
> <d8hq51ljsphc7bkt4qff>
> (21237) DEBUG: execute (AmInterfaceHandler.cpp:110): req.to_tag = <>
> (21237) DEBUG: execute (AmInterfaceHandler.cpp:113): cseq_str = <1351>
> (21237) DEBUG: execute (AmInterfaceHandler.cpp:119): cseq = <1351>(1351)
> (21237) DEBUG: execute (AmInterfaceHandler.cpp:121): req.key = 
> <6189:4532776>
> (21237) DEBUG: execute (AmInterfaceHandler.cpp:122): req.route = 
> <<sip:192.168.50.42;ftag=d8hq51ljsphc7bkt4qff;lr=on>>
> (21237) DEBUG: execute (AmInterfaceHandler.cpp:123): req.next_hop = 
> <sip:192.168.50.42;ftag=d8hq51ljsphc7bkt4qff;lr=on>
> (21237) DEBUG: execute (AmInterfaceHandler.cpp:128): hdrs = <P-MsgFlags: 0
>  >
> (21237) DEBUG: execute (AmInterfaceHandler.cpp:133): body = <v=0
> o=Nokia-SIPUA 63354069076472625 63354069076472625 IN IP4 192.168.50.154
> s=-
> c=IN IP4 192.168.50.154
> t=0 0
> m=audio 49152 RTP/AVP 96 0 8 97 18 98 13
> a=sendrecv
> a=ptime:20
> a=maxptime:200
> a=fmtp:96 mode-change-neighbor=1
> a=fmtp:18 annexb=no
> a=fmtp:98 0-15
> a=rtpmap:96 AMR/8000/1
> a=rtpmap:0 PCMU/8000/1
> a=rtpmap:8 PCMA/8000/1
> a=rtpmap:97 iLBC/8000/1
> a=rtpmap:18 G729/8000/1
> a=rtpmap:98 telephone-event/8000/1
> a=rtpmap:13 CN/8000/1
>  >
> (21237) DEBUG: execute (AmInterfaceHandler.cpp:144): Request OK: 
> dispatch it!
> (21237) DEBUG: setAdaptivePlayout (AmRtpAudio.cpp:219): Adaptive playout 
> buffer deactivated
> (21237) DEBUG: setLocalTag (AmSession.cpp:199): 
> AmSession::setLocalTag(6CAF1FB6-46AE03F800015CCD-B7D056B0)
> (21237) DEBUG: start (AmThread.cpp:135): Thread 0 is just created.
> (21237) DEBUG: postEvent (AmEventQueue.cpp:48): AmEventQueue: trying to 
> post event
> (21237) DEBUG: postEvent (AmEventQueue.cpp:56): AmEventQueue: event posted
> (21237) DEBUG: _start (AmThread.cpp:68): Thread -1221100640 is starting.
> (21237) DEBUG: processEvents (AmEventQueue.cpp:69): before processing event
> (21237) DEBUG: process (AmSession.cpp:421): AmSession::process
> (21237) DEBUG: process (AmSession.cpp:425): Session received SIP Event
> (21237) DEBUG: onSipRequest (AmSession.cpp:472): onSipRequest: method = 
> INVITE
> (21237) DEBUG: parse_sdp_attribute (AmSdp.cpp:726): flag definition is 
> not yet supported (sendrecv)
> (21237) DEBUG: parse_sdp_attribute (AmSdp.cpp:721): unknown attribute 
> definition 'ptime:20'
> (21237) DEBUG: parse_sdp_attribute (AmSdp.cpp:721): unknown attribute 
> definition 'maxptime:200'
> (21237) DEBUG: getCompatiblePayload (AmSdp.cpp:330): using global 
> address: 192.168.50.154
> (21237) DEBUG: negotiate (AmSession.cpp:236): new payload: 0
> (21237) DEBUG: negotiate (AmSession.cpp:247): remote party supports 
> telephone events (pt=98)
> (21237) DEBUG: setLocalPort (AmRtpStream.cpp:165): local rtp port set to 
> 10502
> (21237) DEBUG: setRAddr (AmRtpStream.cpp:346): RTP remote address set to 
> 192.168.50.154:49152
> (21237) DEBUG: init (AmRtpAudio.cpp:146): AmRtpAudio::init(...)
> (21237) DEBUG: acceptAudio (AmSession.cpp:600): Sending Rtp data to 
> 192.168.50.154/49152
> (21237) DEBUG: updateStatusReply (AmSipDialog.cpp:86): reply: 
> transaction found!
> (21237) DEBUG: updateStatusReply (AmSipDialog.cpp:125): req.method = 
> INVITE; t.method = INVITE
> (21237) DEBUG: init (AmCtrlInterface.cpp:231): AmUnixCtrlInterface::init 
> @ /tmp/7BA11334-46AE03F800015DF1-B7377BA0
> (21237) DEBUG: write_to_socket (AmUtils.cpp:588): sending: 
> <:t_reply:/tmp/7BA11334-46AE03F800015DF1-B7377BA0
> 200
> OK
> 6189:4532776
> 6CAF1FB6-46AE03F800015CCD-B7D056B0
> Contact: <sip:116 at 127.0.0.1:5070>
> Content-Type: application/sdp
> .
> v=0
> o=username 0 0 IN IP4 192.168.50.42
> s=session
> c=IN IP4 192.168.50.42
> t=0 0
> m=audio 10502 RTP/AVP 0 98
> a=rtmap:98 telephone-event/8000
> a=fmtp:98 0-15
> .
>  >
> (21237) DEBUG: write_to_socket (AmUtils.cpp:614): write to unix socket: 
> completed
> (21237) DEBUG: cacheMsg (AmCtrlInterface.cpp:186): recv-ed: <200 Succeeded>
> (21237) DEBUG: trying to read WAV file
> (21237) DEBUG: tag = <RIFF>
> (21237) DEBUG: file size = <1638>
> (21237) DEBUG: tag = <WAVE>
> (21237) DEBUG: tag = <fmt >
> (21237) DEBUG: chunk_size = <16>
> (21237) DEBUG: fmt = <01>
> (21237) DEBUG: channels = <1>
> (21237) DEBUG: rate = <8000>
> (21237) DEBUG: bits/sample = <16>
> (21237) DEBUG: tag = <data>
> (21237) DEBUG: chunk size = <1602>
> (21237) DEBUG: trying to read WAV file
> (21237) DEBUG: tag = <RIFF>
> (21237) DEBUG: file size = <1638>
> (21237) DEBUG: tag = <WAVE>
> (21237) DEBUG: tag = <fmt >
> (21237) DEBUG: chunk_size = <16>
> (21237) DEBUG: fmt = <01>
> (21237) DEBUG: channels = <1>
> (21237) DEBUG: rate = <8000>
> (21237) DEBUG: bits/sample = <16>
> (21237) DEBUG: tag = <data>
> (21237) DEBUG: chunk size = <1602>
> (21237) DEBUG: postEvent (AmEventQueue.cpp:48): AmEventQueue: trying to 
> post event
> (21237) DEBUG: postEvent (AmEventQueue.cpp:56): AmEventQueue: event posted
> (21237) DEBUG: addChannel (AmMultiPartyMixer.cpp:58): added channel: #0
> (21237) DEBUG: postEvent (AmEventQueue.cpp:48): AmEventQueue: trying to 
> post event
> (21237) DEBUG: postEvent (AmEventQueue.cpp:56): AmEventQueue: event posted
> (21237) DEBUG: processEvents (AmEventQueue.cpp:71): event processed
> (21237) DEBUG: processEvents (AmEventQueue.cpp:69): before processing event
> (21237) DEBUG: process (Conference.cpp:172): ########## new participant 
> #########
> (21237) DEBUG: trying to read WAV file
> (21237) DEBUG: tag = <RIFF>
> (21237) DEBUG: file size = <65574>
> (21237) DEBUG: tag = <WAVE>
> (21237) DEBUG: tag = <fmt >
> (21237) DEBUG: chunk_size = <18>
> (21237) DEBUG: fmt = <01>
> (21237) DEBUG: channels = <1>
> (21237) DEBUG: rate = <8000>
> (21237) DEBUG: bits/sample = <16>
> (21237) DEBUG: tag = <data>
> (21237) DEBUG: chunk size = <65536>
> (21237) DEBUG: processEvents (AmEventQueue.cpp:71): event processed
> (21237) DEBUG: run (AmSession.cpp:292): EQyyxAVvoIeGD2quzAv45_GVoj9V8z 
> dlg.getUACTransPending() = 0
> (21237) DEBUG: processEvents (AmEventQueue.cpp:69): before processing event
> (21237) DEBUG: process (AmMediaProcessor.cpp:292): Session inserted to 
> the scheduler
> (21237) DEBUG: processEvents (AmEventQueue.cpp:71): event processed
>  
>  
> Thanks for your help.
> 
> ------------------------------------------------------------------------
> Ne gardez plus qu'une seule adresse mail ! Copiez vos mails 
> <http://www.trueswitch.com/yahoo-fr/> vers Yahoo! Mail
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Sems mailing list
> Sems at lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/sems

Regards
Stefan Sayer

-- 

   iptego - VoIP security

       www.iptego.de



More information about the Sems mailing list