asterisk - Originate from a Label within a Macro -
How can I get a call from a label within the macro?
I know that this is not okay, but I'm not sure how to call the Viking line in the origin CMD.
In the last two lines of the macro, what happens in place of "local / callwiking @ .." . ". [Macro-Paginator] exten =>, S, 1, Answer () exten => S, n, System (Asterisk-RX" Channel Local / CallWiking @ $ {MACRO_CONTEXT} / n extension $ {ARG1} @soundeffects "starts) exten =>, n, hangup () exten => S, n (callwiking), dial (SIP / 10010, D ($ {ARG2})) exten => S, n, hangup () [soundeffects] exten => Wakeupbell, 1 (wakeupbell), reply () same =>, playback (custom / bells / Day time) similar => N, hangup ()
The macro is called like this:
[from internal-custom ]; Freepbx custom reference exten => 23 333,1, Macro (Pageinator, AngelBell, 1); Angelus Bell , except that I want to convert it to macro so that I use the same routine with different DTMF tones (Arg2) and soundfile (arg1)
[angelsbell] exten => startbail, 1, answer () exten => startbell, en, no op (ringing-zee De bell! $ {CHANNEL} dialed: $ {MACRO_EXTEN}) exten = & gt; Starbell, N, System (Estique-RX "Channel Local / Callwiking @ AngelBelles / N Extension Tongue @ Soundfix"); Exten = & gt; Startbell, n, hangup () exten = & gt; Calling, 1, Dial (SIP / 10010, D (5)) exten = & gt; Callwiking, 2, hangup ()
Well, it will work though it is not very beautiful. This is not a macro, but at least one location:
[from internal-custom]; Freepbx custom reference exten = & gt; 21005,1, goto (Pageinator, Test, 1); Test sound via destination 2005 (a custom device extension so that it can be included as a destination) [Pageinator] exten = & gt; OfficeBell, 1, Answer () exten => OfficeBell, N, System (Exclic-RX "Channel Local / CallWiking @ $ {Contestite} / N Extension Ting @ Soundfix") Extend => OfficeBell, N, HangP () exten = & gt; Startofficebell, 1, Answer () exten => Startofficebell, n, System (Asterisk-RX "Channel Local / CallWiking 1 @ $ {CONTEXT} / N Extension Ting @ Soundfix") exten = & gt; Startofficebell, n, hangup () exten = & gt; Angelusel, 1, Answer () exten => Enganesel, N, System (Asterisk-Rx "Channel Local / CallWiki 1 @ $ {Contest} / N Extension Ting @ Soundfix") Extend & gt; Enganesl, N, Hangup () exten = & gt; Test, 1, answer () exten = & gt; Trials, N, Systems (Asterisk-RX "Channel Local / CallWiking 1 @ $ {CONTEXT} / N Extension Ting @ Soundfix") exten = & gt; Test, n, hangup () exten = & gt; Calling 1, 1, Dial (SIP / 100, 10, D (1)) exten = & gt; Call waiting 1, n, hangup () exten = & gt; Calling 5.1, Dial (SIP / 100, 10, D (5)) exten = & gt; Calling 5, n, hangup (); ---------------------------------------------------- ---- [soundproofing] exten = & gt; Wakeupbell, 1 (wakeupbell), Answer () Same => N, playback (custom / bells / time of day) equals = & gt; N, hangup ()
Comments
Post a Comment