.call: Call failed to go through, reason (0) Call Failure

I wrote about this problem on asterisk forum (you can find it by the title), but I finally was able register on this forum after 1/2 year
As I wrote in asterisk forum, my main goal is to be able to make call from terminal, for that, I decided to use .call file method
.call file content:

Channel: Local/+11122233344
Context: from-internal
Extension: +11122233344
Priority: 1

But the call automatically falls into [default] context:

-- Attempting call on Local/+11122233344 for +11122233344@from-internal:1 (Retry 1)
    -- Called +11122233344
    -- Executing [+11122233344@default:1] Playback("Local/+11122233344@default-00000012;2", "vm-goodbye") in new stack
    -- Local/+11122233344@default-00000012;1 answered
    -- Executing [+11122233344@from-internal:1] Macro("Local/+11122233344@default-00000012;1", "user-callerid,LIMIT,EXTERNAL,") in new stack

    * executing [from-internal] *

    <Local/+11122233344@default-00000012;2> Playing 'vm-goodbye.slin16' (language 'en')
    -- Executing [+11122233344@default:2] NoOp("Local/+11122233344@default-00000012;2", "ERROR: FreePBX Does not use the [default] context, confguration error") in new stack
    -- Executing [+11122233344@default:3] Macro("Local/+11122233344@default-00000012;2", "hangupcall") in new stack
    -- Executing [s@macro-hangupcall:1] GotoIf("Local/+11122233344@default-00000012;2", "1?theend") in new stack
    -- Goto (macro-hangupcall,s,3)
    -- Executing [s@macro-hangupcall:3] ExecIf("Local/+11122233344@default-00000012;2", "0?Set(CDR(recordingfile)=)") in new stack
    -- Executing [s@macro-hangupcall:4] Hangup("Local/+11122233344@default-00000012;2", "") in new stack
  == Spawn extension (macro-hangupcall, s, 4) exited non-zero on 'Local/+11122233344@default-00000012;2' in macro 'hangupcall'
  == Spawn extension (default, +11122233344, 3) exited non-zero on 'Local/+11122233344@default-00000012;2'
    -- Executing [h@default:1] Playback("Local/+11122233344@default-00000012;2", "vm-goodbye") in new stack
    -- <Local/+11122233344@default-00000012;2> Playing 'vm-goodbye.slin16' (language 'en')
    -- Executing [h@default:2] NoOp("Local/+11122233344@default-00000012;2", "ERROR: FreePBX Does not use the [default] context, confguration error") in new stack
    -- Executing [h@default:3] Macro("Local/+11122233344@default-00000012;2", "hangupcall") in new stack
    -- Executing [s@macro-hangupcall:1] GotoIf("Local/+11122233344@default-00000012;2", "1?theend") in new stack
    -- Goto (macro-hangupcall,s,3)
    -- Executing [s@macro-hangupcall:3] ExecIf("Local/+11122233344@default-00000012;2", "0?Set(CDR(recordingfile)=)") in new stack
    -- Executing [s@macro-hangupcall:4] Hangup("Local/+11122233344@default-00000012;2", "") in new stack
  == Spawn extension (macro-hangupcall, s, 4) exited non-zero on 'Local/+11122233344@default-00000012;2' in macro 'hangupcall'
  == Spawn extension (default, h, 3) exited non-zero on 'Local/+11122233344@default-00000012;2'
  == Spawn extension (macro-dialout-trunk-predial-hook, s, 1) exited non-zero on 'Local/+11122233344@default-00000012;1' in macro 'dialout-trunk-predial-hook'
  == Spawn extension (macro-dialout-trunk, s, 19) exited non-zero on 'Local/+11122233344@default-00000012;1' in macro 'dialout-trunk'
  == Spawn extension (from-internal, +11122233344, 12) exited non-zero on 'Local/+11122233344@default-00000012;1'
    -- Executing [h@from-internal:1] Macro("Local/+11122233344@default-00000012;1", "hangupcall") in new stack
    -- Executing [s@macro-hangupcall:1] GotoIf("Local/+11122233344@default-00000012;1", "1?theend") in new stack
    -- Goto (macro-hangupcall,s,3)
    -- Executing [s@macro-hangupcall:3] ExecIf("Local/+11122233344@default-00000012;1", "0?Set(CDR(recordingfile)=)") in new stack
    -- Executing [s@macro-hangupcall:4] Hangup("Local/+11122233344@default-00000012;1", "") in new stack
  == Spawn extension (macro-hangupcall, s, 4) exited non-zero on 'Local/+11122233344@default-00000012;1' in macro 'hangupcall'
  == Spawn extension (from-internal, h, 1) exited non-zero on 'Local/+11122233344@default-00000012;1'

How can I fix that and how to make calls through .call files?

My server is on FreePBX 15.0.37.1

This needs to be Channel: Local/+11122233344@from-internal the settings for Context, Extension, Priority are for the line that is going to be called not the channel that is calling. If you don’t specify a context in the Channel setting, the call ends up in default.

Using Callfiles and Local Channels - Asterisk Documentation You should review the documentation on how call files work.

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