[Freeswitch-users] BLF for database flag

Jerry Kendall Jerry.Kendall at BishopHosting.com
Sun Sep 12 04:59:59 UTC 2021


Hello.....

Does anyone know if there is a way to have a BLF (presence monitor) for an object that is NOT a device.

I would like to have the BLF lamp toggle red/green based on a status of a variable that is a field in the database...

For example:

A user dials *85x

If the use dials *850, this can mean turn the light OFF

If the use dials *85n, this can mean turn the light ON

Then the device (x301) has a BLF set for *851.

The sip_subscriptions table will have the following:

*************************** 1. row ***************************
          proto: sip
       sip_user: 301
       sip_host: domain
    sub_to_user: *851
    sub_to_host: domain
presence_hosts:
          event: dialog
        contact: "user"<sip:301 at ip:port;fs_nat=yes;fs_path=sip%3Aa.b.c.d%3Annn%3Btransport%3Dudp>
        call_id:508931318-14314-3 at BA.CEG.HG.ED
      full_from:<sip:301 at domain>;tag=673185170
       full_via: SIP/2.0/UDP ip:port;branch=z9hG4bK1903845623;rport=...;received=.....
        expires: 1631421776
     user_agent: xyz
         accept: application/dialog-info+xml, multipart/related, application/rlmi+xml
   profile_name: customer
       hostname: host
   network_port: ...
     network_ip: a.b.c.d
        version: 121
     orig_proto:
        full_to:<sip:*852 at domain>;tag=HQrMabwmsTlX
*************************** 1. row ***************************


Thanks, any help would be great...




  




More information about the FreeSWITCH-users mailing list