Long time i didn’t update my blog, hehehe…
now, i will try to writing about PCRF at IMS, what is that?
PCRF (Policy Control Rule Function) is one of IMS architecture which support for policy and charging control decision based on session and media related information obtained from the P-CSCF. For that implementation, i’m use UCT Policy Control Framework at my OpenIMS. So you can get the detail information of that at UCT or FOKUS project. UCT Policy Control Framework have defined two software tool for implementation, they are PCRF and PCEF (Policy and Charging Enforcement Point).
PCRF connected to PCEF with the Gx interface, that the function of PCEF’s role encompasses applicable traffic detection and resultant policy enforcement. This entity is typically located at a Gateway node, which varies by transport layer (e.g. a GGSN, PDG etc.). 
You can search the other references related this topic, i can’t explained too detail for that. Maybe you have good reference for this topic, please share with the others. You can comment for this page and share your reference. Hehe
Ok, now let’s begin build that implementation, for prerequisites you must have install openims core and running verry well.
Make sure it,
1. Download the software
Download the extended ser_ims from the 08_cdp_sessions branch
#svn checkout http://svn.berlios.de/svnroot/repos/openimscore/ser_ims/branches/08_cdp_sessions ser_ims_qos
or maybe you have the source of ser_ims20081023.r0595.tgz, you can extract them and copy folder 08_cdp_sessions ser_ims_qos to your ser_ims_qos direktory
#cp 08_cdp_sessions ser_ims_qos /opt/OpenIMSCore/ser_ims_qos/
Download the uctpcrf tarball here and extract in /opt/OpenIMSCore/
#tar -xvzf /opt/OpenIMSCore/uctpcrf.tar.gz
You will need the following Ubuntu packages: libxerces-java libcommons-httpclient-java tomcat5.5
from the command line:
#sudo apt-get install libxerces-java libcommons-httpclient-java tomcat5.5
2. Configure DNS Server
You need to add DNS entries for the PCRF and PCEF
If you are running the DNS on your own machine add these lines to /etc/bind/open-ims.dnszone:
pcrf 1D IN A 192.168.6.128
pcef 1D IN A 192.168.6.128
You will need to restart bind for these changes to take effect:
sudo /etc/init.d/bind9 restart
Check that this all works; try a nslookup and see if you get a response:
nslookup pcrf.open-ims.test
nslookup pcef.open-ims.test
3. Compile source
Compile the CSCFs. In /opt/OpenIMSCore/ser_ims_qos:
#sudo make install-libs all
Set the JAVA_HOME environment variable:
#export JAVA_HOME=”/usr/lib/jvm/java-1.6.0-sun”
Compile the PCRF and PCEF. In /opt/OpenIMSCore/uctpcrf:
#./compile
4. Setup Web Interface
Move the web management folder to the document root of the Tomcat server
#cd /opt/OpenIMSCore/uctpcrf
#sudo cp -r uct_web_pcm /var/lib/tomcat5.5/webapps
Move the uct_web_pcm.policy config file to the policy folder of the Tomcat server
#cd /opt/OpenIMSCore/uctpcrf/config
#sudo cp uct_web_pcm.policy /etc/tomcat5.5/policy.d
Change the file permissions on files domain_policies.xml, default_domain_properties.xml, pcef.properties and pcrf.properties.
#chmod uog+rw /opt/OpenIMSCore/uctpcrf/policies/domain_policies.xml
#chmod uog+rw /opt/OpenIMSCore/uctpcrf/policies/default_domain_policies.xml
#chmod uog+rw /opt/OpenIMSCore/uctpcrf/config/pcef.properties
#chmod uog+rw /opt/OpenIMSCore/uctpcrf/config/pcrf.properties
Restart the Tomcat server
#sudo /etc/init.d/tomcat5.5 restart
5. Configure for your ip address and domain with configurator.sh
Set your ip address and domain for your pcrf,pcef and all config folder ser_ims_qos,
root@open-ims:/opt/OpenIMSCore#ser_ims/cfg/configurator.sh uctpcrf/config/pcef.sh uctpcrf/config/pcrf.sh uctpcrf/config/ims.sh uctpcrf/config/DiameterPeerPCEF.xml uctpcrf/config/DiameterPeerPCRF.xml uctpcrf/config/DiameterPeerPCSCF.xml uctpcrf/config/pcscf.qos.cfg uctpcrf/config/pcscf.qos.rtp.cfg uctpcrf/config/pcscf.qos.rtp.sh uctpcrf/config/pcscf.qos.sh uctpcrf/config/pcscf.qos.xml uctpcrf/config/rtpproxy.sh uctpcrf/config/runDiameterClient.sh uctpcrf/config//xcapTest.sh uctpcrf/config/uct_web_pcm.policy uctpcrf/config/ims.qos.rtp.sh uctpcrf/config/ims.qos.sh \ uctpcrf/config/pcrf.properties uctpcrf/config/pcef.properties
Domain Name:open-ims.test
IP Adress:192.168.6.128
6. Run
Copy the new configuration files to the OpenIMSCore folder:
#cd /opt/OpenIMSCore/uctpcrf/config
#cp pcscf.qos.cfg pcscf.qos.rtp.cfg pcscf.qos.xml pcscf.qos.sh ims.sh ims.qos.sh ims.qos.rtp.sh /opt/OpenIMSCore
From /opt/OpenIMSCore run all the core elements (if there is an error try setting the JAVA_HOME environment variable again):
./ims.qos.sh
or maybe you can run
./pcscf.qos.sh
./scscf.sh
./iscscf.sh
./fhoss.sh
Run the PCRF and PCEF each in a new terminal tab (if there is an error try setting the JAVA_HOME environment variable again). Note: the PCEF must be run as super user as it invokes network commands:
cd uctpcrf
./pcrf
sudo ./pcef
Run the Web Management Interface in a suitable web browser:
Go to http://localhost:8180/uct_web_pcm/
Thanks,
Yuliantz





Dec 03, 2010 @ 01:25:00
akhir nya ada yang sakau ngoprek juga …. yuksss kita ngoprek lagi cuy
Dec 05, 2010 @ 22:08:46
mari mang,,,ne cuma lg sempet aja,,,
Dec 07, 2010 @ 23:04:28
untuk yg step 3
di bagian >>> #sudo make install-libs all
kok bermasalah y, ada bla bla bla error “install-libs” .stop
kira2 knp tuh y?
mohon bantuan’ny…
thx b4.
Dec 25, 2010 @ 07:21:48
gcc dan dependency yg laen dah di install belum yah?
disitu kan ada requirement utk install ser_ims_qos,,,
Mar 24, 2011 @ 16:54:17
misi mas…
say sudah mengikuti smw step2 di atas…
akan tetapi ketika menjalankan PCRF, terdapat error seperti ini:
“[Thread-11] ERROR de.fhg.fokus.diameter.DiameterPeer.peer.StateMachine – StateMachine: Peer pcscf.open-ims.test not responding to connection attempt”
kira2 itu knp y mas? trs apa yg harus saya perbaiki?
thx.
Apr 26, 2011 @ 06:33:09
Hi!
my name is joris.
i have problem with pcrf and open ims core.
When i launch pcscf.qos.sh, appear to me error msg in console.
the error msg is:
————————-
0(2610) parse error (313,25-26): unknown command, missing loadmodule?
0(2610) parse error (333,18-19): unknown command, missing loadmodule?
0(2610) parse error (396,26-27): unknown command, missing loadmodule?
0(2610) parse error (490,25-26): unknown command, missing loadmodule?
0(2610) parse error (543,18-19): unknown command, missing loadmodule?
ERROR: bad config file (5 errors)
0(2610) INFO:cdp:cdp_exit(): CDiameterPeer stoping …
./pcscf.qos.sh: line 8: 2610 Segmentation fault LD_LIBRARY_PATH=”/usr/local/lib/ser” /opt/OpenIMSCore/ser_ims_qos/ser -f /opt/OpenIMSCore/pcscf.qos.cfg -D -D
————————-
Have you any ideas for solution to the problem?
thank you!
joris.
Apr 26, 2011 @ 09:01:55
Hi Joris,
at your dir /opt/OpenIMSCore/ you must have dir ser_ims (old ser ims) and dir ser_ims_qos (new ser ims with qos)
Apr 26, 2011 @ 09:52:32
Hi Yuli,
yes, i have dir ser_ims and ser_ims_qos in /opt/OpenIMSCore/ …
Apr 26, 2011 @ 09:56:52
i have dir : ser_ims for launch scscf icscf and ecscf , and fhoss scripts and ims_ser_qos for pcscf.qos, pcef and pcrf scripts.
Apr 26, 2011 @ 21:19:14
Hi Joris,
ok, maybe when your install ser_ims_qos have error..some dependencies must be install first,,there’s no module can be load at ser_ims_qos,,
are you saving the log when u install the ser_ims_qos?
Dec 26, 2011 @ 12:05:49
salam,
saya telah berhasil menjalankan instalasi pcrf, tetapi webnya tidak mau terbuka. apakah langkah yang harus saya lakukan