[Freeswitch-users] BLF with Valet Parking

S W steve.d.ward at gmail.com
Mon Jan 17 20:00:13 MSK 2011


Travis:

Here is something that might interest you.  I use 509gs, and I have
some of them set up with BLF/speeddials set up on "parking slots".  If
no call is in the slot, you just press the button to park the call.
If you want to retrieve a call from the slot, press that same button.
Following is the config I use to be able to park calls and have
BLF/speed dials.

In autoconf/fifo.conf.xml :
-------------------------------------
<fifo name="ParkingSlot1@$${domain}" importance="0"/>
-------------------------------------

In dialplan, e.g. 100_parking_slots.xml :

  <extension name="parking_slots">
   <condition field="destination_number"
expression="^(ParkingSlot\d+)$" break="on-false">
     <!-- Get count of callers in the specified parking slot (fifo) -->
     <action inline="true" application="set"
data="slot_count=${fifo(count $1@$${domain})}"/>
     <action inline="true" application="set"
data="slot_count=${slot_count:-3:2}"/>
   </condition>
   <condition field="${slot_count}" expression="^\:0$" break="always">
     <!-- For FIFO count of 0: place the caller into the FIFO (actions
are    -->
     <!-- executed).
                             -->
     <!-- fifo settings for parking fifos -->
     <action application="unset" data="fifo_chime_list"/>
     <action application="set" data="fifo_chime_freq=0"/>
     <!-- Parked callers listen to MOH -->
     <action application="fifo" data="${destination_number}@$${domain}
in undef local_stream://moh"/>
     <!-- This hangup should never happen. -->
     <action application="hangup"/>
     <!-- For non-zero FIFO count: connect the caller to the parked
channel   -->
     <!-- (remove the channel from the FIFO and bridge it to the
caller using -->
     <!-- fifo ... out)
                                  -->
     <anti-action application="fifo"
data="${destination_number}@$${domain} out nowait"/>
     <!-- This hangup should never happen -->
     <anti-action application="hangup"/>
   </condition>
</extension>

And here is an example SPA509g config (I actually use this):

fnc=blf+sd;sub=ParkingSlot1@$PROXY;ext=ParkingSlot1@$PROXY

Note that, above, my FreeSWITCH box that runs the fifo code above is
the $PROXY to which my 509g is also registered, etc.

Let me know if you have any questions on that; I hope it helps.


On Mon, Jan 17, 2011 at 10:29 AM, Brian West <brian at freeswitch.org> wrote:
>
> I think he wants BLF status of a lot on a key.  That I don't think is there.
> /b
> On Jan 17, 2011, at 9:01 AM, Travis Kemen wrote:
>
> BLF works fine here with valet parking using polycom/snom phones.
>
> Travis
>
> On Sun, Jan 16, 2011 at 6:15 PM, Spencer Thomason <spencer at 5ninesolutions.com> wrote:
>>
>> Hello all,
>> Is it possible to use BLFs with valet parking?  Basically I have
>> several Linksys SPA 509G phones and after a call is parked, I'd like
>> use use a speed dial/BLF key on the phone to pickup the call.  I do
>> have presence configured and working with the extensions.
>>
>> Thanks,
>> Spencer
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>



More information about the FreeSWITCH-users mailing list