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: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
-
Hi, in the button definition you can set it like this:
[SIP/something]
type=extension
extension=601
context=something
customastdb=CF/601If 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).
-
-
-
[quote]
customastdb=CF/601BTW: It would be nice, if this parameter could be added to the "Configuring Buttons" documentation page.
Michael[/quote]
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.
-
-
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login