Author |
|
mfitzgerald Vetran
Joined: June 14 2006 Location: United States Posts: 142
|
Posted: May 05 2008 at 4:41pm | IP Logged
|
|
|
Is there a method to verify the status of the engine/Phone Line?
Something like:
Code:
bool IsRegistered(void)
or
SomeEnum GetEngineStatus(void)
SomeEnum:
Registering
Registered
NotRegistered
|
|
|
Or possibly..
Code:
SomeEnum GetLineStatus(int Line = 0)
SomeEnum:
OnHold
OnCall/OffHook
NotAvailable
OnHook
etc
|
|
|
|
Back to Top |
|
|
support Administrator
Joined: January 26 2005 Location: United States Posts: 1666
|
Posted: May 05 2008 at 4:56pm | IP Logged
|
|
|
Hi Fitz,
In the current version of the media engine there is the IsUserNameRegistered() API proc that can be used to see if a particular name/extension has been registered.
There is also the GetLineStatus() API procedure that will return the current state of any phone line.
You used the phrase: “verify the status of the engine/Phone Line”. If you can clarify that statement a bit more as to what specific info/status you are looking for, we may be able to reply with more info.
Support
|
Back to Top |
|
|
mfitzgerald Vetran
Joined: June 14 2006 Location: United States Posts: 142
|
Posted: May 05 2008 at 5:18pm | IP Logged
|
|
|
Granted we are using an older version of the MediaEngine.
I was mainly looking for a way in which to verify the engine was registered, attempting to register or unregistered. At this time LS appears to continuously register even if the PBX it’s trying to register doesn’t respond/exist. As this doesn’t occur within a thread I would have control over, nor the ability to see if LS was still attempting to register I cannot verify for certain if it is actually attempting to register or not.
As a side thought for the phone line. note: In our version TelephonyEngineCallback does not receive proper phone line #. We assume everything is occurring for phoneLine 0 as we are not yet using the second PhoneLine.
(Specific to TelephonyEngineCallback)
I have a side project that I am building to monitor a station as it’s actually taking calls. I was trying to figure out if there was a way to verify that a call is Active/OnHold/OnHook/OffHook. We can presume the events as they come through the TelephonyEngineCallback are all for line 0, but I’m thinking of possible future implementations and wish this project to be a little more flexible than making assumptions. Especially when I believe your newer LS Engine reports the PhoneLine as expected.
I forgot about GetPhoneLineStatus() so that should actually do the job for what I’m thinking about. However our version doesn’t appear to have IsUserNameRegistered(). I hope we can get a newer version soon.
Thanks again.
|
Back to Top |
|
|