Solved

Dialing *72 through provider rather than Asterisk phone system.

Posted on 2014-04-01
14
1,003 Views
Last Modified: 2014-04-30
I am using FreePBX 2.11 on Asterisk 11.7 with a 4-port analog card and DAHDI. We would like to be able to allow users to dial *72 and *73 to forward/unforward calls at the provider level instead of through the phone system, and only on line 3.

For example, someone picks up the phone and dials *72. This opens up an outside line to line 3 and dials *72 outbound through line 3. They get Comcast's call forwarding prompts and when finished they hang up. To remove the call forwarding on line 3, they dial *73 which dials out through the third line and uses Comcasts system to remove the call forwarding.

How can I do this?  Thanks
0
Comment
Question by:OAC Technology
  • 7
  • 4
  • 3
14 Comments
 
LVL 14

Expert Comment

by:Don Thomson
ID: 39969504
I'm not familiar with the FreePBX 2.11 capabilities but in order to access a particular line - you would have to dial a direct access code for that line 3 first then use your *72/*73


If you just dial the standard access code 9 or whatever you use, and line 3 is in use - you will get the next one in sequence without knowing which line you have.
0
 
LVL 2

Author Comment

by:OAC Technology
ID: 39969515
How do I get direct access to line 3? I think that's exactly what they need.
0
 
LVL 14

Expert Comment

by:Don Thomson
ID: 39970266
You do that in Dialing Routes
You will need to configure 2 routes
1 - *73  should require a pin #  and should go out on Trunk 3
2 - *72,987-654-3210  (Forwarded to number) should require a pin and should go out only on trunk 3

These two routes should also be restricted to whichever extensions are authorized to start or cancel the Forwarding
0
 
LVL 2

Author Comment

by:OAC Technology
ID: 39970639
So just for my education, I create a route for *72,"phone number" and replace "phone number' with the actual number and the user just dials *72"phonenumber" from their phone and hits dial? Does this then send the entire command out through the trunk using the comma as a sort of a wait?
0
 
LVL 14

Expert Comment

by:Don Thomson
ID: 39970989
I believe that would work from what I've seen
0
 
LVL 2

Author Comment

by:OAC Technology
ID: 39972280
It doesn't seem to be working. When I try this and hit dial, it just seems to sit at a dial tone. Do you know if there is a way for me to get direct access to line 3 so they can dial whatever they want once they connect directly to line 3?
0
 
LVL 15

Expert Comment

by:Phonebuff
ID: 39972375
Yes,  

     But it's not a simple mode.  You need to add logic so that that a particular extension will always go out a particular Dahdi Trunk.   I do something similar for a customer who wants extension 1234s calls to anyways use a specific trunk so that the caller id sent will always be a direct inward number for the return call.  

     If you want to do this hack, requires root & vi comfort, I will post the information..

     -----------
0
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 
LVL 2

Author Comment

by:OAC Technology
ID: 39978161
That would be great if you could post the information
0
 
LVL 2

Author Comment

by:OAC Technology
ID: 39988774
I'm still looking for as solution if anyone has any ideas. Phonebuff, any way you can post that config?

Thanks
0
 
LVL 15

Expert Comment

by:Phonebuff
ID: 39990191
Sorry,

   On the road this week, will post it this weekend..
0
 
LVL 2

Author Comment

by:OAC Technology
ID: 40020917
Any update on the config?

Thanks
0
 
LVL 15

Accepted Solution

by:
Phonebuff earned 500 total points
ID: 40020979
;  extensions_custom.conf.  
;
[macro-dialout-trunk-predial-hook]
;
; - check if the trunk is a fake trunk we configure
; - if not, just exit (do nothing)
; - if so, lookup in a maintained astdb structure for a specific channel, e.g.
;
; - PRIVCHANS/<exten_num> : <zapchan>
;
; If that channel exists, then try dialing on that specific channel
; in either case, return BYPASS
;
exten => s,1,Set(PREDIAL_HOOK_RET=)
exten => s,n,GotoIf($["${OUT_${DIAL_TRUNK}}" != "AMP:Local/faketrunk"]?continue)
exten => s,n,GotoIf($["${DB(PRIVCHANS/${AMPUSER})}" = ""]?leave)
exten => s,n,Set(OUT_${DIAL_TRUNK}=ZAP/${DB(PRIVCHANS/${AMPUSER})})
exten => s,n,Set(custom=)
exten => s,n(continue),MacroExit()
exten => s,n(leave),Set(PREDIAL_HOOK_RET=BYPASS)
;

Open in new window


In Asterisk add your Private channels -- For 1203 it's channel 3.
;
database put PRIVCHANS 1210 3  

Then set you outroutes to use the faketrunk first and then the normal routes in case your fake trunk is busy -  Hope this helps -

extensions_additional.conf: OUT_2 = AMP:Local/faketrunk
0
 
LVL 15

Expert Comment

by:Phonebuff
ID: 40028683
Datadudes, How did you make out ?
0
 
LVL 2

Author Comment

by:OAC Technology
ID: 40032805
It took some doing, but I got this working. Thank you!!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Hey there Heard about jingle, the add on for XMPP that enables point to point audio between two XMPP clients. No server config necessary. Actually quite a cool feature. However, how good is it if you can not use those voice capabilities to do a P…
Transferring data across the virtual world became simpler but protecting it is becoming a real security challenge.  How to approach cyber security  in today's business world!
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now