Hi,

I have tried to use the sipxConfigSetSpkrAudioHook call to set up the  speaker audio hook.

 

The branch is the sipXtapi-media-update branch, checked out 21-8-2006. For my test i am using Microsoft:

 

 Visual Studio 2005

Version 8.0.50727.42  (RTM.050727-4200)

Microsoft .NET Framework

Version 2.0.50727

Installed Edition: Professional

 

I am using the API from C# (I don’t know if that is the problem)

I get one call of my speaker audio hook method, and after the return, an exception is thrown. The exception text is:

 

************** Exception Text **************

System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host

 

Server stack trace:

   at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)

   at System.Runtime.Remoting.Channels.SocketStream.Read(Byte[] buffer, Int32 offset, Int32 size)

   at System.Runtime.Remoting.Channels.SocketHandler.ReadFromSocket(Byte[] buffer, Int32 offset, Int32 count)

   at System.Runtime.Remoting.Channels.SocketHandler.BufferMoreData()

   at System.Runtime.Remoting.Channels.SocketHandler.Read(Byte[] buffer, Int32 offset, Int32 count)

   at System.Runtime.Remoting.Channels.SocketHandler.ReadAndMatchFourBytes(Byte[] buffer)

   at System.Runtime.Remoting.Channels.Tcp.TcpSocketHandler.ReadVersionAndOperation(UInt16& operation)

   at System.Runtime.Remoting.Channels.Tcp.TcpClientSocketHandler.ReadHeaders()

   at System.Runtime.Remoting.Channels.Tcp.TcpClientTransportSink.ProcessMessage(IMessage msg, ITransportHeaders requestHeaders, Stream requestStream, ITransportHeaders& responseHeaders, Stream& responseStream)

   at System.Runtime.Remoting.Channels.BinaryClientFormatterSink.SyncProcessMessage(IMessage msg)

 

 

It should be noted, that when I have commented the setSpkrAudioHook call out, everything is working fine (with a normal headset). My question is:

1)      Has anybody experienced a similar problem?

2)      Has anybody seen the audiohook facility work at all for this branch?

 

Regards

Viggo Lomborg

 

_______________________________________________
sipxtapi-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipxtapi-dev/

Reply via email to