Return to LanScape's home page Go back a page...       Active TopicsActive Topics   Display List of Forum MembersMember List   Knowledge Base SearchSearch   HelpHelp  RegisterRegister  LoginLogin

LanScape VOIP Media Engine™ - Technical Support
 LanScape Support Forum -> LanScape VOIP Media Engine™ - Technical Support
Subject Topic: Verify/Validate Status Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
mfitzgerald
Vetran
Vetran


Joined: June 14 2006
Location: United States
Posts: 142
Posted: May 05 2008 at 4:41pm | IP Logged Quote mfitzgerald

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 View mfitzgerald's Profile Search for other posts by mfitzgerald Visit mfitzgerald's Homepage
 
support
Administrator
Administrator


Joined: January 26 2005
Location: United States
Posts: 1666
Posted: May 05 2008 at 4:56pm | IP Logged Quote support

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 View support's Profile Search for other posts by support Visit support's Homepage
 
mfitzgerald
Vetran
Vetran


Joined: June 14 2006
Location: United States
Posts: 142
Posted: May 05 2008 at 5:18pm | IP Logged Quote mfitzgerald

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 View mfitzgerald's Profile Search for other posts by mfitzgerald Visit mfitzgerald's Homepage
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum






Contact LanScape Hear what the Lawyers have to say How youm may use this site Read your privacy rights