You can, using device_state function (I use asterisk 1.6.2.X)

Here is a example for a conference... when sombody enter to conference a light up on my aastra phone:

exten => s,1,Set(DEVICE_STATE(Custom:confer)=INUSE)
exten => s,n,Meetme(5000)
exten => s,n,Hangup
exten => h,1,MeetMeCount(5000,users)
exten => h,2,Gotoif($[${users} = 0]?end:noend)
exten => h,3(end),Set(DEVICE_STATE(Custom:confer)=NOT_INUSE)
exten => h,4(noend),Noop(Users number = ${users})

On your subscribe context:

exten => conf,hint,custom:confer

On the phone configuration, choice BLF and asign conf to the key

Regards

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
              http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to