I install sems and it can record.But I can't receive any mail to get the voice file.
I try ans_machine -E -D 3
these are message and I find a error at last 5 lines.How to solve it. Thanks.
(27953) DEBUG: postEvent (AmEventQueue.cpp:28): AmEventQueue: event posted (27953) DEBUG: destroySession (AmSession.cpp:306): session stopped and destroyed (#sessions=0) (27951) DEBUG: run (AmMail.cpp:97): Mail deamon starting its work (27951) ERROR: connect (AmSmtpClient.cpp:89): Connection refused (27951) INFO: close (AmSmtpClient.cpp:108): We are now deconnected from server (27951) DEBUG: run (AmMail.cpp:120): Mail deamon finished (27950) DEBUG: run (AmSession.cpp:213): Session cleaner starting its work (27950) DEBUG: run (AmSession.cpp:227): session 80bf188 has been destroyed' (27950) DEBUG: run (AmSession.cpp:244): Session cleaner finished
---------
Configuration: configuration file: /etc/sems/sems.conf Ser's FIFO: /tmp/ser_fifo our FIFO: /tmp/am_fifo smtp server ip: localhost smtp server port: 25 announce path: /usr/local/lib/sems/audio/ default announce: default_en.wav plug-in path: /usr/local/lib/sems/plug-in/ maximum record time: 30 daemon
mode: 0
(27948) INFO: run (AmServer.cpp:144): Loading application plug-ins (27948) DEBUG: load (AmPlugIn.cpp:83): loading /usr/local/lib/sems/plug-in//apps/announcement.so ... (27948) DEBUG: loadAppPlugIn (AmPlugIn.cpp:262): application 'announcement' loaded. (27948) DEBUG: load (AmPlugIn.cpp:83): loading /usr/local/lib/sems/plug-in//apps/echo.so ... (27948) DEBUG: loadAppPlugIn (AmPlugIn.cpp:262): application 'echo' loaded. (27948) DEBUG: load (AmPlugIn.cpp:83): loading /usr/local/lib/sems/plug-in//apps/voicemail.so ... (27948) DEBUG: loadAppPlugIn (AmPlugIn.cpp:262): application 'voicemail' loaded. (27948) INFO: run (AmServer.cpp:148): Loading audio plug-ins (27948) DEBUG: load (AmPlugIn.cpp:83): loading /usr/local/lib/sems/plug-in//audio/gsm.so ... (27948) DEBUG: loadAudioPlugIn (AmPlugIn.cpp:199): codec id 3 inserted (27948) DEBUG: loadAudioPlugIn (AmPlugIn.cpp:214): payload 'GSM'inserted with id 3 (27948) DEBUG: load (AmPlugIn.cpp:83): loading
/usr/local/lib/sems/plug-in//audio/wav.so ... (27948) DEBUG: loadAudioPlugIn (AmPlugIn.cpp:199): codec id 1 inserted (27948) DEBUG: loadAudioPlugIn (AmPlugIn.cpp:199): codec id 2 inserted (27948) DEBUG: loadAudioPlugIn (AmPlugIn.cpp:214): payload 'PCMU'inserted with id 0 (27948) DEBUG: loadAudioPlugIn (AmPlugIn.cpp:214): payload 'PCMU'inserted with id 8 (27948) DEBUG: loadAudioPlugIn (AmPlugIn.cpp:238): file format Wav inserted (27948) INFO: run (AmServer.cpp:152): Starting session container (27948) INFO: run (AmServer.cpp:155): Starting mailer (27948) INFO: run (AmServer.cpp:158): FIFO waiting for work... (27948) DEBUG: run (AmServer.cpp:185): version= <0.1> (27948) DEBUG: run (AmServer.cpp:191): cmd.cmd= <voicemail> (27948) DEBUG: run (AmServer.cpp:192): cmd.method= <INVITE> (27948) DEBUG: run (AmServer.cpp:193): cmd.user= <Sean> (27948) DEBUG: run (AmServer.cpp:194): cmd.email= < Dove623@spymac.com> (27948) DEBUG: run (AmServer.cpp:195): cmd.domain= <140.115.156.57> (27948) DEBUG: run (AmServer.cpp:196): cmd.dstip= <140.115.156.57> (27948) DEBUG: run (AmServer.cpp:197): cmd.port= <5060> (27948) DEBUG: run (AmServer.cpp:198): cmd.r_uri= <sip:Sean@140.115.156.57> (27948) DEBUG: run (AmServer.cpp:199): cmd.from_uri= <sip:140.115.205.9:5060;transport=udp> (27948) DEBUG: run (AmServer.cpp:200): cmd.from= <"Dove" <sip:Dove@140.115.156.57:5060;transport=udp>> (27948) DEBUG: run (AmServer.cpp:201): cmd.to= <<sip:Sean@140.115.156.57>> (27948) DEBUG: run (AmServer.cpp:202): cmd.callid= < 96e3c6f296112153b76497b8516900ef@140.115.205.9> (27948) DEBUG: run (AmServer.cpp:203): cmd.from_tag= <16949413> (27948) DEBUG: run (AmServer.cpp:204): cmd.to_tag= <> (27948)
DEBUG: run (AmServer.cpp:207): cseq_str= <1> (27948) DEBUG: run (AmServer.cpp:213): cseq= <1>(1) (27948) DEBUG: run (AmServer.cpp:215): cmd.key= <34259:1061597481> (27948) DEBUG: run (AmServer.cpp:216): cmd.route= <> (27948) DEBUG: run (AmServer.cpp:217): cmd.next_hop= <> (27948) DEBUG: run (AmServer.cpp:224): hdrs: `' (27948) DEBUG: run (AmServer.cpp:232): body: `v=0 o=c?D?Da??? 0 0 IN IP4 140.115.205.9 s=- c=IN IP4 140.115.205.9 t=0 0 m=audio 22224 RTP/AVP 0 3 4 5 6 8 15 m=video 22222 RTP/AVP 26 34 31 a=recvonly ' (27948) DEBUG: run (AmServer.cpp:243): everything is OK ! (27948) DEBUG: onInvite (AnswerMachine.cpp:45): email address for user 'Sean': Dove623@spymac.com(27948) DEBUG: startSession (AmSession.cpp:395): Starting session... ( hash=96e3c6f296112153b76497b8516900ef@140.115.205.916949413,sess_key=00006D2C52F5DB86) (27953) DEBUG: setLocalPort (AmRtpStream.cpp:394): setting random local address (27953) DEBUG: setLocalPort (AmRtpStream.cpp:409): local rtp port set to 33852 (27953) DEBUG: genResponse (AmSdp.cpp:172): ***** found compatible payload: /-1; port=22224 ***** (27953) DEBUG: sendToFIFO (AmRequest.cpp:187): msg=<:vm_reply:00006D315AD91F02 200 OK 34259:1061597481 00006D2C52F5DB86 Contact: <sip:Sean@140.115.156.57:5060> Content-Type: application/sdp . v=0 o=username 0 0 IN IP4 140.115.156.57 s=session c=IN IP4 140.115.156.57 t=0 0 m=audio 33852 RTP/AVP 0 a=rtpmap:0 / .
> (27953) DEBUG: openReplyFifo (AmRequest.cpp:292): openReplyFifo start (27953) DEBUG: openReplyFifo (AmRequest.cpp:313): creating reply fifo filehandle (27953) DEBUG: openReplyFifo (AmRequest.cpp:334): opening reply fifo (27953) DEBUG: write_to_fifo (AmRequest.cpp:635): Write to fifo: completed (27953) DEBUG: getReturnCode (AmRequest.cpp:380): response from Ser: 200 fifo_t_reply succeeded (27953) DEBUG: getReturnCode (AmRequest.cpp:401): r_uri= <> (27953) DEBUG: getReturnCode (AmRequest.cpp:404): cmd.next_hop= <> (27953) DEBUG: getReturnCode (AmRequest.cpp:405): cmd.route= <> (27953) DEBUG: run (AmSession.cpp:116): Sending Rtp data to 140.115.205.9/22224 (27953) DEBUG: onSessionStart (AnswerMachine.cpp:65): starting sending announce...(/usr/local/lib/sems/audio/default_en.wav) (27953) DEBUG: trying to read WAV file (27953) DEBUG: tag = <RIFF> (27953) DEBUG: file size = <129710> (27953) DEBUG: tag =
<WAVE> (27953) DEBUG: tag = <fmt > (27953) DEBUG: chunk_size = <18> (27953) DEBUG: fmt = <01> (27953) DEBUG: channels = <1> (27953) DEBUG: rate = <8000> (27953) DEBUG: bits/sample = <16> (27953) DEBUG: tag = <fact> (27953) DEBUG: chunk size = <4> (27953) DEBUG: tag = <data> (27953) DEBUG: chunk size = <129660> (27953) DEBUG: play (AmRtpStream.cpp:244): AmRtpStream::play: using payload 0 (27953) DEBUG: onSessionStart (AnswerMachine.cpp:67): ... announce reaches its end. (27953) DEBUG: onSessionStart (AnswerMachine.cpp:73): starting recording message...( /tmp/96e3c6f296112153b76497b8516900ef@140.115.205.9.wav) (27953) DEBUG: record (AmRtpStream.cpp:267): AmRtpStream::record: using payload 0 (27953) DEBUG: onSessionStart (AnswerMachine.cpp:76): ... finished recording message (27953) DEBUG: sendToFIFO (AmRequest.cpp:187):
msg=<:t_uac_dlg:00006D317760FEED BYE sip:140.115.205.9:5060;transport=udp . From: <sip:Sean@140.115.156.57>;tag=00006D2C52F5DB86 To: "Dove" <sip:Dove@140.115.156.57:5060;transport=udp>;tag=16949413 CSeq: 2 BYE Call-ID: 96e3c6f296112153b76497b8516900ef@140.115.205.9. .
> (27953) DEBUG: openReplyFifo (AmRequest.cpp:292): openReplyFifo start (27953) DEBUG: openReplyFifo (AmRequest.cpp:313): creating reply fifo filehandle (27953) DEBUG: openReplyFifo (AmRequest.cpp:334): opening reply fifo (27953) DEBUG: write_to_fifo (AmRequest.cpp:635): Write to fifo: completed (27953) DEBUG: getReturnCode (AmRequest.cpp:373): sleeping and retrying to read answer from ser (27953) DEBUG: getReturnCode (AmRequest.cpp:373): sleeping and retrying to read answer from ser (27953) DEBUG: getReturnCode (AmRequest.cpp:373): sleeping and retrying to read answer from ser (27953) DEBUG: getReturnCode (AmRequest.cpp:380): response from Ser: 200 OK (27953) DEBUG: getReturnCode (AmRequest.cpp:401): r_uri= <> (27953) DEBUG: getReturnCode (AmRequest.cpp:404): cmd.next_hop= <> (27953) DEBUG: getReturnCode (AmRequest.cpp:405): cmd.route= <> (27953) DEBUG: getReturnCode (AmRequest.cpp:410): header: Via: SIP/2.0/UDP
140.115.156.57;branch=z9hG4bK9019.b11c8576.0 (27953) DEBUG: getReturnCode (AmRequest.cpp:410): header: To: "Dove" <sip:Dove@140.115.156.57:5060;transport=udp>;tag=16949413 (27953) DEBUG: getReturnCode (AmRequest.cpp:410): header: From: <sip:Sean@140.115.156.57>;tag=00006D2C52F5DB86 (27953) DEBUG: getReturnCode (AmRequest.cpp:410): header: CSeq: 2 BYE (27953) DEBUG: getReturnCode (AmRequest.cpp:410): header: Call-ID: 96e3c6f296112153b76497b8516900ef@140.115.205.9(27953) DEBUG: getReturnCode (AmRequest.cpp:410): header: Content-Length: 0 (27953) DEBUG: getReturnCode (AmRequest.cpp:417): found 'To: "Dove" <sip:Dove@140.115.156.57:5060;transport=udp>;tag=16949413' (27953) DEBUG: getReturnCode (AmRequest.cpp:430): found To-tag: '16949413' (27953) DEBUG: onSessionStart (AnswerMachine.cpp:82): recorded data size: 480000 (27953) DEBUG: sadSession (AmSession.cpp:274): searching
for session to destroy ( hash=96e3c6f296112153b76497b8516900ef@140.115.205.916949413,sess_key=00006D2C52F5DB86) (27953) DEBUG: findSession (AmSession.cpp:334): session found with key (27953) DEBUG: destroySession (AmSession.cpp:294): sess_it != a_sessions.end() (27953) DEBUG: destroySession (AmSession.cpp:297): it != sess_it->second.end() (27953) DEBUG: destroySession (AmSession.cpp:304): session found: stopping session (27953) DEBUG: stopAndQueue (AmSession.cpp:254): session cleaner trying to stop 80bf188 (27953) DEBUG: postEvent (AmEventQueue.cpp:20): AmEventQueue: trying to post event (27953) DEBUG: postEvent (AmEventQueue.cpp:28): AmEventQueue: event posted (27953) DEBUG: destroySession (AmSession.cpp:306): session stopped and destroyed (#sessions=0) (27951) DEBUG: run (AmMail.cpp:97): Mail deamon starting its work (27951) ERROR: connect
(AmSmtpClient.cpp:89): Connection refused (27951) INFO: close (AmSmtpClient.cpp:108): We are now deconnected from server (27951) DEBUG: run (AmMail.cpp:120): Mail deamon finished (27950) DEBUG: run (AmSession.cpp:213): Session cleaner starting its work (27950) DEBUG: run (AmSession.cpp:227): session 80bf188 has been destroyed' (27950) DEBUG: run (AmSession.cpp:244): Session cleaner finished |