Ticket #1671 (closed Feature Requests: fixed)

Opened 4 years ago

Last modified 4 years ago

new ring group/hunt method

Reported by: jimmyt86 Assigned to:
Priority: minor Milestone:
Component: Ring Groups Version:
Keywords: Cc:
Confirmation: SVN Revision (if applicable):
Backend Engine: All Backend Engine Version:

Description

I would like a new ring group method to show up in the 'ring groups' and 'follow me' pages.

When used, this method will take the list of extensions and try each for the first available and not on a call. If that extension isn't answered, it will not move on to the next, just the no answer destination.

This feature is good for implementing asterisk/freePBX behind an old PABX system with system wide line keys. (We are using it now.) Eg. If line 1 is in use ring line 2. There is no point ringing line 3 if line 2 didn't answer so head over to voice mail.

I have written the code required, see attached file.

Attachments

patchfile (5.8 kB) - added by jimmyt86 on 01/11/07 06:13:02.
SVN patchfile
patchfile-1.txt (6.8 kB) - added by naftali5 on 01/14/07 09:53:46.
Added another method which ignores call waiting. (slight adjustment)

Change History

01/11/07 06:13:02 changed by jimmyt86

  • attachment patchfile added.

SVN patchfile

01/11/07 11:22:55 changed by wiseoldowl

I think that if this were implemented, it might be possible to close #1434 since this seems to provide most of what is being requested there. And it seems like a good addition to me, and one that I think would be useful in situations where all you want to do is ring the first available free line in a group, and no other.

01/11/07 15:33:42 changed by naftali5

priority +101 jumping is depreciated as far as i know. it should do this

52 	+exten => s,43,GotoIf($["foo${RingGroupMethod}" != "foofirstavailable" ]?45)

01/11/07 18:48:46 changed by dbickowski

This would also close ticket #394

01/11/07 23:38:43 changed by naftali5

With the posted patch, offhook phones (not all... for sure some ATAs) are not skipped (unless they are in a call) and come back busy and count as the one, and end the call. this will fix it.

replace

52 	+exten => s,43,GotoIf($["${RingGroupMethod}" != "firstavailable" ]?45)

with

52 	+exten => s,43,GotoIf($[$["foo${RingGroupMethod}" != "firstavailable"] | $["foo${DialStatus}" = "fooBUSY"]]?45)

This still does not take care of call waiting. An extension with call waiting enabled is dialed regardless of whether they are on the phone, and if they don't answer, the call ends there.

Anyone who wants this functionality

and does not need the option, but wants it always. does not need the entire patch. The fix is a simple as replacing a few lines in extensions.conf

;original
;exten => s,42,Dial(${${HuntMember}}${ds} ) ; dialparties will set the priority to 20 if $ds is not null and its a hunt group
;exten => s,43,Set(HuntLoop=$[1 + ${HuntLoop}])
;exten => s,44,Set(HuntMembers=$[${HuntMembers} - 1])
;exten => s,45,Goto(s,22)
;exten => s,50,DBdel(CALLTRACE/${CT_EXTEN})
;exten => s,51,Goto(s,42)

;replaced        
exten => s,42,Dial(${${HuntMember}}${ds} ) ; dialparties will set the priority to 20 if $ds is not null and its a hunt group
exten => s,43,GotoIf($[$["foo${RingGroupMethod}" != "foohunt"] | $["foo${DialStatus}" = "fooBUSY"]]?45)
exten => s,44,Set(HuntMembers=$[0 - 1])
exten => s,45,Set(HuntLoop=$[1 + ${HuntLoop}])
exten => s,46,Set(HuntMembers=$[${HuntMembers} - 1])
exten => s,47,Goto(s,22)
exten => s,50,DBdel(CALLTRACE/${CT_EXTEN})
exten => s,51,Goto(s,42)

01/14/07 09:46:07 changed by naftali5

uploaded patchfile-1.txt which adds the method "firstnotonphone" to skip anyone on phone even if they have CW enabled. This is because "firstavailable" only rings one extension, and you may rather not have that one be a call waiting ring.

This patch also will move on to the next if the first is offhook and not dialing, and returns busy to asterisk. Furthermore, it will roll tothe next if the first hits ignore on their sip phone (providing the sip phone returns busy to asterisk - standard response)

01/14/07 09:53:46 changed by naftali5

  • attachment patchfile-1.txt added.

Added another method which ignores call waiting. (slight adjustment)

01/25/07 15:19:25 changed by naftali5

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

put in 2.3 as r3651, r3653

01/25/07 15:21:02 changed by naftali5

sorry was r3652, and r3653