Call forward status storage
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:
[/url]
Thanks in advance.
Michael
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:
[/url]
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
Comments
[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).
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.
Michael