Developer Tips

From SIPfoundry sipx, The Open Source SIP PBX for Linux - Calivia

Jump to: navigation, search

Contents

Restarting Individual Services

If you continuously build a particular server and want to test it with a full PBX running and you do not want to restart entire PBX every time, use the sipxproc script to bounce just your service.

For example, if you build sipXconfig, do this

make install && sipxproc --restart ConfigServer

To get a list of the process names, and their status, just type sipxproc

Troubleshooting

C++ Problems

If you see mysterious unresolved references, uninstall all "production RPMS" from your development system to avoid references to "stale libraries". You should have a clean development system. Do not install a production system on your build machine. Source code evolves rapidly here! Here is a handy way to do this :

rpm -qa | grep sipx | xargs sudo rpm -e --noscripts


Java compile problems

If you have ANT_HOME and JAVA_HOME defined in your build shell, unset them. java and ant should be installed using RPMs as instructed (not by unpacking zip/tar.gz files).

sipXconfig must be compiled with the Sun Java compiler. If you are using the wrong compiler, you will see errors like this

1. ERROR in /home/dworley/sandbox-111/sipX/sipXconfig/neoconf/src/org/sipfoundry/sipxconfig/admin/CronSchedule.java (at line 1)
	/*
	^^
The type Enum is not generic; it cannot be parameterized with arguments <CronSchedule.Type>

The current Sun Java RPMs are named java-1.5.0-sun-*.

Personal tools