Help with Call Parking
I am using Asterisk 1.6.2.7 and FOP2 2.11. I believe I have everything working correctly but I cannot get it to display call parking.
I have added the
Then in the buttons.cfg file I have added
What I get on a call transfer is the call comes in and is answered. The extension called presses the transfer button on the phone and dials 700. The recording plays back that the call is on extension 701. During this time on FOP2 it shows the call in the Parking Slot section in the upper right of the page. As soon as the caller hits the transfer button the second time from the phone to release the call to the parking lot, it disappears from the FOP2 page.
From the Asterisk CLI if you type parkedcalls show it will list the calls sitting in the parking lot.
What am I doing wrong that the parked calls do not show in the FOP2 page?
I have added the
[fop2-park]
exten => _X.,1,Set(ARRAY(RETURN_EXTENSION,RETURN_CONTEXT)=${CUT(EXTEN,:,1)}\,${CUT(EXTEN,:,2)})
exten => _X.,n,ParkAndAnnounce(PARKED,,Console/dsp,${RETURN_CONTEXT},${RETURN_EXTENSION},1)
exten => _X.,n,Goto(${RETURN_CONTEXT},${RETURN_EXTENSION},1)
exten => _X.,n,Hangup
to the bottom of my existing extensions.conf file. Do I need to add an include someplace else for it? Also I have call parking enabled from the features.conf, I am assuming that is to stay enabled and that the above code is not taking the place of the features.conf parking. Is this a correct assumption?Then in the buttons.cfg file I have added
[PARK/default]
type=park
extension=700
label=Parking
context=parkedcalls
which matches my parking extension from features.conf.What I get on a call transfer is the call comes in and is answered. The extension called presses the transfer button on the phone and dials 700. The recording plays back that the call is on extension 701. During this time on FOP2 it shows the call in the Parking Slot section in the upper right of the page. As soon as the caller hits the transfer button the second time from the phone to release the call to the parking lot, it disappears from the FOP2 page.
From the Asterisk CLI if you type parkedcalls show it will list the calls sitting in the parking lot.
What am I doing wrong that the parked calls do not show in the FOP2 page?
Comments
199 is from a remote Asterisk box coming across a IAX2 trunk. 214 is a local extension.
199 calls 214.
214 picks up the call.
214 does an attended transfer to 700.
700 plays back that the call is on 701.
214 presses the transfer button to release the call into the parking lot.
The problem has to do with attendant transfers and parking. When you are parking a channel XX, but then that channel XX is destroyed and shortly after masqueraded as XY. Most probably FOP2 will report it correctly if you use a blind transfer, or perhaps the asterisk native attendant transfer instead of your phone attendant transfer.
You can also experiment transferring to parking from the same fop2 page. This is one of the reasons parking was not implemented on the 1st fop2 release. It is not something "predictable". Events are mixed, channel names mangled, etc. On some asterisk versions is just plain broken.
Maybe I will be able to handle this special situation, but that we might face a potential and more serious problem (persisten or stuck states in fop2) if not destroying the channel when asterisk reports it is actually gone.
We will try the other methods of parking a call and see what we get. Thanks for the info!