The bizarre behavior of a extensions_override_freepbx.conf file [SOLVED]

Here is the question:

I have several machines where I use the extensions_override_freepbx.conf file for small customizations

On a machine these customizations are ignored …

I checked the file rights and it’s ok, of course when I edit the file I run the rasterisk -x “core reload” command

But nothing does not take into consideration the file would seem

Current Asterisk Version: 13.13.1

FreePBX 13

Here are some of the files that can help you understand the intent …

If anyone has ideas it would be wonderful even thanks suggestions

/etc/asterisk/extensions_additional.conf

[play-system-recording]
include => play-system-recording-custom
exten => 3,1,Answer
exten => 3,n,Playback(custom/Ci_scusiamo_per_l-attesa)
exten => 3,n,Hangup

exten => 4,1,Answer
exten => 4,n,Playback(custom/)
exten => 4,n,Hangup

exten => 5,1,Answer
exten => 5,n,Playback(custom/Esempio_msg_Uffici_chiusi)
exten => 5,n,Hangup

exten => 2,1,Answer
exten => 2,n,Playback(custom/Esempio_msg_Uffici_chiusi)
exten => 2,n,Hangup

exten => 6,1,Answer
exten => 6,n,Playback(custom/Premi_5_RidRid)
exten => 6,n,Hangup

exten => 7,1,Answer
exten => 7,n,Playback(custom/Grazie_x_5_Rid)
exten => 7,n,Hangup

exten => 1,1,Answer
exten => 1,n,Playback(custom/Buongiorno-_studio_occupato)
exten => 1,n,Hangup

exten => 8,1,Answer
exten => 8,n,Playback(custom/Buongiorno_mattino_audio)
exten => 8,n,Hangup

/etc/asterisk/extensions_override_freepbx.conf

[play-system-recording]
exten => 7,1,Answer
exten => 7,n,Playback(custom/Grazie_x_5_Rid)
exten => 7,n,Set(result=${CURL(http://localhost/ergotel/invmail.php?num=${CALLERID(number)})})
exten => 7,n,Hangup

When modifying existing contexts, you need a (+) after the context name, i.e.:

[play-system-recording](+)
exten => 7,1,Answer
exten => 7,n,Playback(custom/Grazie_x_5_Rid)
exten => 7,n,Set(result=${CURL(http://localhost/ergotel/invmail.php?num=${CALLERID(number)})})
exten => 7,n,Hangup

You may also need to specifically number your priorities, not use n, i.e.:

[play-system-recording](+)
exten => 7,1,Answer
exten => 7,2,Playback(custom/Grazie_x_5_Rid)
exten => 7,3,Set(result=${CURL(http://localhost/ergotel/invmail.php?num=${CALLERID(number)})})
exten => 7,4,Hangup

now I try!
But elsewhere I work and I do not put what you have indicated …
Anyway I try now …

What a strange …
It still does not work
Ignore the change in fact, looking at the log does not make the requested call!
I attach log:

[2018-01-23 15:19:01] VERBOSE[3238][C-0000086b] app_dial.c: Called SIP/204
[2018-01-23 15:19:01] VERBOSE[3238][C-0000086b] app_dial.c: Called SIP/205
[2018-01-23 15:19:01] VERBOSE[3238][C-0000086b] app_dial.c: Called SIP/206
[2018-01-23 15:19:01] VERBOSE[3238][C-0000086b] res_musiconhold.c: Started music on hold, class 'ufficichiusi', on channel 'SIP/01821985743_in-00001a5d'
[2018-01-23 15:19:01] WARNING[3238][C-0000086b] translate.c: no samples for ulawtolin
[2018-01-23 15:19:01] VERBOSE[3238][C-0000086b] app_dial.c: SIP/206-00001a63 connected line has changed. Saving it until answer for SIP/01821985743_in-00001a5d
[2018-01-23 15:19:01] VERBOSE[3238][C-0000086b] app_dial.c: SIP/205-00001a62 connected line has changed. Saving it until answer for SIP/01821985743_in-00001a5d
[2018-01-23 15:19:01] VERBOSE[3238][C-0000086b] app_dial.c: SIP/204-00001a61 connected line has changed. Saving it until answer for SIP/01821985743_in-00001a5d
[2018-01-23 15:19:01] VERBOSE[3238][C-0000086b] app_dial.c: SIP/203-00001a60 connected line has changed. Saving it until answer for SIP/01821985743_in-00001a5d
[2018-01-23 15:19:01] VERBOSE[3238][C-0000086b] app_dial.c: SIP/202-00001a5f connected line has changed. Saving it until answer for SIP/01821985743_in-00001a5d
[2018-01-23 15:19:01] VERBOSE[3238][C-0000086b] app_dial.c: SIP/201-00001a5e connected line has changed. Saving it until answer for SIP/01821985743_in-00001a5d
[2018-01-23 15:19:01] VERBOSE[3238][C-0000086b] app_dial.c: SIP/206-00001a63 is ringing
[2018-01-23 15:19:01] VERBOSE[3238][C-0000086b] app_dial.c: SIP/201-00001a5e is ringing
[2018-01-23 15:19:01] VERBOSE[3238][C-0000086b] app_dial.c: SIP/204-00001a61 is ringing
[2018-01-23 15:19:01] VERBOSE[3238][C-0000086b] app_dial.c: SIP/203-00001a60 is ringing
[2018-01-23 15:19:01] VERBOSE[3238][C-0000086b] app_dial.c: SIP/202-00001a5f is ringing
[2018-01-23 15:19:01] VERBOSE[3238][C-0000086b] app_dial.c: SIP/205-00001a62 is ringing
[2018-01-23 15:19:36] VERBOSE[3238][C-0000086b] app_dial.c: Nobody picked up in 35000 ms
[2018-01-23 15:19:36] VERBOSE[3238][C-0000086b] res_musiconhold.c: Stopped music on hold on SIP/01821985743_in-00001a5d
[2018-01-23 15:19:36] VERBOSE[3238][C-0000086b] pbx.c: Executing [[email protected]:22] Set("SIP/01821985743_in-00001a5d", "DIALSTATUS=NOANSWER") in new stack
[2018-01-23 15:19:36] VERBOSE[3238][C-0000086b] pbx.c: Executing [[email protected]:23] GosubIf("SIP/01821985743_in-00001a5d", "0?NOANSWER,1()") in new stack
[2018-01-23 15:19:36] VERBOSE[3238][C-0000086b] pbx.c: Executing [[email protected]:24] NoOp("SIP/01821985743_in-00001a5d", "Returning since nobody answered") in new stack
[2018-01-23 15:19:36] VERBOSE[3238][C-0000086b] pbx.c: Executing [[email protected]:25] MacroExit("SIP/01821985743_in-00001a5d", "") in new stack
[2018-01-23 15:19:36] VERBOSE[3238][C-0000086b] pbx.c: Executing [[email protected]:16] Gosub("SIP/01821985743_in-00001a5d", "sub-record-cancel,s,1()") in new stack
[2018-01-23 15:19:36] VERBOSE[3238][C-0000086b] pbx.c: Executing [[email protected]:1] Return("SIP/01821985743_in-00001a5d", "") in new stack
[2018-01-23 15:19:36] VERBOSE[3238][C-0000086b] pbx.c: Executing [[email protected]:17] Set("SIP/01821985743_in-00001a5d", "RingGroupMethod=") in new stack
[2018-01-23 15:19:36] VERBOSE[3238][C-0000086b] pbx.c: Executing [[email protected]:18] GotoIf("SIP/01821985743_in-00001a5d", "0?nodest") in new stack
[2018-01-23 15:19:36] VERBOSE[3238][C-0000086b] pbx.c: Executing [[email protected]:19] Set("SIP/01821985743_in-00001a5d", "__CWIGNORE=") in new stack
[2018-01-23 15:19:36] VERBOSE[3238][C-0000086b] pbx.c: Executing [[email protected]:20] Set("SIP/01821985743_in-00001a5d", "__PICKUPMARK=") in new stack
[2018-01-23 15:19:36] VERBOSE[3238][C-0000086b] pbx.c: Executing [[email protected]:21] Set("SIP/01821985743_in-00001a5d", "__NODEST=") in new stack
[2018-01-23 15:19:36] VERBOSE[3238][C-0000086b] pbx.c: Executing [[email protected]:22] Macro("SIP/01821985743_in-00001a5d", "blkvm-clr,") in new stack
[2018-01-23 15:19:36] VERBOSE[3238][C-0000086b] pbx.c: Executing [[email protected]:1] Set("SIP/01821985743_in-00001a5d", "SHARED(BLKVM,SIP/01821985743_in-00001a5d)=") in new stack
[2018-01-23 15:19:36] VERBOSE[3238][C-0000086b] pbx.c: Executing [[email protected]:2] Set("SIP/01821985743_in-00001a5d", "GOSUB_RETVAL=") in new stack
[2018-01-23 15:19:36] VERBOSE[3238][C-0000086b] pbx.c: Executing [[email protected]:3] MacroExit("SIP/01821985743_in-00001a5d", "") in new stack
[2018-01-23 15:19:36] VERBOSE[3238][C-0000086b] pbx.c: Executing [[email protected]:23] Goto("SIP/01821985743_in-00001a5d", "ivr-1,s,1") in new stack
[2018-01-23 15:19:36] VERBOSE[3238][C-0000086b] pbx_builtins.c: Goto (ivr-1,s,1)
[2018-01-23 15:19:36] VERBOSE[3238][C-0000086b] pbx.c: Executing [[email protected]:1] Set("SIP/01821985743_in-00001a5d", "TIMEOUT_LOOPCOUNT=0") in new stack
[2018-01-23 15:19:36] VERBOSE[3238][C-0000086b] pbx.c: Executing [[email protected]:2] Set("SIP/01821985743_in-00001a5d", "INVALID_LOOPCOUNT=0") in new stack
[2018-01-23 15:19:36] VERBOSE[3238][C-0000086b] pbx.c: Executing [[email protected]:3] Set("SIP/01821985743_in-00001a5d", "_IVR_CONTEXT_ivr-1=") in new stack
[2018-01-23 15:19:36] VERBOSE[3238][C-0000086b] pbx.c: Executing [[email protected]:4] Set("SIP/01821985743_in-00001a5d", "_IVR_CONTEXT=ivr-1") in new stack
[2018-01-23 15:19:36] VERBOSE[3238][C-0000086b] pbx.c: Executing [[email protected]:5] Set("SIP/01821985743_in-00001a5d", "__IVR_RETVM=") in new stack
[2018-01-23 15:19:36] VERBOSE[3238][C-0000086b] pbx.c: Executing [[email protected]:6] GotoIf("SIP/01821985743_in-00001a5d", "0?skip") in new stack
[2018-01-23 15:19:36] VERBOSE[3238][C-0000086b] pbx.c: Executing [[email protected]:7] Answer("SIP/01821985743_in-00001a5d", "") in new stack
[2018-01-23 15:19:36] VERBOSE[3238][C-0000086b] pbx.c: Executing [[email protected]:8] Wait("SIP/01821985743_in-00001a5d", "1") in new stack
[2018-01-23 15:19:37] VERBOSE[3238][C-0000086b] pbx.c: Executing [[email protected]:9] Set("SIP/01821985743_in-00001a5d", "IVR_MSG=custom/Premi_5_RidRid") in new stack
[2018-01-23 15:19:37] VERBOSE[3238][C-0000086b] pbx.c: Executing [[email protected]:10] Set("SIP/01821985743_in-00001a5d", "TIMEOUT(digit)=3") in new stack
[2018-01-23 15:19:37] VERBOSE[3238][C-0000086b] func_timeout.c: Digit timeout set to 3.000
[2018-01-23 15:19:37] VERBOSE[3238][C-0000086b] pbx.c: Executing [[email protected]:11] ExecIf("SIP/01821985743_in-00001a5d", "1?Background(custom/Premi_5_RidRid)") in new stack
[2018-01-23 15:19:37] VERBOSE[3238][C-0000086b] file.c: <SIP/01821985743_in-00001a5d> Playing 'custom/Premi_5_RidRid.ulaw' (language 'it')
[2018-01-23 15:19:39] VERBOSE[3238][C-0000086b] pbx.c: Executing [[email protected]:12] WaitExten("SIP/01821985743_in-00001a5d", "10,") in new stack
[2018-01-23 15:19:39] VERBOSE[3238][C-0000086b] pbx.c: Executing [[email protected]:1] Goto("SIP/01821985743_in-00001a5d", "play-system-recording,7,1") in new stack
[2018-01-23 15:19:39] VERBOSE[3238][C-0000086b] pbx_builtins.c: Goto (play-system-recording,7,1)
[2018-01-23 15:19:39] VERBOSE[3238][C-0000086b] pbx.c: Executing [[email protected]:1] Answer("SIP/01821985743_in-00001a5d", "") in new stack
[2018-01-23 15:19:39] VERBOSE[3238][C-0000086b] pbx.c: Executing [[email protected]:2] Playback("SIP/01821985743_in-00001a5d", "custom/Grazie_x_5_Rid") in new stack
[2018-01-23 15:19:39] VERBOSE[3238][C-0000086b] file.c: <SIP/01821985743_in-00001a5d> Playing 'custom/Grazie_x_5_Rid.ulaw' (language 'it')
[2018-01-23 15:19:44] VERBOSE[3239][C-0000086b] app_mixmonitor.c: MixMonitor close filestream (mixed)
[2018-01-23 15:19:44] VERBOSE[3239][C-0000086b] app_mixmonitor.c: End MixMonitor Recording SIP/01821985743_in-00001a5d

maybe solved

in practice it is enough to reverse … first action then message

if before there is the message if it is not heard all the message does not execute the action …

here is an example

[play-system-recording]
exten => 7,1,Answer
exten => 7,n,Set(result=${CURL(http://localhost/ergotel/invmail.php?num=${CALLERID(number)})})
exten => 7,n,Playback(custom/Grazie_x_5_Rid)
exten => 7,n,Hangup

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.