Hi there, Today is the first day that I am using SEMS and I am a little bit lost.
I am trying to implement an announcement service that plays the file requested as it is decribed in RFC 4240. I have a SIP Servlet which is sending this kind of INVITEs to SEMS: INVITE sip:[email protected]:5080 SIP/2.0 Max-Forwards: 70 Contact: <sip:138.4.3.218:5060;fid=server_1> To: <sip:[email protected]:5080>;play=voicebox/msg_saved.wav What I want is to hear the requested file and then establish a conversation(at the moment I am able to hear the default wav file). I have almost the original config file(comments have been omitted): plugin_config_path=/usr/local/etc/sems//etc fork=yes stderr=no loglevel=3 application=early_announce plugin_path=/usr/local/lib/sems/plug-in/ load_plugins=wav;ilbc;announcement;sipctrl exclude_plugins=binrpcctrl;unixsockctrl;precoded_announce rtp_low_port=10000 rtp_high_port=60000 media_processor_threads=1 media_ip=lo sip_ip=127.0.0.1 sip_port=5080 And I am using the command 'sems -E' to debug the server: (16464) WARNING: [b7d1e6c0] getLocalIP (sems.cpp:571): Media advertising using loopback address! (16464) WARNING: [b7d1e6c0] getLocalIP (sems.cpp:572): Try to use another network interface if your SEMS (16464) WARNING: [b7d1e6c0] getLocalIP (sems.cpp:573): should be joinable from the rest of the world. Sip Express Media Server (1.1.0-rc1 (i386/linux)) Configuration: configuration file: /usr/local/etc/sems/sems.conf plug-in path: /usr/local/lib/sems/plug-in/ daemon mode: 0 local SIP IP: 127.0.0.1 public media IP: local SIP port: 5080 local media IP: 127.0.0.1 outbound proxy: application: early_announce (16464) DEBUG: [b7d1e6c0] main (sems.cpp:399): Loading plug-ins (16464) DEBUG: [b7d1e6c0] init (AmPlugIn.cpp:131): adding built-in codecs... (16464) DEBUG: [b7d1e6c0] addCodec (AmPlugIn.cpp:652): codec id 0 inserted (16464) DEBUG: [b7d1e6c0] addCodec (AmPlugIn.cpp:652): codec id 6 inserted (16464) DEBUG: [b7d1e6c0] addPayload (AmPlugIn.cpp:692): payload 'telephone-event' inserted with id 96 and order 196 (16464) DEBUG: [b7d1e6c0] load (AmPlugIn.cpp:181): AmPlugIn: loading modules 'wav;ilbc;announcement;sipctrl': (16464) DEBUG: [b7d1e6c0] load (AmPlugIn.cpp:191): loading /usr/local/lib/sems/plug-in//wav.so... (16464) DEBUG: [b7d1e6c0] addCodec (AmPlugIn.cpp:652): codec id 1 inserted (16464) DEBUG: [b7d1e6c0] addCodec (AmPlugIn.cpp:652): codec id 2 inserted (16464) DEBUG: [b7d1e6c0] addPayload (AmPlugIn.cpp:692): payload 'PCMU' inserted with id 0 and order 100 (16464) DEBUG: [b7d1e6c0] addPayload (AmPlugIn.cpp:692): payload 'PCMA' inserted with id 8 and order 108 (16464) DEBUG: [b7d1e6c0] addFileFormat (AmPlugIn.cpp:730): file format Wav inserted (16464) DEBUG: [b7d1e6c0] load (AmPlugIn.cpp:191): loading /usr/local/lib/sems/plug-in//ilbc.so... (16464) DEBUG: [b7d1e6c0] addCodec (AmPlugIn.cpp:652): codec id 4 inserted (16464) DEBUG: [b7d1e6c0] addPayload (AmPlugIn.cpp:692): payload 'iLBC' inserted with id 97 and order 197 (16464) DEBUG: [b7d1e6c0] addFileFormat (AmPlugIn.cpp:730): file format iLBC inserted (16464) DEBUG: [b7d1e6c0] load (AmPlugIn.cpp:191): loading /usr/local/lib/sems/plug-in//announcement.so... (16464) DEBUG: [b7d1e6c0] loadAppPlugIn (AmPlugIn.cpp:519): application 'announcement' loaded. (16464) DEBUG: [b7d1e6c0] load (AmPlugIn.cpp:191): loading /usr/local/lib/sems/plug-in//sipctrl.so... (16464) DEBUG: [b7d1e6c0] load (AmPlugIn.cpp:201): AmPlugIn: modules loaded. (16464) DEBUG: [b7d1e6c0] load (AmPlugIn.cpp:203): AmPlugIn: Initializing plugins... (16464) INFO: [b7d1e6c0] onLoad (SipCtrlInterface.cpp:83): SIP bind_addr: `127.0.0.1'. (16464) INFO: [b7d1e6c0] onLoad (SipCtrlInterface.cpp:84): SIP bind_port: `5080'. (16464) DEBUG: [b7d1e6c0] onLoad (SipCtrlInterface.cpp:107): sipctrl: accept_fr_without_totag = no (16464) DEBUG: [b7d1e6c0] onLoad (SipCtrlInterface.cpp:118): sipctrl: log_raw_messages level = 3 (16464) DEBUG: [b7d1e6c0] onLoad (SipCtrlInterface.cpp:124): sipctrl: log_parsed_messages = yes (16464) DEBUG: [b7d1e6c0] load (AmPlugIn.cpp:269): AmPlugIn: Initialized plugins. (16464) DEBUG: [b7d1e6c0] main (sems.cpp:413): Starting session container (16464) DEBUG: [b7d1e6c0] main (sems.cpp:416): Starting media processor (16464) DEBUG: [b7d1e6c0] init (AmMediaProcessor.cpp:69): Starting 1 MediaProcessorThreads. (16464) DEBUG: [b7d1e6c0] main (sems.cpp:422): Starting RTP receiver (16464) DEBUG: [b7ccab90] _start (AmThread.cpp:68): Thread 3083643792 is starting. (16464) DEBUG: [b7ac8b90] _start (AmThread.cpp:68): Thread 3081538448 is starting. (16464) DEBUG: [b79c7b90] _start (AmThread.cpp:68): (16464) DEBUG: [b7bc9b90] _start (AmThread.cpp:68): Thread 3082591120 is starting. Thread 3080485776 is starting. (16464) INFO: [b79c7b90] run (SipCtrlInterface.cpp:330): Starting SIP control interface (16464) ERROR: [b79c7b90] bind (udp_trsp.cpp:205): bind: Address already in use (16464) DEBUG: [b78c6b90] _start (AmThread.cpp:68): Thread 3079433104 is starting. (16464) DEBUG: [b77c5b90] _start (AmThread.cpp:68): Thread 3078380432 is starting. (16464) DEBUG: [b77c5b90] run (udp_trsp.cpp:118): before recvmsg (:0) (16464) ERROR: [b77c5b90] run (udp_trsp.cpp:122): recvfrom returned -1: Bad file descriptor (16464) DEBUG: [b77c5b90] _start (AmThread.cpp:72): Thread 3078380432 is ending. (16464) DEBUG: [b79c7b90] _start (AmThread.cpp:72): Thread 3080485776 is ending. The point is that I don't know exactly what do these lines mean. Could someone help me to understand them and if possible, explain how could I make to make SEMS play the file requested on the invite ? Thanks in advance, Jonathan -- Personal webpage - www.jonbaraq.eu -- Personal webpage - www.jonbaraq.eu
_______________________________________________ Sems mailing list [email protected] http://lists.iptel.org/mailman/listinfo/sems
