Done Searching.... Need help

peteradtel
Posts: 48
Member Since:
2007-07-23

Could not find an answer how i could create a feature code so i can alter the extension's ring timer.
so how can i give the user the ability to change this...
spent 4hrs googling - no luck

I worked out that i need to change the 'ringtimer' entry within the 'users' table of the 'asterisk ' database so freepbx shows the change but

this does not work until i do a submit on the extension and do apply'n'reload config

so i made the sql change manually
and did a manual database put AMPUSER 200/ringtimer 5
but it don't care! time does not change until i do the apply'n'reload config

option is not in ARI.

needs to be done in extensions_custom.conf Programming - as i need it as a feature code

can't figure out how to write the code needed to to the sql insert (into the asterisk database/users table) - using php i can do but not using the asterisk cli so therefore i can't figure out the extensions_custom.conf programming
or how can i pass a variable to System(/var/lib/tb-sqlringtimerchanger)

can't figure out how to apply the config using a command line to apply the setting

tried this
php /var/www/html/admin/config.php clk_reload=true
/var/www/html/admin/bounce_op.sh

but this did not change 'AMPUSER 200/ringtimer' and the time it takes for the transfer remains the same

sorry if this not make much sense but i've got googly eyed syndrome now.

please any help will be greatly appricated.



bubbapcguy
Posts: 3774
Member Since:
2006-06-02
what

OK you posting a bunch of nothing here.

You do not add to the database by hand you do not edit files by hand
freepbx WRITES out the files what you see in the GUI is NOT what the files have in them UNTIL you submit it...Asterisk does not READ the database it reads the flat files.

Now what is it you want to do???



peteradtel
Posts: 48
Member Since:
2007-07-23
Basically

Sorry too much googling

basically i want the user to be able to change their extension's ringtimer
but i need to make sure that this is done within the freepbx database and asterisk being updated so if after some admin work i do a apply 'n' reload within the gui it will not overwrite the user's setting.

i have found mention of this setting within ARI but i don't seam to find it.

i also noticed that doing a database put AMPUSER 200/ringtime 5 does not seam to alter the time.



peteradtel
Posts: 48
Member Since:
2007-07-23
forgot to mention

forgot to mention that the user needs to be able to alter the timer without logging into the admin gui and preferrable via a feature code.



SkykingOH
Posts: 9540
Member Since:
2007-12-17
Quote: forgot to mention
Quote:
forgot to mention that the user needs to be able to alter the timer without logging into the admin gui and preferrable via a feature code.

This would be almost impossible. Ringtimer is in the peer details and requires a reload of Asterisk (or at minimum the extension technology IE: SIP module)

I am not even sure if you could use the Asterisk real time to do this.

--

Scott

aka "Skyking"



peteradtel
Posts: 48
Member Since:
2007-07-23
If i could work out how to then maybe it can be done

If i could call an external app which would populate the freepbx database and pass the extension number and ring time as a variable (dtmf detected) using the asterisk cli then
in turn i could initiate a freepbx apply'n'reload as it doesn't effect the calls that are currently on the system.

then it could be done but i don't know how to pass the variable (know how to run a system app) and what the current command line apply'n'reload procedure is for freepbx as the old method doesn't work any more (see 1st post)



peteradtel
Posts: 48
Member Since:
2007-07-23
So any idea's out there?

So any idea's out there?



SkykingOH
Posts: 9540
Member Since:
2007-12-17
Possible solution

What do you want to happen after the extension rings? Do you want it to go to the VM box of that user?

I have figured out a way to do this, it will take some work.

If it has some value to you post a bounty and myself or someone else can work on it for you.

If you want to do it yourself, the idea is to build a custom_extension that accepts the users ring timer and stores it in the Asterisk DB (which is real time). A custom context will then be built for each extension that will ring the extension for that timer and then hand control back to the appropriate FreePBX application.

--

Scott

aka "Skyking"



peteradtel
Posts: 48
Member Since:
2007-07-23
what ever the user wants

i want to it to go to where ever the user has set the unavailble/no anwer call forward to



ethans
Posts: 519
Member Since:
2007-01-16
If I were you, I would open

If I were you, I would open a support request at FreePBX.org and pay them to just do it and get it in FreePBX. It will probably take them a few hours and you can feel good about putting a little bit of cash into the project and contributing to the community.



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.