Finally, I changed fifo for
valet_parking and It is working. It is also working with BLF. Here
is the code for those who want the same information:
<extension name="parkinglot">
<condition field="destination_number"
expression="^(18[0-2])$">
<action application="valet_park" data="lot $1"/>
</condition>
</extension>
<extension name="parkingkey">
<condition field="destination_number"
expression="^(park\+)(18[0-2])$">
<action application="transfer" data="$2 XML
context_1"/>
</condition>
</extension>
The parkingkey extension is important for, in my case, Granstream
phones working with BLF. I put park+180 in multi-function key.
Everything is working fine.
On 2012-11-01 11:44, Frederick Pruneau wrote:
Hi all,
I am configuring a blue.box server with freeswitch. I am tweaking
blue.box to add fifo call park. I followed instructions from this
wiki page http://wiki.freeswitch.org/wiki/Park_%26_Retrieve
.I can park the call but cannot retrieve it. When I dial the same
extension where I parked the call (Usually, it is supposed to pick
up the parked call), the call is parked in another park slot. Here
is my configuration:
<extension name="parking_slots">
<condition field="destination_number"
expression="^(18[0-2])$" break="on-false">
<action inline="true" application="set"
data="slot_count=${fifo(count $1@${domain_name})}"/>
<action inline="true" application="set"
data="slot_count=${slot_count:-3:2}"/>
</condition>
<condition field="${slot_count}" expression="^\:0$"
break="always">
<action application="unset" data="fifo_chime_list"/>
<action application="set" data="fifo_chime_freq=0"/>
<action application="fifo"
data="${destination_number}@${domain_name} in undef
local_stream://moh"/>
<anti-action application="fifo"
data="${destination_number}@${domain_name} out nowait"/>
</condition>
</extension>
I have found this in the log file:
EXECUTE sofia/sipinterface_1/ext@X.X.X.X
set(slot_count=180@X.X.X.X:0:1:0:0:0)
The number 1 is the parking slot number. It changes to the next
available parking slot (In this case, number 2) everytime I dial
180.
Am i missing something?
Thanks for your help!
Fred
--
Frédérick Pruneau
Administrateur réseau | Network administrator
Targo Communications
Ste-Clotilde : (450) 826-0031
Montréal : (514) 448-0773