First off, thanks to RonR and many others for their support in these forums. I've been reading through a number of topics and learned far more here than from the admin guide.
I'm trying to create a star code script that inserts a variable number into a call string.
Specifically, a company I do business with has all of their DIDs use their extension number, By that I mean that extension 1288 has a DID of 212-555-1288. Also, all of their extensions start with 12 (it's a small company).
So I want a star code - *12 - with which I can dial the last 2 digits and have the full DID dialed.
I tried this:
*12xx, dial company, call(**1121255512$code)
and several variations.
I expect $code to be the last 2 digits I dial after *12.
As in the predefined *75 -- *75(x|xx), Check Speed Dial, say($Spd[$Code])
With that failing, I thought maybe setting and using a speed dial might work:
*12xx, dial company, set($spd[99],**1121255512$code),call($spd[99])
In either case, when I dial *1288, I get "the number you dialed was rejected by the service provider".
One variation I tried -
*12xx, dial company, call(**1121255512($code))
produces a busy signal.
Any ideas on how this might work? I suspect that $code is not getting replaced as I thought it would.