Change Class of service

majid2236
Member
Posts: 33
Joined: 29 Jun 2013 14:47

Change Class of service

Post by majid2236 »

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
User avatar
cavagnaro
Alcatel Unleashed Certified Guru
Alcatel Unleashed Certified Guru
Posts: 7014
Joined: 14 Sep 2005 19:45
Location: Brasil, Porto Alegre
Contact:

Re: Change Class of service

Post by cavagnaro »

Can't...there is API only.
http://enterprise.alcatel-lucent.com/?p ... e=overview
My Management one
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
majid2236
Member
Posts: 33
Joined: 29 Jun 2013 14:47

Re: Change Class of service

Post by majid2236 »

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
User avatar
cavagnaro
Alcatel Unleashed Certified Guru
Alcatel Unleashed Certified Guru
Posts: 7014
Joined: 14 Sep 2005 19:45
Location: Brasil, Porto Alegre
Contact:

Re: Change Class of service

Post by cavagnaro »

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
vad
Alcatel Unleashed Certified Guru
Alcatel Unleashed Certified Guru
Posts: 3806
Joined: 23 Sep 2004 06:47

Re: Change Class of service

Post by vad »

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
User avatar
cavagnaro
Alcatel Unleashed Certified Guru
Alcatel Unleashed Certified Guru
Posts: 7014
Joined: 14 Sep 2005 19:45
Location: Brasil, Porto Alegre
Contact:

Re: Change Class of service

Post by cavagnaro »

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
User avatar
tgn
Member
Posts: 802
Joined: 30 Dec 2009 17:59
Location: Germany

Re: Change Class of service

Post by tgn »

Hi cav,
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"}
}
Quick and dirty shellscript sample:

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
After this ...

Code: Select all

./pin.sh 123
...will set the pin of subscriber 123 to 54321.

The rest is 'all about the bash' :P

Regards...
--- back to basics... focus your eyes to the essential things... ---
User avatar
cavagnaro
Alcatel Unleashed Certified Guru
Alcatel Unleashed Certified Guru
Posts: 7014
Joined: 14 Sep 2005 19:45
Location: Brasil, Porto Alegre
Contact:

Re: Change Class of service

Post by cavagnaro »

\o/ Excellent tgn!! Thanks!! Guess this will help the initial poster too! :D
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
majid2236
Member
Posts: 33
Joined: 29 Jun 2013 14:47

Re: Change Class of service

Post by majid2236 »

Thanks in advance.
It is wonderfull.
majid2236
Member
Posts: 33
Joined: 29 Jun 2013 14:47

Re: Change Class of service

Post by majid2236 »

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.
Last edited by majid2236 on 13 Nov 2014 08:34, edited 3 times in total.
Post Reply

Return to “Classes of Services”