Call forward status storage

  1. 11 years ago

    Hi,

    we (Lonnie and me) are just trying to integrate FOP2 into [url=http://www.astlinux.org:25xjumlv]AstLinux[/url:25xjumlv] (it uses a vanilla Asterisk config). I want to integrate the DND and Call Forward status.
    DND fine, but I cannot find how FOP2 stores the status of the Call Forward target within Asterisk (AstDB). I saw your script for usage with FreePBX, it's this line:

    exten => _*72.,n,Set(CHAN=${DB(DEVICE/${fromext}/dial)})

    I guess it's FreePBX specific, but is there a way to "simulate" that behavior, something that can be stored in AstDB?

    Thanks in advance.

    Michael

  2. admin

    17 Jul 2013 Administrator

    Hi, in the button definition you can set it like this:

    [SIP/something]
    type=extension
    extension=601
    context=something
    customastdb=CF/601

    If you have a value number stored in astdb as CF/601, it will show the arrow on the button. If you look at the freepbx feature codes, if you want to change that status in runtime, you also need to fire a userevent when the value is stored or removed:

    exten => _*73.,n,Set(CHAN=${DB(DEVICE/${fromext}/dial)})
    exten => _*73.,n,UserEvent(FOP2CUST,Family: astdbcust,Channel: ${CHAN},Value: )

    What is important is that CHAN must much SIP/something as set in the button.cfg file. The above is to remove the entry (empty value).

  3. Thanks, works fine now.

  4. customastdb=CF/601

    BTW: It would be nice, if this parameter could be added to the "Configuring Buttons" documentation page.

    Michael

  5. admin

    25 Jul 2013 Administrator

    customastdb=CF/601

    BTW: It would be nice, if this parameter could be added to the "Configuring Buttons" documentation page.

    Michael

    Thanks for the heads up, documentation was updated (and with some other missing options too!).

    In any case, the most current documentation when dealing with conf files are the conf files themselves (buttons.cfg.sample) in the fop2 tarball, or the fop2.cfg file for server settings.

  6. Strangely the updated extension button documentation has disappeared again …

    Michael

  7. admin

    28 Oct 2013 Administrator

    Thx for the pointer, I have added it now.

or Sign Up to reply!