SCRIPT CHANGE RENVOI EXT

REMI01
Member
Posts: 26
Joined: 08 Jun 2012 09:52

SCRIPT CHANGE RENVOI EXT

Post by REMI01 »

Dear All,

Is it possible to write a script to change numeenr automatically ?. We have Omni PCX 4400 with software R9.1.
i have test with cd /usr3/mao
cuser
the table poste
update poste set numeenr='22918' where numan='1686';
commit;
this modification is ok in sql when list (select * from poste where numan='1686';)
but is not ok with commande listfwd


Thanks in advance

User avatar
Tha Tawa'S
Member
Posts: 87
Joined: 16 Jan 2010 04:49

Re: SCRIPT CHANGE RENVOI EXT

Post by Tha Tawa'S »

yes it exits.

-step 1 : create a file named Renvoi in /DHS3bin/mtcl
-step 2 : edit this file with :

SET Dynamic_State_Subscriber "1001": "MCDU": "1"
{
Forward = "RV_IMD",
Number_Forward = "MCDU" <== destination of forward
}

-step 3 : to execute the script :
mgr -nodico -X Renvoi

see you

REMI01
Member
Posts: 26
Joined: 08 Jun 2012 09:52

Re: SCRIPT CHANGE RENVOI EXT

Post by REMI01 »

Dear All,

Thanks ,but it's same with script when mgr -nodico -x 29918 (22918 is my file)
respond job completed at <time>
my file
SET Dynamic_State_Subscriber "0": "1686": "1"
{
Forward = "RV_IMD",
Number_Forward = "22918"
}

when i go to listwd is not the same Number_Forward
Thanks

User avatar
Tha Tawa'S
Member
Posts: 87
Joined: 16 Jan 2010 04:49

Re: SCRIPT CHANGE RENVOI EXT

Post by Tha Tawa'S »

I am not really sure to understand.
First, I think you have to respect case sensitive. nodico option needs "-X" (Uppercase)
Second, what do you mean when you write "respond job completed at <time>"

For my understanding, your script should forward line 1686 to 22918.
TO troubleshoot your problem, I think you should go step by step :
-Can you manually forward 1686 to 22918 ?
-Does "mgr -nodico -X 29918" works when you execute it manually ?

REMI01
Member
Posts: 26
Joined: 08 Jun 2012 09:52

Re: SCRIPT CHANGE RENVOI EXT

Post by REMI01 »

Hello

It's ok ,i just needs "-X" (Uppercase), now i can make a script (vbs)for all my users of this forward.
And automatise this forward .

Thanks

User avatar
Tha Tawa'S
Member
Posts: 87
Joined: 16 Jan 2010 04:49

Re: SCRIPT CHANGE RENVOI EXT

Post by Tha Tawa'S »

You are welcome to share your VBS script with us ! ;-)

sb0526
Member
Posts: 31
Joined: 28 Mar 2011 04:00

Re: SCRIPT CHANGE RENVOI EXT

Post by sb0526 »

Dear Sir

follow your script file

SET Dynamic_State_Subscriber "0": "1686": "1"
{
Forward = "RV_IMD",
Number_Forward = "22918"
}

This means that extension 1686 forward to 22918
what is the "0" and "1"

User avatar
Tha Tawa'S
Member
Posts: 87
Joined: 16 Jan 2010 04:49

Re: SCRIPT CHANGE RENVOI EXT

Post by Tha Tawa'S »

"0" is network-node
"1" is information that you "go down in hierarchie" about your mgr action.

Regards.

tomekandos
Member
Posts: 3
Joined: 01 Dec 2015 06:00

Re: SCRIPT CHANGE RENVOI EXT

Post by tomekandos »

Dear All,
Could anyone tell me how to forward a call in case of no reply?

User avatar
tgn
Member
Posts: 802
Joined: 30 Dec 2009 17:59
Location: Germany

Re: SCRIPT CHANGE RENVOI EXT

Post by tgn »

search in forum with "mgr -log"

regards...


--- back to basics... focus your eyes on the essential things... ---
--- back to basics... focus your eyes to the essential things... ---

Post Reply

Return to “Linux tricks”