id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	confirmation	distro	engine	distro_ver	engine_version	svn_rev
5913	Intercom doesn't check for ext_chanisavail when user have multiple devices	ldperron		In modules/paging/functions.inc.php, the app-paging generated does verify if the called party is busy, but only when the called party only have one device (device and user mode). In consequence, if the called party is already on the phone, his call is being put on hold when someone tries to page him.\r\n\r\nDoing this check in the loop makes it looking like that (works well here, but some stuff may be required to make it more general):\r\n(around line 148)\r\n{{{\r\n                                $ext->add($context, $code, 'begin', new ext_chanisavail('${DB(DEVICE/${CUT(DEVICES,&,${ITER})}/dial)}','s'));\r\n                                $ext->add($context, $code, '', new ext_gotoif('$["${AVAILORIGCHAN}" = ""]', 'skip'));\r\n                                $ext->add($context, $code, '', new ext_setvar('DIALSTR', $ds));\r\n                                $ext->add($context, $code, 'skip', new ext_setvar('ITER', '$[${ITER} + 1]'));\r\n                                $ext->add($context, $code, '', new ext_gotoif('$[${ITER} <= ${LOOPCNT}]', 'begin'));\r\n                                $ext->add($context, $code, '', new ext_gotoif('$["${DIALSTR}" = ""]', 'end'));\r\n\r\n}}}\r\n\r\nThanks\r\n	Bugs	closed	minor	2.11	Paging & Intercom	2.10-branch	fixed	deviceanduser paging		Need testing		All			
