|
@@ -31,15 +31,15 @@ CPL=cpl_ignore.xml
|
|
TMPFILE=`mktemp -t kamailio-test.XXXXXXXXXX`
|
|
TMPFILE=`mktemp -t kamailio-test.XXXXXXXXXX`
|
|
|
|
|
|
cp $CFG $CFG.tmp
|
|
cp $CFG $CFG.tmp
|
|
-echo "loadmodule \"db_postgres/db_postgres.so\"" >> $CFG
|
|
|
|
|
|
+echo "loadmodule \"../../modules/db_postgres/db_postgres.so\"" >> $CFG
|
|
echo "modparam(\"cpl-c\", \"db_url\", \"postgres://openser:openserrw@localhost/openser\")" >> $CFG
|
|
echo "modparam(\"cpl-c\", \"db_url\", \"postgres://openser:openserrw@localhost/openser\")" >> $CFG
|
|
|
|
|
|
|
|
|
|
-../$BIN -w . -f $CFG &> /dev/null;
|
|
|
|
|
|
+$BIN -w . -f $CFG &> /dev/null;
|
|
ret=$?
|
|
ret=$?
|
|
sleep 1
|
|
sleep 1
|
|
|
|
|
|
-../scripts/$CTL fifo LOAD_CPL sip:[email protected] $CPL
|
|
|
|
|
|
+$CTL fifo LOAD_CPL sip:[email protected] $CPL
|
|
|
|
|
|
if [ "$ret" -eq 0 ] ; then
|
|
if [ "$ret" -eq 0 ] ; then
|
|
sipp -m 1 -f 1 127.0.0.1:5060 -sf cpl_test.xml &> /dev/null;
|
|
sipp -m 1 -f 1 127.0.0.1:5060 -sf cpl_test.xml &> /dev/null;
|
|
@@ -47,14 +47,14 @@ if [ "$ret" -eq 0 ] ; then
|
|
fi;
|
|
fi;
|
|
|
|
|
|
if [ "$ret" -eq 0 ] ; then
|
|
if [ "$ret" -eq 0 ] ; then
|
|
- ../scripts/$CTL fifo GET_CPL sip:[email protected] > $TMPFILE
|
|
|
|
|
|
+ $CTL fifo GET_CPL sip:[email protected] > $TMPFILE
|
|
diff $TMPFILE $CPL
|
|
diff $TMPFILE $CPL
|
|
ret=$?
|
|
ret=$?
|
|
fi;
|
|
fi;
|
|
|
|
|
|
if [ "$ret" -eq 0 ] ; then
|
|
if [ "$ret" -eq 0 ] ; then
|
|
- ../scripts/$CTL fifo REMOVE_CPL sip:[email protected]
|
|
|
|
- ../scripts/$CTL fifo GET_CPL sip:[email protected] > $TMPFILE
|
|
|
|
|
|
+ $CTL fifo REMOVE_CPL sip:[email protected]
|
|
|
|
+ $CTL fifo GET_CPL sip:[email protected] > $TMPFILE
|
|
fi;
|
|
fi;
|
|
|
|
|
|
diff $TMPFILE $CPL &> /dev/null;
|
|
diff $TMPFILE $CPL &> /dev/null;
|