Calls Dropping Picking Up Parked Call

We just migrated to FreePBX and in one of our offices we are experiencing calls dropping after picking up a parked call. In the other office is where FreePBX is directly hosted on and they are not experiencing the same issue so it’s only with the remote office.

It does not appear to happen on calls that are not parked and does not appear to happen on calls transferred or placed on hold. Only calls parked.

Any clue why this could be? I will gladly post some logs of this happening but will need some help on how to pull them to post back in the chat.

Have you added the IP addresses for the remote site to the Asterisk SIP Settings?

Yes, under Settings > Asterisk SIP Settings > General SIP Settings, I do have their local IP addresses under “Local Networks”.

In that case you’ll need to provide better asterisk or possibly SIP capture logs for us to be able to help. We need to see the event happening.

I ran some logs as the event happened. Please see below.

[2023-03-29 13:41:47] VERBOSE[41215][C-000002d4] res_agi.c: agi://127.0.0.1/parkfetch.agi,701,default: Found slot full with channel [PJSIP/fpbx-1-i4zU8Kejty3S-000008ed]
[2023-03-29 13:41:47] VERBOSE[41215][C-000002d4] res_agi.c: <PJSIP/101-000008f3>AGI Script agi://127.0.0.1/parkfetch.agi completed, returning 0
[2023-03-29 13:41:47] VERBOSE[41215][C-000002d4] pbx.c: Executing [s@macro-parked-call:7] GotoIf(“PJSIP/101-000008f3”, “1?next”) in new stack
[2023-03-29 13:41:47] VERBOSE[41215][C-000002d4] pbx_builtins.c: Goto (macro-parked-call,s,9)
[2023-03-29 13:41:47] VERBOSE[41215][C-000002d4] pbx.c: Executing [s@macro-parked-call:9] Set(“PJSIP/101-000008f3”, “CCSS_SETUP=TRUE”) in new stack
[2023-03-29 13:41:47] VERBOSE[41215][C-000002d4] pbx.c: Executing [s@macro-parked-call:10] GotoIf(“PJSIP/101-000008f3”, “1?pcall”) in new stack
[2023-03-29 13:41:47] VERBOSE[41215][C-000002d4] pbx_builtins.c: Goto (macro-parked-call,s,17)
[2023-03-29 13:41:47] VERBOSE[41215][C-000002d4] pbx.c: Executing [s@macro-parked-call:17] NoOp(“PJSIP/101-000008f3”, “User: “Laveen Liz” <101> attempting to pick up Parked Call Slot 701”) in new stack
[2023-03-29 13:41:47] VERBOSE[41215][C-000002d4] pbx.c: Executing [s@macro-parked-call:18] GotoIf(“PJSIP/101-000008f3”, “1?privatelotcheckfinish2”) in new stack
[2023-03-29 13:41:47] VERBOSE[41215][C-000002d4] pbx_builtins.c: Goto (macro-parked-call,s,20)
[2023-03-29 13:41:47] VERBOSE[41215][C-000002d4] pbx.c: Executing [s@macro-parked-call:20] NoOp(“PJSIP/101-000008f3”, “End Force Private Lot Detection”) in new stack
[2023-03-29 13:41:47] VERBOSE[41215][C-000002d4] pbx.c: Executing [s@macro-parked-call:21] NoOp(“PJSIP/101-000008f3”, “PARKIE: PJSIP/fpbx-1-i4zU8Kejty3S-000008ed”) in new stack
[2023-03-29 13:41:47] VERBOSE[41215][C-000002d4] pbx.c: Executing [s@macro-parked-call:22] Set(“PJSIP/101-000008f3”, “SHARED(PARKRETURNTO,PJSIP/fpbx-1-i4zU8Kejty3S-000008ed)=”) in new stack
[2023-03-29 13:41:47] VERBOSE[41215][C-000002d4] pbx.c: Executing [s@macro-parked-call:23] Set(“PJSIP/101-000008f3”, “PARKOWNER=1”) in new stack
[2023-03-29 13:41:47] VERBOSE[41215][C-000002d4] pbx.c: Executing [s@macro-parked-call:24] ParkedCall(“PJSIP/101-000008f3”, “default,701”) in new stack
[2023-03-29 13:41:47] VERBOSE[41215][C-000002d4] bridge_channel.c: Channel PJSIP/fpbx-1-i4zU8Kejty3S-000008ed left ‘holding_bridge’ parking-bridge <8a0bc387-bd81-43de-9194-764e84f173a3>
[2023-03-29 13:41:47] VERBOSE[41215][C-000002d4] res_musiconhold.c: Stopped music on hold on PJSIP/fpbx-1-i4zU8Kejty3S-000008ed
[2023-03-29 13:41:47] VERBOSE[41215][C-000002d4] bridge_channel.c: Channel PJSIP/fpbx-1-i4zU8Kejty3S-000008ed joined ‘simple_bridge’ basic-bridge
[2023-03-29 13:41:47] VERBOSE[41215][C-000002d4] file.c: <PJSIP/101-000008f3> Playing ‘beep.ulaw’ (language ‘en’)
[2023-03-29 13:41:47] VERBOSE[41162][C-000002d3] file.c: <PJSIP/fpbx-1-i4zU8Kejty3S-000008ed> Playing ‘beep.ulaw’ (language ‘en’)
[2023-03-29 13:41:47] VERBOSE[41215][C-000002d4] bridge_channel.c: Channel PJSIP/101-000008f3 joined ‘simple_bridge’ basic-bridge
[2023-03-29 13:42:04] VERBOSE[41215][C-000002d4] bridge_channel.c: Channel PJSIP/101-000008f3 left ‘simple_bridge’ basic-bridge
[2023-03-29 13:42:04] VERBOSE[41215][C-000002d4] app_macro.c: Spawn extension (macro-parked-call, s, 24) exited non-zero on ‘PJSIP/101-000008f3’ in macro ‘parked-call’
[2023-03-29 13:42:04] VERBOSE[41215][C-000002d4] pbx.c: Spawn extension (from-internal, 701, 1) exited non-zero on ‘PJSIP/101-000008f3’
[2023-03-29 13:42:04] VERBOSE[41215][C-000002d4] pbx.c: Executing [h@from-internal:1] Macro(“PJSIP/101-000008f3”, “hangupcall”) in new stack
[2023-03-29 13:42:04] VERBOSE[41215][C-000002d4] pbx.c: Executing [s@macro-hangupcall:1] GotoIf(“PJSIP/101-000008f3”, “1?theend”) in new stack
[2023-03-29 13:42:04] VERBOSE[41215][C-000002d4] pbx_builtins.c: Goto (macro-hangupcall,s,3)
[2023-03-29 13:42:04] VERBOSE[41162][C-000002d3] bridge_channel.c: Channel PJSIP/fpbx-1-i4zU8Kejty3S-000008ed left ‘simple_bridge’ basic-bridge
[2023-03-29 13:42:04] VERBOSE[41162][C-000002d3] app_macro.c: Spawn extension (macro-dial, s, 29) exited non-zero on ‘PJSIP/fpbx-1-i4zU8Kejty3S-000008ed’ in macro ‘dial’
[2023-03-29 13:42:04] VERBOSE[41162][C-000002d3] pbx.c: Spawn extension (ext-group, 100, 18) exited non-zero on ‘PJSIP/fpbx-1-i4zU8Kejty3S-000008ed’
[2023-03-29 13:42:04] VERBOSE[41162][C-000002d3] pbx.c: Executing [h@ext-group:1] Macro(“PJSIP/fpbx-1-i4zU8Kejty3S-000008ed”, “hangupcall,”) in new stack
[2023-03-29 13:42:04] VERBOSE[41162][C-000002d3] pbx.c: Executing [s@macro-hangupcall:1] GotoIf(“PJSIP/fpbx-1-i4zU8Kejty3S-000008ed”, “1?theend”) in new stack
[2023-03-29 13:42:04] VERBOSE[41162][C-000002d3] pbx_builtins.c: Goto (macro-hangupcall,s,3)
[2023-03-29 13:42:04] VERBOSE[41215][C-000002d4] pbx.c: Executing [s@macro-hangupcall:3] ExecIf(“PJSIP/101-000008f3”, “0?Set(CDR(recordingfile)=)”) in new stack
[2023-03-29 13:42:04] VERBOSE[41215][C-000002d4] pbx.c: Executing [s@macro-hangupcall:4] Hangup(“PJSIP/101-000008f3”, “”) in new stack
[2023-03-29 13:42:04] VERBOSE[41215][C-000002d4] app_macro.c: Spawn extension (macro-hangupcall, s, 4) exited non-zero on ‘PJSIP/101-000008f3’ in macro ‘hangupcall’
[2023-03-29 13:42:04] VERBOSE[41215][C-000002d4] pbx.c: Spawn extension (from-internal, h, 1) exited non-zero on ‘PJSIP/101-000008f3’
[2023-03-29 13:42:04] VERBOSE[41162][C-000002d3] pbx.c: Executing [s@macro-hangupcall:3] ExecIf(“PJSIP/fpbx-1-i4zU8Kejty3S-000008ed”, “0?Set(CDR(recordingfile)=)”) in new stack
[2023-03-29 13:42:04] VERBOSE[41162][C-000002d3] pbx.c: Executing [s@macro-hangupcall:4] Hangup(“PJSIP/fpbx-1-i4zU8Kejty3S-000008ed”, “”) in new stack
[2023-03-29 13:42:04] VERBOSE[41162][C-000002d3] app_macro.c: Spawn extension (macro-hangupcall, s, 4) exited non-zero on ‘PJSIP/fpbx-1-i4zU8Kejty3S-000008ed’ in macro ‘hangupcall’
[2023-03-29 13:42:04] VERBOSE[41162][C-000002d3] pbx.c: Spawn extension (ext-group, h, 1) exited non-zero on ‘PJSIP/fpbx-1-i4zU8Kejty3S-000008ed’
[2023-03-29 13:42:04] VERBOSE[41162][C-000002d3] app_stack.c: PJSIP/fpbx-1-i4zU8Kejty3S-000008ed Internal Gosub(crm-hangup,s,1) start
[2023-03-29 13:42:04] VERBOSE[41162][C-000002d3] pbx.c: Executing [s@crm-hangup:1] NoOp(“PJSIP/fpbx-1-i4zU8Kejty3S-000008ed”, “Sending Hangup to CRM”) in new stack
[2023-03-29 13:42:04] VERBOSE[41162][C-000002d3] pbx.c: Executing [s@crm-hangup:2] NoOp(“PJSIP/fpbx-1-i4zU8Kejty3S-000008ed”, “HANGUP CAUSE: 16”) in new stack
[2023-03-29 13:42:04] VERBOSE[41162][C-000002d3] pbx.c: Executing [s@crm-hangup:3] ExecIf(“PJSIP/fpbx-1-i4zU8Kejty3S-000008ed”, “0?Set(__CRM_VOICEMAIL=)”) in new stack
[2023-03-29 13:42:04] VERBOSE[41162][C-000002d3] pbx.c: Executing [s@crm-hangup:4] NoOp(“PJSIP/fpbx-1-i4zU8Kejty3S-000008ed”, “MASTER CHANNEL: 1680122481.2336 = 1680122481.2336”) in new stack
[2023-03-29 13:42:04] VERBOSE[41162][C-000002d3] pbx.c: Executing [s@crm-hangup:5] GotoIf(“PJSIP/fpbx-1-i4zU8Kejty3S-000008ed”, “0?return”) in new stack
[2023-03-29 13:42:04] VERBOSE[41162][C-000002d3] pbx.c: Executing [s@crm-hangup:6] Set(“PJSIP/fpbx-1-i4zU8Kejty3S-000008ed”, “__CRM_HANGUP=1”) in new stack
[2023-03-29 13:42:04] VERBOSE[41162][C-000002d3] pbx.c: Executing [s@crm-hangup:7] AGI(“PJSIP/fpbx-1-i4zU8Kejty3S-000008ed”, “agi://127.0.0.1/sangomacrm.agi”) in new stack
[2023-03-29 13:42:04] VERBOSE[41162][C-000002d3] res_agi.c: <PJSIP/fpbx-1-i4zU8Kejty3S-000008ed>AGI Script agi://127.0.0.1/sangomacrm.agi completed, returning 0
[2023-03-29 13:42:04] VERBOSE[41162][C-000002d3] pbx.c: Executing [s@crm-hangup:8] Return(“PJSIP/fpbx-1-i4zU8Kejty3S-000008ed”, “”) in new stack
[2023-03-29 13:42:04] VERBOSE[41162][C-000002d3] app_stack.c: Spawn extension (ext-group, h, 1) exited non-zero on ‘PJSIP/fpbx-1-i4zU8Kejty3S-000008ed’
[2023-03-29 13:42:04] VERBOSE[41162][C-000002d3] app_stack.c: PJSIP/fpbx-1-i4zU8Kejty3S-000008ed Internal Gosub(crm-hangup,s,1) complete GOSUB_RETVAL=

At the 2023-03-29 13:42:04 is when the call dropped after answering the parked call.

Seems like the phone is hanging up the call for some reason. You may need to do pjsip set logger on in the asterisk console and provide the SIP traffic information.

Is this what I need to do to turn it on?

From a root shell prompt, type
asterisk -r
pjsip set logger on

Once that is on, do I need to replicate the issue again and where would I go to view those logs?

Unfortunately, yes. The logged SIP traffic will be interspersed in the regular Asterisk log.

Okay. Do I capture the logs the same way I captured the above logs?
Also, do I turn it on by following these steps?

From a root shell prompt, type
asterisk -r
pjsip set logger on

Yes to both. Normally, we’d ask you to paste the log at pastebin.freepbx.org and post the link here, but that’s down right now. You can use pastebin.com or similar, but make sure the paste doesn’t expire. If you are too new to post links, put the link as preformatted text.

Okay, thanks. I’ll test with the office tomorrow as they’re leaving for the night.

I tested turning on the pjsip set logger on. Should I stay in that area as the logs flow? Before I ran this to catch the real-time logs:
tail -f /var/log/asterisk/full

Want to make sure I can still run that command and it’ll capture the pjsip logs.

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