How to prevent the announcement of the parking extension number when picking up a parked call

Hello everyone,

I’m facing an issue with the parking extension in Asterisk and I need help to achieve a specific functionality.

Problem:

In my Asterisk configuration, I’m using res_parking.conf to park calls and later pick them up using a parking extension (e.g., 799). However, when I call the parking extension (799), the parking number (i.e., “7 9 9”) is automatically announced, and I want to prevent that.

This means that when retrieving the parked call (i.e., when someone calls the parking number), the extension number “7 9 9” is played by default. I’d like to avoid this announcement.

Current Configuration:

res_parking.conf

[LocationA-parking]
context => LocationA-parking-lot
parkext => 799               ; Parking Extension
parkpos => 800-809           ; Parking Positions
courtesytone = none          ; No default announcement before parking
parkedplay = caller          ; Play the caller’s music
comebacktoorigin = no        ; Do not return to the original position
parkedmusicclass = default   ; Music class for parked calls
parkext_exclusive = yes      ; Ensure parking extension is used exclusively
parkinghints = yes           ; Parking hints enabled
parkingtime = 99999999       ; Very long parking time

What have I tried so far?

  • The courtesytone = none setting in the res_parking.conf to prevent a standard announcement when parking the call. However, this has no effect on the issue where the parking extension still announces its number when dialed.
  • Adjusting the dialplan to intercept the parking number and play a custom announcement or silence, which hasn’t led to the desired outcome.

What I want to achieve:

I want to prevent the parking extension number (e.g., 799) from being automatically announced when I directly dial the parking extension. Instead, I would like to either have no announcement or a custom announcement.

Currently, the only solution I see is to delete the audio files from the “digits” directory, but I don’t consider that a practical solution.

Has anyone encountered this before or can suggest a solution to suppress the parking extension number announcement without changing the overall parking behavior?

I look forward to any help or suggestions!

Thanks in advance!

There is no option to disable this.

The extension that is announced there should be the parking slot, the one that needs to be called to retrieve the call. Without that, you won’t know how to retrieve it.

I can park a call using the number “800” and dial “800” again to retrieve the call, so I don’t need to know on which parking slot the call was parked. However, I’m worried that if I forward a call blindly to the parking slot, the other party might hear the digit announcement. Therefore, I currently see no other alternative than deleting the .gsm files from the directory “/var/lib/asterisk/sounds/en/digits”, but that shouldn’t be the solution. This should be configurable in the next release, as not every Asterisk user will park a call using a star code, like in my case. Example: I have caller Bob on the phone and forward him blindly to “800”, so he gets parked on “800”. However, the participant will hear “8 0 0” first, and only then does the MOH begin.

Wouldn’t the s option do this? It shouldn’t announce the slot being parked to with this setting in Park()

  • s - Silence announcement of the parking space number.
2 Likes

Thank you very much, it’s working fine!

[outgoing]
exten => 799,1,Answer(Park call on spot 799)
same => n,Set(CALLER_ID_NAME=${CALLERID(num)})
same => n,Park(LocationA-parking,s) <— SOLVED THE PROBLEM :white_check_mark:
same => n,Hangup()

[outgoing]
include => LocationA-parking-lot
; Call Park/Pickup
exten => _80X,1,ExecIf($[“${EXTENSION_STATE(${EXTEN}@LocationA-parking-lot)}” = “INUSE”]?ParkedCall(LocationA-parking,${EXTEN}))
exten => _80X,n,Set(PARKINGEXTEN=${EXTEN})
exten => _80X,n,Park(LocationA-parking,${CALLERID(num)},300)

[incoming]
exten => 0,1,Dial(PJSIP/${PARKINGEXTEN})
same => n,Set(CALLER_ID_NAME=${CALLERID(num)})

@BlazeStudios Nicely caught! Missed that, and it’s not evident in the code.

2 Likes

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