Script to get the Forwarded No

Post Reply
Breadcrumb
Member
Posts: 1
Joined: 13 Jul 2020 03:26

Script to get the Forwarded No

Post by Breadcrumb »

Hi,

I built a small PHP application which can set a forward redirection for the own phone number.
The user picks the desired target number, then a script file is created as follows:

SET Dynamic_State_Subscriber "101": "#sourceno#": "1"{Forward = "RV_IMD",Number_Forward = "destno"}

Then I upload this script via FTP and login with telnet to execute:
mgr -X /path/to/myscript -nodico

I don't know any other options to do this better, but it works.

If someone forwards the number not via web interface but on directly on the phone, the status of the website is outdated.
Is there any possibility to query the forwarded number via script?

Thanks and best regards
BC
alexeik
Member
Posts: 303
Joined: 26 Apr 2007 10:47
Location: Bad Oeynhausen, germany

Re: Script to get the Forwarded No

Post by alexeik »

listfwd is your friend

btw can you share your phpscript?
Post Reply

Return to “Linux tricks”