Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * Inbound calls from bootc@bootc.net
- */
- context user-bootc {
- includes {
- out-pstn;
- };
- // speed-dial
- mob => goto out-pstn|07818605535|1;
- home => goto out-pstn|01271830058|1;
- // withold number
- _141X. => {
- // Sanity checking
- if ("${EXTEN}" =~ "[&,/|@]") {
- Playback(invalid, noanswer);
- Wait(0.5);
- Congestion();
- }
- CALLERPRES() = "prohib";
- goto out-pstn|${EXTEN:3}|1;
- };
- // txrx test numbers
- _12X => {
- Dial(SIP/txrx/${EXTEN});
- Hangup(${HANGUPCAUSE});
- };
- };
- /*
- * Main entry point to dial out to PSTN
- */
- context out-pstn {
- includes {
- // Ofcomverter's exceptions list
- pstn-ofcomverter;
- };
- // 10-digit national numbers
- _0[1-3]XXXXXXXXX => goto pstn-dial|${EXTEN}|1;
- // 10-digit corporate numbers
- _05XXXXXXXXX => goto pstn-dial|${EXTEN}|1;
- // 10-digit mobile + personal numbers
- _07XXXXXXXXX => goto pstn-dial|${EXTEN}|1;
- // 10-digit special services (non-premium)
- _08XXXXXXXXX => goto pstn-dial|${EXTEN}|1;
- // 10-digit special services (premium)
- _09XXXXXXXXX => goto pstn-dial|${EXTEN}|1;
- // 6-digit local numbers
- _[2-8][0-9]XXXX => goto pstn-dial|01271${EXTEN}|1;
- _[9][0-8]XXXX => goto pstn-dial|01271${EXTEN}|1;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement