Hello-- I'd like to do a little processing on external phone numbers from within the asterisk pbx. Fairly simple stuff, but... devilishly hard to make it work so far!
1. I'd like to dial 9 to get an outside line. 2. If the number dialed after the 9 is 754XXXX, I'd like it to go thru unmodified. It's the only local number available here. 3. I'd like all 1 XXX XXX XXXX numbers to go thru after the 9, unmolested. 4. After the 9, I'd like all other 7 digit numbers to be dialed 1307NXXXXXX. Simple enough, right? I wrote up the following: [outwork] ignorepat => 9 exten => _91XXXXXXXXXX,1,StripMSD,1 exten => _1XXXXXXXXXX,2,Dial,Zap/2/BYEXTENSION exten => _9754XXXX,1,StripMSD,1 exten => _754XXXX,2,Dial,Zap/2/BYEXTENSION exten =>_9NXXXXXX,1,StripMSD,1 exten =>_NXXXXXX,2,Prefix,1307 exten => _1307NXXXXXX,3,Dial,Zap/2/BYEXTENSION [workext] ;; the active context for an internal extension include => outwork ... (other extensions, but not 9) exten => t,1,Congestion exten => i,1,Congestion exten => o,1,Congestion And it doesn't work, and neither do maybe a dozen variants. I split the 3 groups up into different contexts, I remove the second two StripMSD commands. I sequence the priorities from 1 to 7. I tried setting all the post-StripMSD commands to priority 2, I... and on and on, including combinations of the above, and the best I can do, is get the first one to work. I can dial 91<10 digits>, and the <10 digits> are sent out to the phone company, and the phone rings out there. All the rest might have me wait some seconds, and then I get the congestion tone. And, on top of everything else, the moment I touch 9 on the extension, the dial tone goes away. So IgnorePat doesn't work in this situation, either. Checked the documentation for dial and stripmsd, and none of the examples cover anything more complicated than a single pattern. What am I missing? murf _______________________________________________ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users
