Open Source Training Seminar FreePBX Paid Support

Ticket #2569 (closed Feature Requests: fixed)

Opened 10 months ago

Last modified 3 months ago

Day / Night Hinting to control Day/Night from a BLF phone key.

Reported by: olivier1010 Assigned to:
Priority: minor Milestone: 2.5
Component: Other Module Version:
Keywords: Cc:
Confirmation: Confirmed SVN Revision (if applicable):
Backend Engine: Asterisk 1.4.x Backend Engine Version:

Description

It should be really usefull with asterisk 1.4 to define Hinting for the Day/Night Controls.

Actually there is no simple way to know a day night status from a phone, except dialing it two times.

We are using day night to switch a transfer to a mobile phone, and very often we forget to disable it because there is no Hinting.

Attachments

functions.inc.php (9.6 kB) - added by baldbrad on 06/28/08 09:17:12.
Updated functions.inc.php with Devstate lines added

Change History

12/16/07 18:10:31 changed by p_lindheimer

  • confirmation changed from Unreviewed to Confirmed.
  • version deleted.
  • milestone changed from Cut Line to 3.0.

custom states is not officially part of 1.4 which is what it is going to take to do this.

12/23/07 05:23:49 changed by francesco_r

I have made a custom patch some time ago for this: see #2273.

12/23/07 06:00:23 changed by olivier1010

I tried it, it works nicely.

Philippe said that custom hinting is not supported inside asterisk 1.4.

Well, that's right, but what is really supported by Digium ? Quite often tickets are closed fastly without support.

Asterisk 1.6 will officialy "support" the custom hinting extension. So FreePBX 2.4 could integrate it, as we are close to the 1.6 release date. This would permitt users in need of it to get it today through the asterisk 1.4 Devstate patch.

06/28/08 09:16:29 changed by baldbrad

I have attached a copy of functions.inc.php that has francesco_r's patch added. This was added to the latest update of the daynight module. By the way, this works as a regular daynight module if you don't have the FUNC_DEVSTATE, so I don't see why it can't be incorporated into FreePBX anyway. It does no harm if asterisk doesn't have FUNC_DEVSTATE, so why not just add it for those who have it compiled under 1.4 or are already using 1.6?

06/28/08 09:17:12 changed by baldbrad

  • attachment functions.inc.php added.

Updated functions.inc.php with Devstate lines added

06/28/08 09:28:17 changed by p_lindheimer

One reason to not add it yet is that it is not complete. My testing has shows that the state is lost upon Asterisk restarting. This will be an issue for anything that uses func_devstate, e.g. DND, daynight, maybe CF, etc. This means that other changes are needed in the startup process FreePBX uses with Asterisk that will initialize all custom devstates upon startup. This is something that needs to be generalized and we will look at for the next release.

06/28/08 14:00:15 changed by olivier1010

I've just tested this and can't see any lost of states upon asterisk restart, even restarting the phone before asterisk start.

I'm using asterisk 1.4.20.1

I'm using the patch since a couple of monthes without problems.

olivier.

06/28/08 14:13:00 changed by p_lindheimer

thanks for the feedback - I'll have another look, could be related to an older version of Asterisk but please make sure you do the following when you test:

  1. type "core show hints" to confirm the state of the hints
  2. stop asterisk completely (amportal stop)
  3. unplug the phone
  4. start asterisk (amportal start)
  5. check the state of the hints "core show hints"
  6. power up the phone

When you do that, do the hints show the proper state and does the phone come back up properly with the correct state?

06/28/08 14:40:34 changed by p_lindheimer

olivier,

looks like you are right and there is just an issue with 'show hints' at least on 1.4.19 which I was testing on. It shows unavailable when Asterisk comes back up however the phone's blf sees the proper hint which is stored in astdb. So this will all be a bit easier to bring up.

06/28/08 17:36:17 changed by olivier1010

I did your test and all is ok.

This should be very interesting as well to implement CF and similar custom hintings.

This avoid to program proprietary XML applications on the phones. Actually, to my knowledge, only Aastra gives free XML applications for Asterisk.

Olivier.

07/04/08 14:19:54 changed by p_lindheimer

  • status changed from new to closed.
  • resolution set to fixed.
Donate



Support
Download
Develop
Forums
News
Documentation
Paid Support
About

Paid Ads