Detecting call state on outbound calls

From: General Listmanager <General.listmanager@pysdiscussext.py.intel.com>
Date: Mon Nov 03 2003 - 11:44:39 EST

From: Brett McCoy

I am developing an auto attendant type server, for use with pre-paid phone cards. Once the user gets his card authorized, he can dial out. I am having trouble detecting the call state on the outbound line -- I am using GlobalCall and gc_MakeCall() returns immediately. I check the call state, it tells me it is in the connected state, but then I check it again (in a loop) to see if the state has changed, and the next time it is in a disconnected state. This break my loop, and then returns the application back to another state where it's waiting for incoming calls. However, even after the loop breaks out, the outbound call is still dialing out and I get ringback on that line and the outbound and inbound can talk to each other. But I can never detect when the outbound has hung up, because the application thinks the outbound line is already in a disconnected state.

I guess what I am asking is how do I detect that the call is dialing and waiting for a connection. There is a call state for this, but I never seem to get that call state back.

To reply: mailto:General.26242@pysdiscussext.py.intel.com
To start a new topic: mailto:General@pysdiscussext.py.intel.com
To login: http://members.support.dialogic.com/wbproxy/wbpx.dll/~general
Received on Mon Nov 03 11:53:37 2003

This archive was generated by hypermail 2.1.8 : Sat Jul 16 2005 - 03:48:30 EDT