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

My main goal is to be able to make call from terminal
For that, I decided to use .call file method

I have call file in /tmp: /tmp/call
ls -la of call file:
-rwxrwxr-x 1 asterisk asterisk 100 Dec 12 12:27 call

Content of /tmp/call:

Channel: PJSIP/+11122233344@trunk
Context: from-internal
Extension: +11122233344
Priority: 1

When I execute
[root@freepbx ~]# cp /tmp/call /var/spool/asterisk/outgoing/
It can’t make call. Asterisk CLI:

WARNING[15014]: pbx_spool.c:353 safe_append: Unable to set utime on /var/spool/asterisk/outgoing/call: Operation not permitted
    -- Attempting call on PJSIP/+11122233344@trunk for +11122233344@from-internal:1 (Retry 1)
    -- Called +11122233344@trunk
NOTICE[31921]: pbx_spool.c:450 attempt_thread: Call failed to go through, reason (0) Call Failure (not BUSY, and not NO_ANSWER, maybe Circuit busy or down?)
NOTICE[31921]: pbx_spool.c:453 attempt_thread: Queued call to PJSIP/+11122233344@trunk expired without completion after 0 attempts

Why my call failed to go through and how can I fix that?

My server is on FreePBX 15.0.37.1

can you chech the premissions of the folder

This is why. You cannot copy the file over because the moment the copy starts into the outgoing spool directory the file is processed and it will be incomplete. You need move the file not copy

drwxrwxr-x. 2 asterisk asterisk 6 Dec 12 12:38 outgoing

Okay, here is my file:
-rwxrwxr-x 1 asterisk asterisk 100 Dec 12 12:27 call

Then, I type
[root@freepbx tmp]# mv /tmp/call /var/spool/asterisk/outgoing/

Unfortunately, it throws error still:

    -- Attempting call on PJSIP/+11122233344@trunk for +11122233344@from-internal:1 (Retry 1)
    -- Called +11122233344@trunk
NOTICE[20376]: pbx_spool.c:450 attempt_thread: Call failed to go through, reason (0) Call Failure (not BUSY, and not NO_ANSWER, maybe Circuit busy or down?)
NOTICE[20376]: pbx_spool.c:453 attempt_thread: Queued call to PJSIP/+11122233344@trunk expired without completion after 0 attempts

The call file made the call, that call failed. You should be looking as to why the call failed. Such as the endpoint not being up, etc.

freepbx*CLI> pjsip list endpoints

 Endpoint:  <Endpoint/CID.....................................>  <State.....>  <Channels.>
==========================================================================================

 Endpoint:  201/201                                              Unavailable   0 of inf
 Endpoint:  202/202                                              Unavailable   0 of inf
 Endpoint:  dpma_endpoint                                        Unavailable   0 of inf
 Endpoint:  sip_voicebot                                         Not in use    0 of inf

Objects found: 4

I do not understand why call is failing.
I can make calls through extensions but .call don’t work

I made a little progress, I’ve changed .call file content to

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

Now, the call automatically falls into [default] context and plays vm-goodbye (to the terminal?):


    -- 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'

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