Open Source Training Seminar FreePBX Paid Support

Ticket #2589 (reopened Feature Requests)

Opened 8 months ago

Last modified 1 month ago

Advanced hints-based call reouting

Reported by: lazytt Assigned to: p_lindheimer
Priority: minor Milestone: 3.0
Component: Core - Users/Devices Version: 2.4-branch
Keywords: Cc:
Confirmation: Unreviewed SVN Revision (if applicable):
Backend Engine: All Backend Engine Version:

Description

I must of writen #2587 when I was half asleep. When I reread it the next day, I immediately realised my confusion. I was about to close it, but then it dawned on me: some people WANT the blf to function as intercom. Some people prefer the blf to work as call pick up.

Maybe the best would be to incorporate BOTH features, like this: when you press the blf, if the extension is ringing it will act as call pickup. If the extortions is available it will act as intercom. If the extension is busy, the call will go to vm, vmx, etc. (or perhaps it would function as "force overide" of paging?).

Obviously, all it would be possible to enable/disables all the options from the extension/device page for those that want the "classic" behaviour.

This kind of call routing would extended the capabilities of high end phones which aren't written specifically with asterisk in mind, yet (IMHO) should support such configurations (such as Polycom - which doesnt support call pick up (and the grandstream does - go figure!)).

Attachments

devstate.agi (1.7 kB) - added by naftali5 on 01/06/08 21:30:28.

Change History

01/06/08 21:30:28 changed by naftali5

  • attachment devstate.agi added.

01/06/08 21:30:58 changed by naftali5

haven't had time for asterisk development for a while, but I know i _had_ to have this one, and - as probably do many others...

don't have the time to integrate - it is still hand coded on my server, not built in to freepbx code.

this has to be added to the dialplan - can be any prefix as long as it does not interfere, and matches the hint (i chose the same as grandstream's) careful with this one - freepbx has a feature code which may already declare this prefix

exten => _**.,1,Noop(Check DevState ${EXTEN:2} by ${CALLERID(num)})
exten => _**.,n,macro(devstate,${EXTEN:2})
exten => _**.,n,Noop(BlindTransfer:${BLINDTRANSFER})
exten => _**.,n,GotoIf($[$["${PEERDEVSTATE}" = "8"]&$["foo${BLINDTRANSFER}" = "foo"]]?ring)
exten => _**.,n,Goto(${EXTEN:2},1)
exten => _**.,n(ring),Pickup(${EXTEN:2})

a hint for each extension

exten => **611,hint,SIP/611

obviously the directory entry for the polycom

		<item>
			<ln>Last</ln>
			<fn>First</fn>
			<ct>**611</ct>
			<sd>1</sd>
			<rt>3</rt>
			<dc/>
			<ad>0</ad>
			<ar>0</ar>
			<bw>1</bw>
			<bb>0</bb>
		</item>

a new macro

[macro-devstate]
exten => s,1,DeadAGI(devstate.agi)

and the attached file for /var/lib/asterisk/agi-bin

07/07/08 23:20:43 changed by lazytt

naftali5 - any chance of seeing this integrated (probably to dialparties.agi)?

07/18/08 06:47:12 changed by lazytt

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

I think r6047 answers here. Thanks Philippe!

07/18/08 06:52:26 changed by p_lindheimer

  • status changed from closed to reopened.
  • resolution deleted.
  • milestone changed from Cut Line to 3.0.

nope. You can achieve this if the telephone's firmware can assist you, but the requested functionality is not incorporated in the dialplan. I do have some code somewhere which does almost this, within the dialplan, so that it can work on any phone but it's pretty raw code so is not going to make it this time around. So the feature request is not really addressed.

Donate



Support
Download
Develop
Forums
News
Documentation
Paid Support
About

Paid Ads