[asterisk-users] BLF and Snom phones

Yehavi Bourvine +972-8-9489444 YEHAVI at VMS.HUJI.AC.IL
Tue Mar 25 07:58:00 CDT 2008


> Sorry for the hijack, but I was wondering if I could be pointed at how
> to get BLF and pickup working with Polycoms? I can use their "Buddy"
> option to get a basic BLF system working, but that does not understand
> the ringing state, and does not allow call pickup.

This is what I do (it works most of the times...). Our extension numbers are 5
digits, and I'll take as example making a BLF for extension 89444:

1. In the buddies list, instead of setting the BLF to be 89444, set it to be
   *789444 (i.e preppend *7 to the number).

2. change the Hint to be (I am using AEL):
        hint(Sip/89444) *789444 => NoOp();

   This allows the phone to send subsciptions for *789444 which is translated
   to the real extension's state.

3. Define the extension *7xxxxx:

// Directed pickup by *7. When we want a line key on the phone to be both
// speed dial and direct pickup we program it to dial *7num; We strip off
// the *7 and then check the destination status; if it is ringing - pick it;
// if not - dial it.
// When picking up - Set the callerID to be the orignaly calling station.
        _*7XXXXX => {
                NoOp();
                Set(_To=${EXTEN:-5});
                Set(_From=${CALLERID(num)});
                if("${DEVSTATE(SIP/${To})}" == "RINGING") {
                        Set(CALLEDID(all)=${DB(${To}/CallingID)});
                        Pickup(${To}@PICKUPMARK);
                        Hangup();
                } else {
                        goto huji-local|_8XXXX|StartLocal;
                };
        }

  If the destination is ringing, pick it up. If not, strip the *7 and dial it.
  I am using To and From since I need them for other places.

4. At your "regular" dialplan set the PICKUPMARK to the extension number:
   Set(_PICKUPMARK=${EXTEN});

                                                 good luck, __Yehavi:



More information about the asterisk-users mailing list