Author: derek Date: Tue Jul 3 21:28:06 2007 New Revision: 343 Modified: sofaswitch/trunk/controller/testonesound.py sofaswitch/trunk/controller/testsound.py sofaswitch/trunk/get_started/answeringmachine.sgml Log: updates Modified: sofaswitch/trunk/controller/testonesound.py ============================================================================== --- sofaswitch/trunk/controller/testonesound.py (original) +++ sofaswitch/trunk/controller/testonesound.py Tue Jul 3 21:28:06 2007 @@ -41,7 +41,5 @@ timedelta = time.time() - expstart; -controller.send_message_to('quitnow', 'sound') - controller.terminate_now() Modified: sofaswitch/trunk/controller/testsound.py ============================================================================== --- sofaswitch/trunk/controller/testsound.py (original) +++ sofaswitch/trunk/controller/testsound.py Tue Jul 3 21:28:06 2007 @@ -20,7 +20,7 @@ #thread.start_new_thread(controller.read_incoming,()) -calls = range(1,100) +calls = range(1,3) for i in calls: print 'Iteration ', i Modified: sofaswitch/trunk/get_started/answeringmachine.sgml ============================================================================== --- sofaswitch/trunk/get_started/answeringmachine.sgml (original) +++ sofaswitch/trunk/get_started/answeringmachine.sgml Tue Jul 3 21:28:06 2007 @@ -31,7 +31,7 @@ <para> For the test script to work, we expect that am is launched from a directory -containing a 16bit, 8khz sound file, called "sample_message.wav" +containing a 16bit, 8khz sound file, called <literal>../prompts/sample_message.wav"</literal> </para> <para> @@ -48,16 +48,61 @@ <para> The server reports the following messages. <screen> -controller : am:REQUESTNEWID - am : controller:REQUESTNEWID am1 -controller : am1:transferudp sound - am1 : controller:OutgoingCall am1 - am1 : sound:transferudp sound 10.0.0.5:64000 - sound : am1:transferudp sound 10.0.0.5:61000 done -controller : am1:setannouncementfile sample_message.wav -controller : am1:setreceivedmsgfile derek.wav -controller : am1:hangup - am1 : controller:Terminating + 4/ 7/2007 12:25:27. 10630 Recv New node of am + 4/ 7/2007 12:25:27. 11245 Recv New node of am1 + 4/ 7/2007 12:25:27. 12104 Recv New node of am2 + 4/ 7/2007 12:25:27. 12905 Recv New node of am3 + 4/ 7/2007 12:25:27. 13702 Recv New node of am4 + 4/ 7/2007 12:25:27. 14512 Recv New node of am5 + 4/ 7/2007 12:25:27. 15403 Recv New node of am6 + 4/ 7/2007 12:25:27. 16324 Recv New node of am7 + 4/ 7/2007 12:25:27. 17175 Recv New node of am8 + 4/ 7/2007 12:25:27. 18024 Recv New node of am9 + 4/ 7/2007 12:25:27. 18882 Recv New node of am10 + 4/ 7/2007 12:25:32.628728 Recv New node of controller + 4/ 7/2007 12:25:33.131056 Recv from controller am:REQUESTNEWID + 4/ 7/2007 12:25:33.131179 Send to am controller:REQUESTNEWID + 4/ 7/2007 12:25:33.131714 Recv from am controller:REQUESTNEWID am1 + 4/ 7/2007 12:25:33.131954 Send to controller am:REQUESTNEWID am1 + 4/ 7/2007 12:25:33.132316 Recv from am1 AdviseOnTermination controller + 4/ 7/2007 12:25:33.132846 Recv New node of am11 + 4/ 7/2007 12:25:33.182851 Recv from controller am1:transferudp sound + 4/ 7/2007 12:25:33.182973 Send to am1 controller:transferudp sound + 4/ 7/2007 12:25:33.183001 Recv from controller am1:setannouncementfile ../prompts/sample_message.wav + 4/ 7/2007 12:25:33.183043 Send to am1 controller:setannouncementfile ../prompts/sample_message.wav + 4/ 7/2007 12:25:33.184101 Recv from am1 sound:transferudp sound 192.168.1.109:62000 + 4/ 7/2007 12:25:33.184372 Send to sound am1:transferudp sound 192.168.1.109:62000 + 4/ 7/2007 12:25:33.185435 Recv from sound am1:transferudp sound 192.168.1.108:63000 done + 4/ 7/2007 12:25:33.185512 Send to am1 sound:transferudp sound 192.168.1.108:63000 done + 4/ 7/2007 12:25:33.222891 Recv from controller am1:setreceivedmsgfile derek.wav + 4/ 7/2007 12:25:33.223003 Send to am1 controller:setreceivedmsgfile derek.wav + 4/ 7/2007 12:25:36.758717 Recv from am1 controller:FinishedFile + 4/ 7/2007 12:25:36.758832 Send to controller am1:FinishedFile + 4/ 7/2007 12:25:36.782828 Recv from controller am1:hangup + 4/ 7/2007 12:25:36.782940 Send to am1 controller:hangup + 4/ 7/2007 12:25:37.478655 Send to controller am1:Terminating + 4/ 7/2007 12:25:37.782748 Recv from controller am:REQUESTNEWID + 4/ 7/2007 12:25:37.782974 Send to am controller:REQUESTNEWID + 4/ 7/2007 12:25:37.783350 Recv from am2 AdviseOnTermination controller + 4/ 7/2007 12:25:37.783448 Recv from am controller:REQUESTNEWID am2 + 4/ 7/2007 12:25:37.783587 Send to controller am:REQUESTNEWID am2 + 4/ 7/2007 12:25:37.784109 Recv New node of am12 + 4/ 7/2007 12:25:37.834613 Recv from controller am2:transferudp sound + 4/ 7/2007 12:25:37.834921 Send to am2 controller:transferudp sound + 4/ 7/2007 12:25:37.835046 Recv from controller am2:setannouncementfile ../prompts/sample_message.wav + 4/ 7/2007 12:25:37.835196 Send to am2 controller:setannouncementfile ../prompts/sample_message.wav + 4/ 7/2007 12:25:37.835788 Recv from am2 sound:transferudp sound 192.168.1.109:62001 + 4/ 7/2007 12:25:37.835898 Send to sound am2:transferudp sound 192.168.1.109:62001 + 4/ 7/2007 12:25:37.836975 Recv from sound am2:transferudp sound 192.168.1.108:63000 done + 4/ 7/2007 12:25:37.837022 Send to am2 sound:transferudp sound 192.168.1.108:63000 done + 4/ 7/2007 12:25:37.874580 Recv from controller am2:setreceivedmsgfile derek.wav + 4/ 7/2007 12:25:37.874889 Send to am2 controller:setreceivedmsgfile derek.wav + 4/ 7/2007 12:25:41.406340 Recv from am2 controller:FinishedFile + 4/ 7/2007 12:25:41.406441 Send to controller am2:FinishedFile + 4/ 7/2007 12:25:41.435340 Recv from controller am2:hangup + 4/ 7/2007 12:25:41.435452 Send to am2 controller:hangup + 4/ 7/2007 12:25:42.434595 Recv from controller am1:hangup + 4/ 7/2007 12:25:42.434659 Recv from controller am2:hangup </screen> The messages are in four groups. <itemizedlist> @@ -73,7 +118,15 @@ <listitem><para>Advisement notices (call setup, call terminating)</para></listitem> </itemizedlist> +You will note that the same file is played twice to the sound entity. This is +correct, and illustrates that the connection of audio between &sofaswitch +entities can be changed at any time. Further, the last two lines in the log +above report two message received from the controller which were never sent on +to the intended destination. This is because <literal>am1</literal> and +<literal>am2</literal> were dead and gone by this stage. The messages were +there therefore dropped. No error message is reported back to the controller. </para> + <para> As before, this simple test can be extended by running the <literal>client.py</literal> python script file described above. You can enquire of the answering machine for status information (command <literal>am:status full</literal>) and you @@ -94,7 +147,7 @@ </para> <para> -There are 11 Comms instances currently availble. One is used in an active call (am51), and the +There are 11 Comms instances currently availble. One is used in an active call (<literal>am51</literal>), and the remaining 10 have connected to the message server. These remaining 10 are therefore ready for immediate use, should they be requested by the controller. </para>