Change Class of service
Change Class of service
Hi every one
I want to design a prepaid billing system. I want to change class of service feature by commands. how can I find these commands ?
Thanks
Majid
I want to design a prepaid billing system. I want to change class of service feature by commands. how can I find these commands ?
Thanks
Majid
- cavagnaro
- Alcatel Unleashed Certified Guru
- Posts: 7014
- Joined: 14 Sep 2005 19:45
- Location: Brasil, Porto Alegre
- Contact:
Re: Change Class of service
Ignorance is not the problem, the problem is the one who doesn't want to learn
OTUC/ICS ACFE/ACSE R3.0/4.0/5.0/6.0
Certified Genesys CIV 8.5
Certified Genesys Troubleshooting 8.5
Certified Genesys BEP 8.x
Genesys Developer
OTUC/ICS ACFE/ACSE R3.0/4.0/5.0/6.0
Certified Genesys CIV 8.5
Certified Genesys Troubleshooting 8.5
Certified Genesys BEP 8.x
Genesys Developer
Re: Change Class of service
Thanks for your help
I read a lot about MGR script on alcatelunleashed site. can I change my COS with MGR script?
does Alcatel has a reference about MGR script?
Thanks
I read a lot about MGR script on alcatelunleashed site. can I change my COS with MGR script?
does Alcatel has a reference about MGR script?
Thanks
- cavagnaro
- Alcatel Unleashed Certified Guru
- Posts: 7014
- Joined: 14 Sep 2005 19:45
- Location: Brasil, Porto Alegre
- Contact:
Re: Change Class of service
I'm not very familiar with it. Some other guy will answer you. Would be interesting
Ignorance is not the problem, the problem is the one who doesn't want to learn
OTUC/ICS ACFE/ACSE R3.0/4.0/5.0/6.0
Certified Genesys CIV 8.5
Certified Genesys Troubleshooting 8.5
Certified Genesys BEP 8.x
Genesys Developer
OTUC/ICS ACFE/ACSE R3.0/4.0/5.0/6.0
Certified Genesys CIV 8.5
Certified Genesys Troubleshooting 8.5
Certified Genesys BEP 8.x
Genesys Developer
Re: Change Class of service
Example - Personal Calling Number changing :
mgr -nodico -X <file>; where "file" file with information.
The syntaxe is:
SET Subscriber "1": "3000"
{
PIN = {"54321","TRUE","PIN_Category","2"}
}
For file content - you can just run
mgr -log xxxx (filename),
You will have mgr action in log file,
you can do something in mgr, and read xxxx Log file in cd /usr3/mao.
You can use this log file via
mgr -nodico -X xxxx
mgr -nodico -X <file>; where "file" file with information.
The syntaxe is:
SET Subscriber "1": "3000"
{
PIN = {"54321","TRUE","PIN_Category","2"}
}
For file content - you can just run
mgr -log xxxx (filename),
You will have mgr action in log file,
you can do something in mgr, and read xxxx Log file in cd /usr3/mao.
You can use this log file via
mgr -nodico -X xxxx
- cavagnaro
- Alcatel Unleashed Certified Guru
- Posts: 7014
- Joined: 14 Sep 2005 19:45
- Location: Brasil, Porto Alegre
- Contact:
Re: Change Class of service
Hey Vad you know if parameters can be defined on that script? Like to make the 3000 something that could vary, a %1 for example
Ignorance is not the problem, the problem is the one who doesn't want to learn
OTUC/ICS ACFE/ACSE R3.0/4.0/5.0/6.0
Certified Genesys CIV 8.5
Certified Genesys Troubleshooting 8.5
Certified Genesys BEP 8.x
Genesys Developer
OTUC/ICS ACFE/ACSE R3.0/4.0/5.0/6.0
Certified Genesys CIV 8.5
Certified Genesys Troubleshooting 8.5
Certified Genesys BEP 8.x
Genesys Developer
Re: Change Class of service
Hi cav,
you can use sed to manipulate a template.
Template file pin.mgr:
Quick and dirty shellscript sample:
After this ...
...will set the pin of subscriber 123 to 54321.
The rest is 'all about the bash'
Regards...
you can use sed to manipulate a template.
Template file pin.mgr:
Code: Select all
SET Subscriber "1": "AaAvarNumberAaA"
{
PIN = {"54321","TRUE","PIN_Category","2"}
}
Code: Select all
#!/bin/bash
sed s/AaAvarNumberAaA/$1/g pin.mgr > /tmpd/temp.mgr
mgr -nodico -X /tmpd/temp.mgr
rm /tmpd/temp.mgr
Code: Select all
./pin.sh 123
The rest is 'all about the bash'
Regards...
--- back to basics... focus your eyes to the essential things... ---
- cavagnaro
- Alcatel Unleashed Certified Guru
- Posts: 7014
- Joined: 14 Sep 2005 19:45
- Location: Brasil, Porto Alegre
- Contact:
Re: Change Class of service
\o/ Excellent tgn!! Thanks!! Guess this will help the initial poster too!
Ignorance is not the problem, the problem is the one who doesn't want to learn
OTUC/ICS ACFE/ACSE R3.0/4.0/5.0/6.0
Certified Genesys CIV 8.5
Certified Genesys Troubleshooting 8.5
Certified Genesys BEP 8.x
Genesys Developer
OTUC/ICS ACFE/ACSE R3.0/4.0/5.0/6.0
Certified Genesys CIV 8.5
Certified Genesys Troubleshooting 8.5
Certified Genesys BEP 8.x
Genesys Developer
Re: Change Class of service
Thanks in advance.
It is wonderfull.
It is wonderfull.
Re: Change Class of service
I found a way to send parameter to the mgr script and i wrote the script that can create user atuomaticaly for a range of users.
perfect way for do every things in alcatel PBX automaticaly.
for example:
#!/bin/bash
for i in 8002 8003 8004 8005 8006
do
rm -rf test.txt
echo CREATE Subscriber '"'1'"': '"'$i'"' >> test.txt
echo { >> test.txt
echo Entity_Number = '"'3'"' >> test.txt
echo } >> test.txt
mgr -nodico -X test.txt
done
above bash script create users from 8002 to 8006 with entity 3. we can change other parameter to create a better script.
perfect way for do every things in alcatel PBX automaticaly.
for example:
#!/bin/bash
for i in 8002 8003 8004 8005 8006
do
rm -rf test.txt
echo CREATE Subscriber '"'1'"': '"'$i'"' >> test.txt
echo { >> test.txt
echo Entity_Number = '"'3'"' >> test.txt
echo } >> test.txt
mgr -nodico -X test.txt
done
above bash script create users from 8002 to 8006 with entity 3. we can change other parameter to create a better script.
Last edited by majid2236 on 13 Nov 2014 08:34, edited 3 times in total.