IssabelFoundation / issabel

Open Source Unified Communications Platform
http://www.issabel.org
54 stars 13 forks source link

Parking Problem. **Big BUG* #43

Open tbagwell opened 5 years ago

tbagwell commented 5 years ago

This is a big problem with the coding of parking

The normal setting for the Parking is 700 by default. If it happen to be setup for 700 with slots 701-703. It will save the info into the extensions_additional.conf and res_parking_additional.conf

res_parking_additional.conf parkext=700 parkpos=701-703 context=parkedcalls parkext_exclusive=no parkingtime=150 comebacktoorigin=no parkedplay=both courtesytone=beep parkedcalltransfers=caller parkedcallreparking=caller parkedmusicclass=default findslot=first

Now if we do a command feature show. We happen to see this. Call parking (Parking lot: default)

Parking extension : 700 Parking context : parkedcalls Parked call extensions: 701-750 Parkingtime : 45000 ms Comeback to origin : yes Comeback context : parkedcallstimeout (comebacktoorigin=yes, not used) Comeback dial time : 30 MusicOnHold class : default Enabled : Yes

how if you look at the Parked call extensions line. You will see the system say that the slots aer from 701-750. When it show be 701-703

How this is where the problem come in. If change the lot to 800 with slots 801-803. And saved We can see in the file res_parking_additional.conf it has been update. parkext=800 parkpos=801-803 context=parkedcalls parkext_exclusive=no parkingtime=150 comebacktoorigin=no parkedplay=both courtesytone=beep parkedcalltransfers=caller parkedcallreparking=caller parkedmusicclass=default findslot=first

If we run a feature show command again. We will see this. Call parking (Parking lot: default)

Parking extension : 700 Parking context : parkedcalls Parked call extensions: 701-750 Parkingtime : 45000 ms Comeback to origin : yes Comeback context : parkedcallstimeout (comebacktoorigin=yes, not used) Comeback dial time : 30 MusicOnHold class : default Enabled : Yes

Also if try to park into 800 now it will recall the call back to the ext without even parking. If you take what is in the res_parking_additional.conf into the features_general_additional.conf Do a reload and it will show the right parking info.

So all in all it looks like the system isn't loading any info in the res_parking_additional.conf file. So this is messing up the parking system if the lot has been changed.

MoHegazy commented 3 years ago

hello any update on this issue ? i cant change parking time from 45 seconds thx

tbagwell commented 3 years ago

No update. On what version of asterisk you run. There are some fixes for timing. But wish they fix the problem. I posted, emailed and more. Don't hear anything.

MoHegazy commented 3 years ago

No update. On what version of asterisk you run. There are some fixes for timing. But wish they fix the problem. I posted, emailed and more. Don't hear anything. -------- Original message --------From: MoHegazy notifications@github.com Date: 10/13/20 3:27 PM (GMT-06:00) To: IssabelFoundation/issabel issabel@noreply.github.com Cc: tbagwell tbagwell@etechcomm.com, Author author@noreply.github.com Subject: Re: [IssabelFoundation/issabel] Parking Problem.    *Big BUG (#43) hello any update on this issue ? i cant change parking time from 45 seconds thx —You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.

hello iam running asterisk 11 i have tried copy from res_parking file to feature_custom file and it worked but the call never goes back to origin

tbagwell commented 3 years ago

Asterisk 11 doesn't look into the res_parking_additional.conf files. Asterisk 16 will read the file.

After you make the changes to the parking lot. Also make sure to turn on hints also. Copy what is in the res_parking_additional.conf to features_general_custom.conf file.

Could look like this.

parkext=70 parkpos=71-73 context=parkedcalls parkext_exclusive=no parkingtime=150 comebacktoorigin=no parkedplay=both courtesytone=beep parkedcalltransfers=caller parkedcallreparking=caller parkedmusicclass=default findslot=first

You need to change the comebacktoorigin to yes. This is what makes it recall to the phone that put it on park I also added this to make sure the park system know where to send the park calls that get lost or don't recall right. comebackcontect=park-dial1

But to make that work you need to add something into the extensions_custom.conf at the bottom

[park-dial1] include => park-dial-custom exten => t,1,Noop(Parked Call Timed Out and Got Orphaned) exten => t,n,Goto(ext-group,600,1) exten => [0-9a-zA-Z*#].,1,Noop(Parked Call Timed Out and Got Orphaned) exten => [0-9a-zA-Z*#].,n,Goto(ext-group,600,1)

Where you see 600 in that code. That is my Ring group. you can change it to a ring group or ext.

I also would remove lines parkedplay=both and courtesytone=beep This will remove the beep from picking up the parks. But it also fixes a delay there also too. The system play the beep to the local side and then to the far end. So the local site will start talking but the far end is still hearing the beep. It also remove the beep you hear at other places in the system also too.

parkingtime=150

This is where you set it for how long to park before it recalls. this is seconds.

After you make all of the changes to your files. Just submit something in the programming and then apply changes.

from PBX / Tools. you can type asterisk-Cli commands. Use command features show It then will show you into about the parking.

tbagwell commented 3 years ago

Asterisk 11 doesn't look into the res_parking_additional.conf files. Asterisk 16 will read the file.

After you make the changes to the parking lot. Also make sure to turn on hints also. Copy what is in the res_parking_additional.conf to features_general_custom.conf file.

Could look like this.

parkext=70 parkpos=71-73 context=parkedcalls parkext_exclusive=no parkingtime=150 comebacktoorigin=no parkedplay=both courtesytone=beep parkedcalltransfers=caller parkedcallreparking=caller parkedmusicclass=default findslot=first

You need to change the comebacktoorigin to yes. This is what makes it recall to the phone that put it on park I also added this to make sure the park system know where to send the park calls that get lost or don't recall right. comebackcontect=park-dial1

But to make that work you need to add something into the extensions_custom.conf at the bottom

[park-dial1] include => park-dial-custom exten => t,1,Noop(Parked Call Timed Out and Got Orphaned) exten => t,n,Goto(ext-group,600,1) exten => [0-9a-zA-Z*#].,1,Noop(Parked Call Timed Out and Got Orphaned) exten => [0-9a-zA-Z*#].,n,Goto(ext-group,600,1)

Where you see 600 in that code. That is my Ring group. you can change it to a ring group or ext.

I also would remove lines parkedplay=both and courtesytone=beep This will remove the beep from picking up the parks. But it also fixes a delay there also too. The system play the beep to the local side and then to the far end. So the local site will start talking but the far end is still hearing the beep. It also remove the beep you hear at other places in the system also too.

parkingtime=150

This is where you set it for how long to park before it recalls. this is seconds.

After you make all of the changes to your files. Just submit something in the programming and then apply changes.

from PBX / Tools. you can type asterisk-Cli commands. Use command features show It then will show you into about the parking.

MoHegazy commented 3 years ago

this is what i did "Copy what is in the res_parking_additional.conf to features_general_custom.conf file." also this "You need to change the comebacktoorigin to yes" but the call dont go back to the person who parked it but i haven`t made any changes to extensions_custom.conf

tbagwell commented 3 years ago

I tested this on my test system here. And it will recall back to the phone that put it on park.

Under tools when you do the features show. Come it come up something like this.

Call parking (Parking lot: default)

Parking extension : 70 Parking context : parkedcalls Parked call extensions: 71-73 Parkingtime : 150000 ms Comeback to origin : yes Comeback context : parkedcallstimeout (comebacktoorigin=yes, not used) Comeback dial time : 30 MusicOnHold class : default Enabled : Yes

the only thing I know I have done on this test system is that I have turned on beta updates under updates. And them run a yum update at putty command in the system. If this is a working system. I would be more carefully at this. I have seen it do the update but then disable all of the modules in the back end of the system also.

asternic commented 3 years ago

Hi,

I made some updates on commits 97dd4800c4d83ac2f9ed98b84a13910b0f46e124 and 633c7f22d0dc395b374404349470ee1730304d3f on issabelPBX to work on the parking issues. IssabelPBX release 49 will be uploaded into issabel-beta repository if you want to test it out and report back. Thanks,