<div dir="ltr"><div>I'm messing around with pre-dialer handlers today and running into a wall.<br></div><div><br>Dial has the U option where I can execute a Gosub when the channels bridge and there I can set the variable GOSUB_RESULT to BUSY to make Dial act like the channel I called was Busy.<br><br></div><div>I want to do something similar with a Pre-Dial handler but don't see a way I can Set a variable or return a value that will cause Dial to act like the channel I called was Busy?<br></div><div><br>Use case:<br>Endpoint 100 calls Extension 101<br><br></div><div>Extension 101 has a Pre-Dial Handler that checks how many calls Endpoint 101 has in progress and if it's greater than X returns a Busy.<br></div><div><br></div><div>Dial acts like it got a Busy back from the Endpoint, Sets DIALSTATUS and continues through it's dial-plan.<br><br></div><div>I've tried using the BUSY() Application inside my Pre-Dial handler.<br></div><div>I've tried sending BUSY back as a Value with Return() to be picked up in GOSUB_RETVAL<br></div><div>I've tried setting DIALSTATUS to BUSY.<br><br></div><div>Am I trying to use the wrong tool for the Job here?<br><br></div><div>Related, Why can we have multiple Hangup handlers but not Pre-Dial handlers?<br></div><div>-- <br><div class="gmail_signature">A human being should be able to change a diaper, plan an invasion, butcher a hog, conn a ship, design a building, write a sonnet, balance accounts, build a wall, set a bone, comfort the dying, take orders, give orders, cooperate, act alone, solve equations, analyze a new problem, pitch manure, program a computer, cook a tasty meal, fight efficiently, die gallantly. Specialization is for insects.<br>---Heinlein</div>
<br></div></div>