New Posts New Posts RSS Feed - Using multiple devices
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Way2call telephony device is your ultimate telephony integration solution!

Using multiple devices

 Post Reply Post Reply
Author
doronsh View Drop Down
Way2call
Way2call


Joined: Mar 16 2009
Status: Offline
Points: 95
Post Options Post Options   Thanks (0) Thanks(0)   Quote doronsh Quote  Post ReplyReply Direct Link To This Post Topic: Using multiple devices
    Posted: Sep 10 2009 at 7:44pm
Hi Andy,
 
Please check if the Windows audio service stopped.
If yes, try to disable the Windows "Remote Access Connection Manager" service.
 
Doronsh
Back to Top
Andy View Drop Down
Newbie
Newbie


Joined: Sep 01 2009
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote Andy Quote  Post ReplyReply Direct Link To This Post Posted: Sep 02 2009 at 8:11am
I ran a test last night using only 1 modem.  Exact same code, but added an option to only use the one modem which makes calls.  It ran from before 5pm until I stopped it a bit after 8am.  It made over 2000 calls.  No problem.
 
What is the problem with the "Multiple Devices SDK" when using multiple devices?
Back to Top
Andy View Drop Down
Newbie
Newbie


Joined: Sep 01 2009
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote Andy Quote  Post ReplyReply Direct Link To This Post Posted: Sep 01 2009 at 1:50pm
I am using 2 Hiphones, HD00USGR02, firmware update with w2cUsbFw20090402.zip.
I'm running on XP Pro with w2MdPackage20095.zip drivers.
 
My application very consistantly hangs up for no apparent reason after working just fine for over an hour (but, sometimes much less time, sometimes more time) during which time it makes about 1 call/minute with one modem and receives 1 call/minute with the other modem. 
 
Below are the Hiphone log statements:
=======================================
 

27 11:59:55:738 [5852] » Dev#1 Open Completed.

.
.  Note: This run started at about noon and ran untill almost 2:00
.
 11584 13:49:17:129 [5284] » Dev#0 Open Completed.
 11585 13:49:17:801 [5284] » Dev#0 Event: Headset 1 Plugged In. ExData 0x0000, TID: 0x0210
 11586 13:49:20:144 [5284] » Dev#0 GetLineWirePlugged called.
 11587 13:49:20:144 [5284] » Dev#0 GetLineWirePlugged error: < W2C_DEV_MODEL_LITE.
 11588 13:49:20:160 [5284] » Dev#0 Call Started: w9,1,5133971233 TID: 14B8
 11589 13:49:20:160 [5284] » Dev#0 Command: Switch: Line - Audio Stream, Phone Monitor
 11590 13:49:20:160 [5284] » Dev#0 Command: Mute Phone
 11591 13:49:20:160 [5284] » Dev#0 Command: Wait for Dial Tone
 11592 13:49:20:191 [5284] » Dev#0 Opened wave Aux: ID=4, Name=Hi-Phone Desktop USB Aux (2).
 11593 13:49:21:144 [5284] » Dev#0 Event: Dial tone detected. ExData 0x0000, TID: 0x0A9C
 11594 13:49:21:144 [5284] » Dev#0 Command: DTMF Dial 9
 11595 13:49:22:176 [5284] » Dev#0 Event: Dial tone detected. ExData 0x0000, TID: 0x0A9C
 11596 13:49:23:004 [5284] » Dev#0 Event: Dial tone detected. ExData 0x0000, TID: 0x0A9C
 11597 13:49:23:348 [5284] » Dev#0 Command: DTMF Dial 1
 11598 13:49:25:535 [5284] » Dev#0 Command: DTMF Dial 5
 11599 13:49:25:723 [5284] » Dev#0 Command: DTMF Dial 1
 11600 13:49:25:926 [5284] » Dev#0 Command: DTMF Dial 3
 11601 13:49:26:113 [5284] » Dev#0 Command: DTMF Dial 3
 11602 13:49:26:301 [5284] » Dev#0 Command: DTMF Dial 9
 11603 13:49:26:504 [5284] » Dev#0 Command: DTMF Dial 7
 11604 13:49:26:691 [5284] » Dev#0 Command: DTMF Dial 1
 11605 13:49:26:879 [5284] » Dev#0 Command: DTMF Dial 2
 11606 13:49:27:082 [5284] » Dev#0 Command: DTMF Dial 3
 11607 13:49:27:269 [5284] » Dev#0 Command: DTMF Dial 3
 11608 13:49:27:457 [5284] » Dev#0 Event: Call - Dialing done. ExData 0x0000, TID: 0x14B8
 11609 13:49:27:473 [5284] » Dev#0 Call Thread Ended with 0, TID: 14B8
 11610 13:49:32:285 [5284] » Dev#1 Event: Line Start Ring Detected. ExData 0x0000, TID: 0x12E8
 11611 13:49:32:660 [5284] » Dev#1 Event: Line Stop Ring Detected. ExData 0x0000, TID: 0x12E8
 11612 13:49:32:879 [5284] » Dev#1 Event: Line Start Ring Detected. ExData 0x0000, TID: 0x12E8
 11613 13:49:33:269 [5284] » Dev#1 Event: Line Stop Ring Detected. ExData 0x0000, TID: 0x12E8
 11614 13:49:33:566 [5284] » Dev#0 Command: Un-Mute Phone
 11615 13:49:33:566 [5284] » Dev#0 Event: Call answered: Voice detected. ExData 0x0000, TID: 0x0A9C
 11616 13:49:33:582 [5284] » Dev#0 Command: Switch: Phone - Audio Stream - Line
 11617 13:49:33:582 [5284] » Dev#0 Command: Select Headset
 11618 13:49:33:629 [5284] » Recording from wave in ID 2, Hi-Phone Desktop USB (2)
 11619 13:49:34:269 [5284] » Dev#0 Event: Call answered: Voice detected. ExData 0x0000, TID: 0x0A9C
 11620 13:49:34:426 [5284] » Dev#1 CID: 4109986000 ; 01/09 13:51 12e8
 11621 13:49:34:457 [5284] » Dev#1 Event: Caller ID, size: 24. ExData 0x0000, TID: 0x12E8
 11622 13:49:34:754 [5284] » Recording from wave in ID 0, Hi-Phone Desktop USB
 11623 13:49:34:754 [5284] » Dev#1 Command: Switch: Line - Audio Stream
 11624 13:49:34:769 [5284] » Dev#1 Command: Un-Mute Phone
 11625 13:49:34:769 [5284] » Dev#1 Command: Start Analysis
 11626 13:49:34:785 [5284] » Dev#1 Opened wave Aux: ID=3, Name=Hi-Phone Desktop USB Aux.
 11627 13:49:34:973 [5284] » Dev#0 Event: Call answered: Voice detected. ExData 0x0000, TID: 0x0A9C
 11628 13:49:35:176 [5284] » Dev#0 Event: Call answered: Speech detected. ExData 0x0000, TID: 0x0A9C
 11629 13:49:35:363 [5284] » Dev#0 Event: Call answered: Voice detected. ExData 0x0000, TID: 0x0A9C
 11630 13:49:35:629 [5284] » Dev#1 Event: Call answered: Voice detected. ExData 0x0000, TID: 0x1148
 11631 13:49:35:644 [5284] » Dev#1 Command: Switch: Phone - Audio Stream - Line
 11632 13:49:35:660 [5284] » Dev#1 Command: Select Headset
 11633 13:49:35:754 [5284] » Dev#0 Event: Call answered: Voice detected. ExData 0x0000, TID: 0x0A9C
 11634 13:49:35:801 [5284] » Dev#1 Playback Thread Started
 11635 13:49:36:129 [5284] » Dev#0 Event: Call answered: Speech detected. ExData 0x0000, TID: 0x0A9C
 11636 13:49:36:254 [5284] » Dev#0 Event: Call answered: Voice detected. ExData 0x0000, TID: 0x0A9C
 11637 13:49:36:769 [5284] » Dev#0 Event: Call answered: Voice detected. ExData 0x0000, TID: 0x0A9C
 11638 13:49:36:801 [5284] » Dev#0 Command: DTMF Dial 1
 11639 13:49:37:301 [5284] » Dev#1 Event: Call answered: Voice detected. ExData 0x0000, TID: 0x1148
 11640 13:49:37:676 [5284] » Dev#1 Event: Call answered: Voice detected. ExData 0x0000, TID: 0x1148
 11641 13:49:37:785 [5284] » Dev#0 Event: Call answered: Speech detected. ExData 0x0000, TID: 0x0A9C
 11642 13:49:37:801 [5284] » Playback Done ID = 2
 11643 13:49:37:801 [5284] » Dev #0 m_LastMciPlaybackID = 0
 11644 13:49:37:801 [5284] » Dev #1 m_LastMciPlaybackID = 2
 11645 13:49:37:801 [5284] » Calling Playback Done for Dev # 1
 11646 13:56:48:723 [3828] BTMMHOOK 01.09.2009 13:56:48 Thread<17B4> Hook DLL loaded
 11647 13:57:30:957 [3828] BTMMHOOK 01.09.2009 13:57:30 Thread<17B4> Hook DLL unloaded
======================================================
 
From what I see the last thing it would be invoking  "On_AsyncPlaybackDone()"
 
Below is the "On_AsyncPlaybackDone()" function definition.....

private static uint m_ui_DeviceID = 0;

private static uint m_ui_DeviceID_4CBs =1 ;
 
 
CWay2callDriver.OnAsyncPlaybackDone += new CWay2callDriver.DelegateNoParams
 
(On_AsyncPlaybackDone);
        static void On_AsyncPlaybackDone(ushort DeviceID)
        {
            lock(typeof(MakeCalls))
            {
                if (DeviceID == m_us_DeviceID_4CBs)
                {
                    m_Logger.LogEvent("On_AsyncPlaybackDone", "DeviceID: " + DeviceID.ToString()
                        + " m_CB_PlayWavFileFinished.SET");
                    m_CB_PlayWavFileFinished.Set();
                }
                else if (DeviceID == m_us_DeviceID)
                {
                    m_Logger.LogEvent("On_AsyncPlaybackDone", "DeviceID: " + DeviceID.ToString()
                        + " m_PlayWavFileFinished.SET");
                    m_PlayWavFileFinished.Set();  // only used w/FIFOs
                }
            }
        }
I see the "108", "Call Answered" events in my application, below are my last few log statements. The "INFO" lines are from the "On_NativeDevice" function.
 
09/09/01 01:49:37.301 |On_NativeDevice |** INFO ** DeviceID: 1 Device Event: 108 Call answered: Voice detected
09/09/01 01:49:37.301 |Get_CBCallConne |Get m_bL_CBCallConnected=True
09/09/01 01:49:37.301 |OnCB_CallConnec |--->m_d_CBCallConnected = True
09/09/01 01:49:37.301 |Get_CBCallConne |Get m_bL_CBCallConnected=True
09/09/01 01:49:37.676 |On_NativeDevice |** INFO ** DeviceID: 1 Device Event: 108 Call answered: Voice detected
09/09/01 01:49:37.676 |Get_CBCallConne |Get m_bL_CBCallConnected=True
09/09/01 01:49:37.676 |OnCB_CallConnec |--->m_d_CBCallConnected = True
09/09/01 01:49:37.691 |Get_CBCallConne |Get m_bL_CBCallConnected=True
09/09/01 01:49:37.785 |On_NativeDevice |** INFO ** DeviceID: 0 Device Event: 108 Call answered: Speech detected
09/09/01 01:49:37.801 |Get_CallConnect |Get m_bL_CallConnected=True
 
An example of where this workd:
 10843 13:45:05:551 [5284] » Playback Done ID = 1
 10844 13:45:05:551 [5284] » Dev #0 m_LastMciPlaybackID = 1
 10845 13:45:05:566 [5284] » Calling Playback Done for Dev # 0
 10846 13:45:05:566 [5284] » Dev#0 Event: Playback done. ExData 0x0000, TID: 0x142C
and my logs:
09/09/01 01:45:05.566 |On_AsyncPlaybac |DeviceID: 0 m_PlayWavFileFinished.SET
 
I've monitored my memory usage and it is stable.
 
Why did fail like this after running for almost 2 hours ?
 
 
 
 
 
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down



This page was generated in 0.095 seconds.