Extensions_custom.conf issue

I am running FreePBX 14 and Asterisk 13. It is my understanding, that if I want to add custom extensions using extensions_custom.conf I am to use from-internal-custom correct?

So I did that, to create some test extensions, and when I dial them Asterisk fails. Did I do something wrong?

Here’s the contents of my file.

[from-internal-custom]

include => test-number
include => play-monkeys

[test-number]

exten => 802,1,Ringing()
exten => 802,n,Wait(3)
exten => 802,n,Answer()
exten => 802,n,Playback(dir-multi3)
exten => 802,n,Wait(1)
exten => 802,n,SayDigits(${CALLERID(num)})
exten => 802,n,Wait(1)
exten => 802,n,Playback(channel)
exten => 802,n,Wait(1)
exten => 802,n,SayAlpha(${CHANNEL})
exten => 802,n,Wait(1)
exten => 802,n,Playback(readback-instructions)
exten => 802,n,Record(/tmp/802-${UNIQUEID}.wav,0,30)
exten => 802,n,Playback(/tmp/802-${UNIQUEID})
exten => 802,n,System(rm /tmp/802-${UNIQUEID}.wav)
exten => 802,n,Wait(1)                               
exten => 802,n,Playback(vm-goodbye)
exten => 802,n,Hangup()


[play-monkeys]

exten => 866,1,Ringing()
exten => 866,n,Wait(3)
exten => 866,n,Answer()
exten => 866,1,Playback(tt-monkeys)
exten => 866,n,Hangup()

Did I do this wrong? Do I need to include those contexts somewhere else?

This is what appears in the Asterisk console.

 Executing [[email protected]:1] ResetCDR("PJSIP/701-00000000", "") in new stack
    -- Executing [[email protected]:2] NoCDR("PJSIP/701-00000000", "") in new stack
    -- Executing [[email protected]:3] Progress("PJSIP/701-00000000", "") in new stack
    -- Executing [[email protected]:4] Wait("PJSIP/701-00000000", "1") in new stack
       > 0x7f54e0028890 -- Probation passed - setting RTP source address to 24.129.76.84:16612
    -- Executing [[email protected]:5] Playback("PJSIP/701-00000000", "silence/1&cannot-complete-as-dialed&check-number-dial-again,noanswer") in new stack
    -- <PJSIP/701-00000000> Playing 'silence/1.ulaw' (language 'en')
    -- <PJSIP/701-00000000> Playing 'cannot-complete-as-dialed.ulaw' (language 'en')
    -- <PJSIP/701-00000000> Playing 'check-number-dial-again.ulaw' (language 'en')
    -- Executing [[email protected]:6] Wait("PJSIP/701-00000000", "1") in new stack
  == Spawn extension (from-internal, 820, 6) exited non-zero on 'PJSIP/701-00000000'
    -- Executing [[email protected]:1] Macro("PJSIP/701-00000000", "hangupcall") in new stack
    -- Executing [[email protected]:1] GotoIf("PJSIP/701-00000000", "1?theend") in new stack
    -- Goto (macro-hangupcall,s,3)
    -- Executing [[email protected]:3] ExecIf("PJSIP/701-00000000", "0?Set(CDR(recordingfile)=)") in new stack
    -- Executing [[email protected]:4] Hangup("PJSIP/701-00000000", "") in new stack
  == Spawn extension (macro-hangupcall, s, 4) exited non-zero on 'PJSIP/701-00000000' in macro 'hangupcall'
  == Spawn extension (from-internal, h, 1) exited non-zero on 'PJSIP/701-00000000'
  == Setting global variable 'SIPDOMAIN' to '45.32.170.82'
    -- Executing [[email protected]:1] Ringing("PJSIP/701-00000001", "") in new stack
    -- Executing [[email protected]:2] Wait("PJSIP/701-00000001", "3") in new stack
    -- Executing [[email protected]:3] Answer("PJSIP/701-00000001", "") in new stack
       > 0x7f54e0034170 -- Probation passed - setting RTP source address to 24.129.76.84:16614
    -- Executing [[email protected]:4] Wait("PJSIP/701-00000001", "1") in new stack
    -- Executing [[email protected]:5] Playback("PJSIP/701-00000001", "silence/1&cannot-complete-as-dialed&check-number-dial-again,noanswer") in new stack
    -- <PJSIP/701-00000001> Playing 'silence/1.ulaw' (language 'en')
    -- <PJSIP/701-00000001> Playing 'cannot-complete-as-dialed.ulaw' (language 'en')
    -- <PJSIP/701-00000001> Playing 'check-number-dial-again.ulaw' (language 'en')
    -- Executing [[email protected]:1] Macro("PJSIP/701-00000001", "hangupcall") in new stack
    -- Executing [[email protected]:1] GotoIf("PJSIP/701-00000001", "1?theend") in new stack
    -- Goto (macro-hangupcall,s,3)
    -- Executing [[email protected]:3] ExecIf("PJSIP/701-00000001", "0?Set(CDR(recordingfile)=)") in new stack
    -- Executing [[email protected]:4] Hangup("PJSIP/701-00000001", "") in new stack
  == Spawn extension (macro-hangupcall, s, 4) exited non-zero on 'PJSIP/701-00000001' in macro 'hangupcall'
  == Spawn extension (from-internal, h, 1) exited non-zero on 'PJSIP/701-00000001'

You defined extension 802:

exten => 802

And then dialed 820:

Executing [[email protected]:1]
1 Like

Oh, right. brain fail. Oops