<div dir="ltr">All,<div><br></div><div>I have a weird situation here and haven't been able to turn up any useful information in searches, so I thought I'd post to the list.</div><div><br></div><div>Essentially, I have a customer who wants us to forward some of their calls to various cell phones. Normally, I'd use FollowMe() for this (that's how most of our customers are set up.) However, this particular customer has some requirements that make it impractical to use FollowMe() as far as I could tell, so I had to engineer a dialplan-based solution instead. Of note, they DO want the call recipient (on a cell phone) to have to press a key to confirm the call, so that calls don't end up in personal voice mail boxes.</div>
<div><br></div><div>So, this is what I did:</div><div><br></div><div>I setup a custom context within their configuration to send these forwarded calls to. Can't remember off the top of my head why I had to use a custom context as opposed to sending it to the SIP provider directly, but I'm pretty sure there was a reason. Here's the custom context:</div>
<div><br></div><div><div>[hosted-1004-outcall]</div><div>exten => _NXXNXXXXXX,1,Dial(SIP/sip-provider/+1${EXTEN},60,rU(hosted-1004-ccall))</div><div>same => n,Busy()</div></div><div><br></div><div>Now, whenever I want to forward a call to a cell phone (or more), I use:</div>
<div><br></div><div>Dial(Local/5555551212@hosted-1004-outcall&Local/5555551213@hosted-1004-outcall)</div><div><br></div><div>This sends the call to both phones simultaneously, using the above Dial() code. As you can see, I'm using the U option to call a subroutine on the *callee* (cell phone user) when they answer. The code for that is:</div>
<div><br></div><div><div>[hosted-1004-ccall]</div><div>exten => s,1,Read(MOT,pbx/1004/ccall,1,in,3,5)</div><div>same => n,GotoIf($["${MOT}" == "1"]?10)</div><div>same => n,Set(GOSUB_RESULT=CONTINUE)</div>
<div>same => n,Return()</div><div>same => 10,Set(GOSUB_RESULT=)</div><div>same => n,Return()</div><div>exten => h,1,Set(GOSUB_RESULT=CONTINUE)</div><div>same => n,Return()</div><div>exten => i,1,Set(GOSUB_RESULT=CONTINUE)</div>
<div>same => n,Return()</div></div><div><br></div><div>The idea here being that "pbx/1004/ccall" is played to the cell phone user (basically letting them know to press 1 to take the call.) If they press 1, we return with no result and the call gets connected. Otherwise we return with CONTINUE and the call is rejected (by the local channel) as busy, and the next step in the dial plan continues (go to office voice mail -- which isn't listed here.)</div>
<div><br></div><div>Anyway, this has all worked fine and dandy for quite some time. However, in the past few weeks I've been getting complaints that whenever they press 1, nothing happens, and the menu is simply repeated. Eventually it exceeds the timeout/maximum tries and disconnects.</div>
<div><br></div><div>I've tried testing this with my cell phone, with my cable company phone, IP phones, etc. Same result.</div><div><br></div><div>I've even upgraded from 11.7.0 to 11.11.0 just today (in case there was a bugfix for it) -- same problem.</div>
<div><br></div><div>What's weird is that I can set up a DID to call Read() and it works fine. It just seems to not hear (for lack of a better term) the digits when being called as the U parameter to dial.</div><div><br>
</div><div>FWIW, I have also tested NOT using the Local/NXXNXXXXXX dialing and actually using a Dial to our upstream carrier, still with the U option, and same results. So, I honestly don't think it is an issue with using Local channels.</div>
<div><br></div><div>Any thoughts? Am I just blatantly missing something? Or is something broke?</div><div><br></div><div>Thanks in advance. :)</div><div><div><br></div>-- <br><div dir="ltr">Jeremy Gault, KD4NED<br>Senior Engineer, Voiceopia<br>
office: (423) 509-8000 x 102<br>toll-free: (866) 928-4078 x 102<br><div>fax: (423) 244-0565</div></div>
</div></div>