How can SLAStation offer DISA and also handle pre-dialled numbers?
This is the problem that has to solved – when a user dials a number on the IP phone, it sends an INVITE to Asterisk that must be handled in one specific dial plan context. However, depending on how the user dialled the number you may want the dial plan to do any one of the following three things: • Use the Dial command to call an internal number – no shared trunk line is required • Use the SLAStation command to select a specific shared trunk line, present dial tone to the user and then wait for the user to dial an external number • Use the SLAStation command to select any available shared trunk line, then immediately place a call on that shared trunk line using a pre-dialled number Our previous examples for the dial plan would not be able to handle the last of those three cases and it is not immediately obvious how you can use SLAStation to perform two different jobs. The trick that must be used is to set a variable before calling SLAStation and then make the dial plan inspect the vari