Displaying 4 results from an estimated 4 matches for "bash_test".
2020 Mar 26
2
E-Mail notification for each received call
...nity.freepbx.org/t/email-notification-of-incoming-missed-call/29913
-------------- next part --------------
#!/bin/bash
cd ~asterisk
echo test > /home/asterisk/test
-------------- next part --------------
[macro-hangupcall-custom]
exten => s,1,DumpChan()
exten => s,n,System(/home/asterisk/bash_test)
exten => s,n,MacroExit()
2020 Mar 27
2
E-Mail notification for each received call
Hi Daniel,
Am 27.03.20 um 09:24 schrieb Administrator:
> Hangup is h extension. your macro will never be executed. Solution:
>
> same = n,Dial(whatever)
> same = n,[...])
> same = n,Hangup
>
> exten = h,1,1,DumpChan()
> same = n,System(/home/asterisk/bash_test)
I don't really understand your code…
I think I don't have to edit the first part of the conf file (" same =
n,Dial(whatever) "), you just mean the second part of the code is
executed by "n,Hangup"?
Then I have to add the second part to extensions_custom.conf, context...
2020 Mar 27
0
E-Mail notification for each received call
...-hangup-call/45169
> [2]
> https://community.freepbx.org/t/email-notification-of-incoming-missed-call/29913
Hangup is h extension. your macro will never be executed. Solution:
same = n,Dial(whatever)
same = n,[...])
same = n,Hangup
exten = h,1,1,DumpChan()
same = n,System(/home/asterisk/bash_test)
--
Daniel
2020 Mar 28
0
E-Mail notification for each received call
...Am 27.03.20 um 09:24 schrieb Administrator:
>> Hangup is h extension. your macro will never be executed. Solution:
>>
>> same = n,Dial(whatever)
>> same = n,[...])
>> same = n,Hangup
>>
>> exten = h,1,1,DumpChan()
>> same = n,System(/home/asterisk/bash_test)
> I don't really understand your code…
>
> I think I don't have to edit the first part of the conf file (" same =
> n,Dial(whatever) "), you just mean the second part of the code is
> executed by "n,Hangup"?
Yes. h exetnsion is executed when call is hang...