Debian Codegraph @

pbx/ael/ael-test/ael-test5/extensions.ael

raw
1 ///////////////////////////////////////////////////////////////////////////////
2 // Helpdesk Queue
3
4 context hd-queue {
5 s => {
6 NoOp(Add a background sound to tell the user their options);
7 Queue(helpdesk|t);
8 NoOp(Put in options to apologize and send user to voicemail);
9 };
10
11 0 => goto default|0|1;
12 1 => {
13 Dial([email protected]);
14 Congestion(10);
15 Hangup;
16 };
17 };
18
19
20 context l903-calling {
21 _9903NXXXXXX => {
22 Realtime(l903_ext,exchange,${EXTEN:4:3},l903_);
23 if ("${l903_exchange}foo" = "foo") {
24 Playback(num-outside-area);
25 SayDigits(1);
26 Playback(and-area-code);
27 Playback(before-the-number);
28 Hangup;
29 };
30 &dialout(${EXTEN});
31 Congestion(10);
32 Hangup;
33 };
34 };
35 ///////////////////////////////////////////////////////////////////////////////
36 // Extensions pulled from houston.conf
37 // Converted the extension list to the database
38
39 context houston-calling {
40 _9713NXXXXXX => {
41 Realtime(hou_713_ext,exchange,${EXTEN:4:3},hou_713_);
42 if ("${hou_713_exchange}foo" = "foo") {
43 Playback(num-outside-area);
44 SayDigits(1);
45 Playback(and-area-code);
46 Playback(before-the-number);
47 Hangup;
48 };
49 &dialout(${EXTEN});
50 Congestion(10);
51 Hangup;
52 };
53
54 _9281NXXXXXX => {
55 Realtime(hou_281_ext,exchange,${EXTEN:4:3},hou_281_);
56 if ("${hou_281_exchange}foo" = "foo") {
57 Playback(num-outside-area);
58 SayDigits(1);
59 Playback(and-area-code);
60 Playback(before-the-number);
61 Hangup;
62 };
63 &dialout(${EXTEN});
64 Congestion(10);
65 Hangup;
66 };
67
68 _9832NXXXXXX => {
69 Realtime(hou_832_ext,exchange,${EXTEN:4:3},hou_832_);
70 if ("${hou_832_exchange}foo" = "foo") {
71 Playback(num-outside-area);
72 SayDigits(1);
73 Playback(and-area-code);
74 Playback(before-the-number);
75 Hangup;
76 };
77 &dialout(${EXTEN});
78 Congestion(10);
79 Hangup;
80 };
81 };
82
83
84 ///////////////////////////////////////////////////////////////////////////////
85 // Extensions pulled from huntsville.conf
86 // Converted the extension list to the database
87
88 context huntsville-calling {
89 _9NXXXXXX => {
90 Realtime(hv_ext,exchange,${EXTEN:1:3},hv_);
91 if ("${hv_exchange}foo" = "foo") {
92 Playback(num-outside-area);
93 SayDigits(1);
94 Playback(and-area-code);
95 Playback(before-the-number);
96 Hangup;
97 };
98 &dialout(${EXTEN});
99 Congestion(10);
100 Hangup;
101 };
102
103 _NXXXXXX => {
104 NoOp(Stripping last four to see what extension we're dialing);
105 Set(LAST4=${EXTEN:3});
106 StripLSD(4);
107 };
108
109 i => Playback(pbx-invalid);
110 h => Hangup;
111 };
112
113 ///////////////////////////////////////////////////////////////////////////////
114 // Extensions pulled from macros.conf
115
116 macro dialout( number ) {
117 Realtime(call_info,exten,${CALLERIDNUM:5},mon_);
118 if ("${mon_monitor}" = "YES") {
119 Dial(PJSIP/${number}@zgw1.zvbwu.edu,,wW);
120 Dial(PJSIP/${number}@zgw2.zvbwu.edu,,wW);
121 } else {
122 Dial(PJSIP/${number}@zgw1.zvbwu.edu);
123 Dial(PJSIP/${number}@zgw2.zvbwu.edu);
124 };
125 return;
126 };
127
128 // Standard extension macro:
129 // ${ext} - Extension
130 macro stdexten( ext ) {
131 Realtime(sipusers,name,${ext},sip_user_);
132 Realtime(call_info,exten|${ext},info_);
133 if ("${sip_user_name}foo" = "foo") {
134 Wait(1);
135 &dialout(${ext});
136 Congestion(10);
137 Hangup;
138 };
139 NoOp(${CALLERIDNUM});
140 RealtimeUpdate(call_info,exten,${ext},calltrace,${CALLERIDNUM});
141 System(/usr/local/bin/db_update.sh call_info calltrace ${CALLERIDNUM} exten ${ext} &);
142 &checkdnd(${ext});
143 &checkcf(${ext});
144 Realtime(call_info,exten,${CALLERIDNUM:5},mon_);
145 if ("${mon_monitor}" = "YES") {
146 Dial(PJSIP/${info_forwardto},25,wW);
147 } else {
148 Dial(PJSIP/${info_forwardto},25);
149 };
150 switch ("${DIALSTATUS}") {
151 case "BUSY":
152 &checkcfb(${ext});
153 break;
154 case "CHANUNAVAIL":
155 Dial(IAX2/asterisk:[email protected]/${info_forwardto},25,wW);
156 MailboxExists(${ext});
157 // if ("${VMBOXEXISTSSTATUS}" = "FAILED") {
158 // Congestion(10);
159 // Hangup;
160 // };
161 &uvm(${ext});
162 Hangup;
163 break;
164 case "CONGESTION":
165 MailboxExists(${ext});
166 if ("${VMBOXEXISTSSTATUS}" = "FAILED") {
167 Congestion(10);
168 Hangup;
169 };
170 &bvm(${ext});
171 Hangup;
172 break;
173 default:
174 MailboxExists(${ext});
175 if ("${VMBOXEXISTSSTATUS}" = "FAILED") {
176 Congestion(10);
177 Hangup;
178 };
179 &uvm(${ext});
180 Hangup;
181 };
182 Hangup;
183 };
184
185 macro uvm( ext ) {
186 Dial(PJSIP/u${ext}@ixtlchochitl.zvbwu.edu);
187 Playback(im-sorry);
188 Playback(voice-mail-system);
189 Playback(down);
190 Congestion(10);
191 Hangup;
192 };
193
194 macro bvm( ext ) {
195 Dial(PJSIP/b${ext}@ixtlchochitl.zvbwu.edu);
196 Playback(im-sorry);
197 Playback(voice-mail-system);
198 Playback(down);
199 Congestion(10);
200 Hangup;
201 };
202
203 macro checkdnd( ext ) {
204 if ("${info_donotdisturb}foo" = "foo") {
205 NoOp(Do Not Disturb is not active);
206 } else
207 &uvm(${ext});
208 return;
209 };
210
211 macro checkcf( ext ) {
212 if ("${info_forwardto}foo" = "foo")
213 if ("${ext}" = "43974") {
214 Set(info_forwardto=${ext}&SCCP/${ext});
215 } else {
216 Set(info_forwardto=${ext}&PJSIP/${ext}w);
217 };
218 return;
219 };
220
221 macro checkcfb( ext ) {
222 if ("${info_forwardbusy}foo" = "foo") {
223 Wait(1);
224 MailboxExists(${ext});
225 if ("${VMBOXEXISTSSTATUS}" = "FAILED") {
226 &dialout(${ext});
227 Hangup;
228 };
229 &bvm(${ext});
230 Hangup;
231 };
232 &stdexten(${info_forwardbusy});
233 return;
234 };
235
236 ///////////////////////////////////////////////////////////////////////////////
237 // Extensions pulled from test.conf
238
239 context test-include {
240 includes {
241 test-digium;
242 test-sounds;
243 test-phinfo;
244 };
245 };
246
247 context test-digium {
248 *500 => {
249 Dial(IAX2/[email protected]/s@default);
250 Playback(demo-nogo);
251 Hangup;
252 };
253 };
254
255 context test-sounds {
256 *501 => {
257 Answer;
258 Musiconhold;
259 Wait(1);
260 Hangup;
261 };
262 };
263
264 context test-phinfo {
265 *505 => {
266 Answer;
267 NoOp(${CALLERIDNUM:5});
268 SayDigits(${CALLERIDNUM:5});
269 Hangup;
270 };
271 };
272
273 ///////////////////////////////////////////////////////////////////////////////
274 // Extensions pulled from external.conf
275
276 context long-distance {
277 includes {
278 local1;
279 };
280
281 _91XXXXXXXXXX => &dialout(${EXTEN});
282 _9011. => &dialout(${EXTEN});
283 };
284
285 context local1 {
286 includes {
287 default;
288 };
289
290 911 => &dialout(911);
291 9911 => &dialout(9911);
292
293 _9NXXXXXX => goto huntsville-calling|${EXTEN}|1;
294 _936NXXXXXX => {
295 goto 9${EXTEN:3}|1;
296 Congestion(10);
297 Hangup;
298 };
299
300 _832NXXXXXX => {
301 goto 9${EXTEN}|1;
302 Congestion(10);
303 Hangup;
304 };
305
306 _713NXXXXXX => {
307 goto 9${EXTEN}|1 ;
308 Congestion(10);
309 Hangup;
310 };
311
312 _281NXXXXXX => {
313 goto 9${EXTEN}|1;
314 Congestion(10);
315 Hangup;
316
317 };
318
319 _NXXNXXXXXX => {
320 goto 9${EXTEN}|1;
321 goto 91${EXTEN}|1;
322 Congestion(10);
323 Hangup;
324 };
325
326 _91800NXXXXXX => &dialout(${EXTEN});
327 _91866NXXXXXX => &dialout(${EXTEN});
328 _91877NXXXXXX => &dialout(${EXTEN});
329 _91888NXXXXXX => &dialout(${EXTEN});
330 _91900NXXXXXX => &dialout(${EXTEN});
331 _91976NXXXXXX => &dialout(${EXTEN});
332 _9713NXXXXXX => goto houston-calling|${EXTEN}|1;
333 _9281NXXXXXX => goto houston-calling|${EXTEN}|1;
334 _9832NXXXXXX => goto houston-calling|${EXTEN}|1;
335 _9903NXXXXXX => goto l903-calling|${EXTEN}|1;
336
337 _31NXXNXXXXXX => &dialout(${EXTEN});
338
339 h => Hangup;
340 };
341
342 ///////////////////////////////////////////////////////////////////////////////
343 // Extensions pulled from internal.conf
344
345 context from-scm2 {
346 _4XXXX => {
347 NoOp(DIALING PJSIP EXTENSION ${EXTEN} - FROM ${CALLERIDNUM});
348 Dial(PJSIP/${EXTEN},20,wW);
349 Hangup;
350 };
351
352 _6XXXX => {
353 NoOp(DIALING PJSIP EXTENSION ${EXTEN} - FROM ${CALLERIDNUM});
354 Dial(PJSIP/${EXTEN},20,wW);
355 Hangup;
356 };
357 };
358
359 ///////////////////////////////////////////////////////////
360 // All internal extensions work through the default context
361 // Phones that can only make internal calls should be in
362 // this context.
363 ///////////////////////////////////////////////////////////
364
365 context default {
366 // Include the contexts in the files that allow us to make these phone calls
367 includes {
368 vm-include;
369 apps-include;
370 test-include;
371 };
372
373 // ALWAYS have an 'h' extension
374 h => {
375 NoOp(Hangup cause was: ${HANGUPCAUSE});
376 Hangup;
377 };
378
379 // We like to hear that we dialed an invalid extension
380 i => Playback(pbx-invalid);
381
382 // Dial the operator
383 0 => &dialout(0);
384
385 // Send voicemail calls to the vm-* contexts to be handled
386 voicemail => goto vm-direct|s|1;
387 5555 => goto vm-direct|s|1;
388 62100 => goto vm-extension|s|1;
389
390 // These are our campus extensions, send them to the macro
391 _6XXXX => &stdexten(${EXTEN});
392 _4XXXX => &stdexten(${EXTEN});
393 // These are campus extensions as well, might need to take this out though.
394 _9294XXXX => goto _4XXXX|1;
395 _9496XXXX => goto _6XXXX|1;
396
397 // These allows us to dial from the directory in our phone without worrying about dialing 9
398 _936294XXXX => {
399 goto ${EXTEN:5}|1;
400 goto 9${EXTEN:3}|1;
401 Congestion(10);
402 Hangup;
403 };
404
405 _936496XXXX => {
406 goto ${EXTEN:5}|1;
407 goto 9${EXTEN:3}|1;
408 Congestion(10);
409 Hangup;
410 };
411 };
412
413 ///////////////////////////////////////////////////////////////////////////////
414 // Extensions pulled from apps.conf
415
416 context apps-include {
417 includes {
418 app-agents;
419 app-dnd;
420 app-callforward;
421 app-calltrace;
422 app-conferences;
423 app-ssd;
424 app-psd;
425 app-idblock;
426 app-helpdesk;
427 app-dictate;
428 };
429 };
430
431 context app-agents {
432 *54 => {
433 Answer;
434 Wait(1);
435 Read(agent_no|agent-user);
436 AgentCallbackLogin(${agent_no}|s${CALLERIDNUM:5});
437 Playback(agent-loginok);
438 Hangup;
439 };
440
441 *55 => {
442 Answer;
443 Wait(1);
444 AgentCallbackLogin(${agent_no});
445 Hangup;
446 };
447 };
448
449 context app-calltrace {
450 // caller dials this to find out the last call missed and possibly call back
451 *69 => goto app-calltrace-perform|s|1;
452 };
453
454 context app-calltrace-perform {
455 s => {
456 Answer;
457 Wait(1);
458 Background(info-about-last-call);
459 Background(telephone-number);
460 RealTime(call_info|exten|${CALLERIDNUM:5}|ct_);
461 if ("${ct_calltrace}foo" = "foo") {
462 Playback(loligo/from-unknown-caller);
463 Hangup;
464 } else {
465 SayDigits("${ct_calltrace}");
466 Set(TIMEOUT(digit)=3);
467 Set(TIMEOUT(response)=7);
468 Background(loligo/to-call-this-number);
469 Background(press-1);
470 Background(loligo/silence/5);
471 };
472 };
473
474 1 => goto local1|${ct_calltrace}|1;
475
476 i => {
477 Playback(vm-goodbye);
478 Hangup;
479 };
480
481 t => {
482 Playback(vm-goodbye);
483 Hangup;
484 };
485 };
486
487 context app-dnd {
488 *78 => {
489 Answer;
490 Wait(1);
491 RealtimeUpdate(call_info,exten,${CALLERIDNUM:5},donotdisturb,YES);
492 System(/usr/local/bin/db_update.sh call_info donotdisturb YES exten ${CALLERIDNUM:5} &);
493 Playback(do-not-disturb);
494 Playback(loligo/activated);
495 Hangup;
496 };
497
498 *79 => {
499 Answer;
500 Wait(1);
501 RealtimeUpdate(call_info,exten,${CALLERIDNUM:5},donotdisturb|);
502 System(/usr/local/bin/db_update.sh call_info donotdisturb '' exten ${CALLERIDNUM:5} &);
503 Playback(do-not-disturb);
504 Playback(loligo/de-activated);
505 Hangup;
506 };
507 };
508
509 context app-callforward {
510 // forwards calling extension to input number *72{EXTEN}
511 _*72. => {
512 RealtimeUpdate(call_info,exten,${CALLERIDNUM:5},forwardto,${EXTEN:3});
513 System(/usr/local/bin/db_update.sh call_info forwardto ${EXTEN:3} exten ${CALLERIDNUM:5} &);
514 Answer;
515 Wait(1);
516 Playback(loligo/call-fwd-unconditional);
517 Playback(loligo/for);
518 Playback(loligo/extension);
519 SayDigits(${CALLERIDNUM:5});
520 Playback(loligo/is-set-to);
521 SayDigits(${EXTEN:3});
522 Hangup;
523 };
524
525 // prompts for extension to forward to
526 *72 => {
527 Answer;
528 Wait(1);
529 Playback(please-enter-your);
530 Playback(extension);
531 Background(then-press-pound);
532 VMAuthenticate(|s);
533 Background(loligo/ent-target-attendant);
534 Read(toext,loligo/then-press-pound);
535 Wait(1);
536 RealtimeUpdate(call_info,exten,${AUTH_MAILBOX},forwardto,${toext});
537 System(/usr/local/bin/db_update.sh call_info forwardto ${toext} exten ${AUTH_MAILBOX} &);
538 Playback(loligo/call-fwd-unconditional);
539 Playback(loligo/for);
540 Playback(loligo/extension);
541 SayDigits(${AUTH_MAILBOX});
542 Playback(loligo/is-set-to);
543 SayDigits(${toext});
544 Hangup;
545 };
546
547 // cancels dialed extension call forward
548 _*73. => {
549 Realtime(voicemail,mailbox,${EXTEN:3},auth_);
550 Answer;
551 Wait(1);
552 Authenticate(${auth_password});
553 RealtimeUpdate(call_info,exten,${EXTEN:3},forwardto,);
554 System(/usr/local/bin/db_update.sh call_info forwardto '' exten ${EXTEN:3} &);
555 Wait(1);
556 SayDigits(${EXTEN:3});
557 Playback(loligo/call-fwd-cancelled);
558 Hangup;
559 };
560
561 // cancels call forward for calling extension
562 *73 => {
563 RealtimeUpdate(call_info,exten,${CALLERIDNUM:5},forwardto,);
564 System(/usr/local/bin/db_update.sh call_info forwardto '' exten ${CALLERIDNUM:5} &);
565 Answer;
566 Wait(1);
567 Playback(loligo/call-fwd-cancelled);
568 Hangup;
569 };
570
571 // dialed call forward on busy
572 _*90. => {
573 RealtimeUpdate(call_info,exten,${CALLERIDNUM:5},forwardbusy,${EXTEN:3});
574 System(/usr/local/bin/db_update.sh call_info forwardbusy ${EXTEN:3} exten ${CALLERIDNUM:5} &);
575 Answer;
576 Wait(1);
577 Playback(loligo/call-fwd-on-busy);
578 Playback(loligo/for);
579 Playback(loligo/extension);
580 SayDigits(${CALLERIDNUM:5});
581 Playback(loligo/is-set-to);
582 SayDigits(${EXTEN:3});
583 Hangup;
584 };
585
586 // cancels call forward on busy for calling extension
587 *91 => {
588 RealtimeUpdate(call_info,exten,${CALLERIDNUM:5},forwardbusy|);
589 System(/usr/local/bin/db_update.sh call_info forwardbusy '' exten ${CALLERIDNUM:5} &);
590 Answer;
591 Wait(1);
592 Playback(loligo/call-fwd-on-busy);
593 Playback(loligo/de-activated);
594 Hangup;
595 };
596
597 h => Hangup;
598 };
599
600 context app-idblock {
601 _*67. => {
602 Set(CALLERID(name)=Anonymous);
603 &stdexten(${EXTEN:3});
604 };
605 };
606
607 context app-dictate {
608 *1 => {
609 Dictate();
610 Hangup;
611 };
612 };
613
614 context app-ssd {
615 // *59 <xx> <y.> - Set system speed dial <xx> to digits <y.>
616 // *59 <xx> 0 - Delete system speed dial <xx>
617 // *59 <xx> - Review system speed dial <xx>
618 // *1xx - Dial speed dial <xx>
619 _*59XXX. => {
620 Answer;
621 RealtimeUpdate(ssd,sd,${EXTEN:3:2},extension,${EXTEN:5});
622 System(/usr/local/bin/db_update.sh systemsd extension ${EXTEN:5} sd ${EXTEN:3:2} &);
623 Wait(1);
624 Playback(loligo/speed-dial);
625 SayDigits(${EXTEN:3:2});
626 Playback(loligo/has-been-set-to);
627 SayDigits(${EXTEN:5});
628 Hangup;
629 };
630
631 _*59XX0 => {
632 Answer;
633 RealtimeUpdate(ssd,sd,${EXTEN:3:2},extension,);
634 System(/usr/local/bin/db_update.sh systemsd extension '' sd ${EXTEN:3:2} &);
635 Wait(1);
636 Playback(loligo/speed-dial);
637 SayDigits(${EXTEN:3:2});
638 Playback(loligo/has-been-cleared);
639 Hangup;
640 };
641
642 _*59XX => {
643 Answer;
644 Realtime(ssd,sd,${EXTEN:3},ssd_);
645 if ("${ssd_extension}foo" = "foo") {
646 Playback(loligo/speed-dial);
647 SayDigits(${EXTEN:3:2});
648 Playback(loligo/is-not-set);
649 Hangup;
650 };
651 Wait(1);
652 Playback(loligo/speed-dial);
653 SayDigits(${EXTEN:3:2});
654 Playback(loligo/is-set-to);
655 SayDigits(${ssd_extension});
656 Hangup;
657 };
658
659 // NTC = number to call
660 _*1XX => {
661 Realtime(ssd,sd,${EXTEN:2},ssd_);
662 if ("${ssd_extension}foo" = "foo") {
663 Answer;
664 Wait(1);
665 Playback(loligo/speed-dial);
666 SayDigits(${EXTEN:2});
667 Playback(loligo/is-not-set);
668 Hangup;
669 };
670 &stdexten(${ssd_extension});
671 Congestion(10);
672 Hangup;
673 };
674 };
675
676 macro check-psd-exists ( ext ) {
677 Realtime(psd,extension,${ext},psd_);
678 if ("${psd_extension}foo" = "foo") {
679 System(/usr/local/bin/create_psd.sh ${ext});
680 } else
681 NoOp(PSD set for ${ext});
682 return;
683 };
684
685 context app-psd {
686 // *89 <xx> <y.> - Set personal speed dial <xx> to digits <y.>
687 // *89 <xx> 0 - Delete personal speed dial <xx>
688 // *89 <xx> - Review personal speed dial <xx>
689 // *2xx - Dial personal speed dial <xx>
690 _*89XXX. => {
691 &check-psd-exists(${CALLERIDNUM:5});
692 Answer;
693 RealtimeUpdate(psd,extension,${CALLERIDNUM:5},s${EXTEN:3:2},${EXTEN:5});
694 System(/usr/local/bin/db_update.sh personalsd s${EXTEN:3:2} ${EXTEN:5} extension ${CALLERIDNUM:5} &);
695 Wait(1);
696 Playback(loligo/speed-dial);
697 SayDigits(${EXTEN:3:2});
698 Playback(loligo/has-been-set-to);
699 SayDigits(${EXTEN:5});
700 Hangup;
701 };
702
703 _*89XX0 => {
704 &check-psd-exists(${CALLERIDNUM:5});
705 Answer;
706 RealtimeUpdate(psd|extension|${CALLERIDNUM:5}|s${EXTEN:3:2}|);
707 System(/usr/local/bin/db_update.sh personalsd s${EXTEN:3:2} '' extension ${CALLERIDNUM:5} &);
708 Wait(1);
709 Playback(loligo/speed-dial);
710 SayDigits(${EXTEN:3:2});
711 Playback(loligo/has-been-cleared);
712 Hangup;
713 };
714
715 _*89XX => {
716 &check-psd-exists(${CALLERIDNUM:5});
717 Answer;
718 Realtime(psd|extension|${CALLERIDNUM:5}|psd_);
719 Wait(1);
720 if ("${psd_s${EXTEN:3:2}}foo" = "foo") {
721 Playback(loligo/speed-dial);
722 SayDigits(${EXTEN:3:2});
723 Playback(loligo/is-not-set);
724 Hangup;
725 };
726 Playback(loligo/speed-dial);
727 SayDigits(${EXTEN:3:2});
728 Playback(loligo/is-set-to);
729 SayDigits(${psd_s${EXTEN:3:2}});
730 Hangup;
731 };
732
733 // NTC = number to call
734 _*2XX => {
735 &check-psd-exists(${CALLERIDNUM:5});
736 Realtime(psd|extension|${CALLERIDNUM:5}|psd_);
737 if ("${psd_s${EXTEN:2}}foo" = "foo") {
738 Answer;
739 Wait(1);
740 Playback(loligo/speed-dial);
741 SayDigits(${EXTEN:2});
742 Playback(loligo/is-not-set);
743 Hangup;
744 };
745 &stdexten(${psd_s${EXTEN:2}});
746 Congestion(10);
747 Hangup;
748 };
749 };
750
751 context app-helpdesk {
752 *4357 => {
753 &stdexten(41950);
754 Congestion;
755 };
756 };
757
758 context app-conferences {
759 // waiting for room number announcement
760 *86 => goto app-conf-hidden|s|1;
761 };
762
763 context app-conf-hidden {
764 s => {
765 Wait(1);
766 Playback(loligo/please-enter-the);
767 Playback(loligo/extension);
768 read(roomtoenter,loligo/then-press-pound);
769 Meetme(${roomtoenter});
770 Waitexten(8);
771 Hangup;
772 };
773
774 _1. => Meetme(${EXTEN});
775 };
776
777 ///////////////////////////////////////////////////////////////////////////////
778 // Extensions pulled from vm.conf:
779
780 context vm-include {
781 includes {
782 vm-direct;
783 vm-extension;
784 vm-directory;
785 };
786 };
787
788 context vm-direct {
789 s => {
790 Dial(PJSIP/[email protected],20);
791 Playback(im-sorry);
792 Playback(voice-mail-system);
793 Playback(down);
794 Playback(extra/pls-try-call-later);
795 Congestion(10);
796 Hangup;
797 };
798 };
799
800 context vm-extension {
801 s => {
802 Dial(PJSIP/[email protected],20);
803 Playback(im-sorry);
804 Playback(voice-mail-system);
805 Playback(down);
806 Playback(extra/pls-try-call-later);
807 Congestion(10);
808 Hangup;
809 };
810 };
811
812 context vm-directory {
813 5556 => {
814 Dial(PJSIP/[email protected]);
815 Playback(im-sorry);
816 Playback(voice-mail-system);
817 Playback(down);
818 Playback(extra/pls-try-call-later);
819 Congestion(10);
820 Hangup;
821 };
822 };