-echo "Calling (backgrounded):";
-echo "perl -I./ ./SIPServer.pm $sipconfig >>$outfile 2>>$errfile";
-perl -I./ ./SIPServer.pm $sipconfig >>$outfile 2>>$errfile &
+if [ $sipconfig ]; then
+ echo "Running with config file located in $sipconfig" ;
+ echo "Calling (backgrounded):";
+ echo "perl -I./ ./SIPServer.pm $sipconfig >>$outfile 2>>$errfile";
+ perl -I./ ./SIPServer.pm $sipconfig >>$outfile 2>>$errfile &
+
+else
+ echo "Please specify a config file and try again."
+fi