scripts/wengophone.sh
author vadim@mbdsys.com
Fri, 29 Feb 2008 19:33:37 +0100
changeset 75 b9d00ba33b90
permissions -rwxr-xr-x
Some SIP servers upon registration return 200 ok message
with multiple Contact headers, each one with different 'expires' parameter.
This patch implement lookup of such a header in the returned answer message,
retreival of the expires parameter value and fixing regTimout field of the corresponding
virtual line
     1 #!/bin/sh
     2 
     3 SCRIPT="$0"
     4 COUNT=0
     5 while [ -L "${SCRIPT}" ]
     6 do
     7 	SCRIPT=$(readlink ${SCRIPT})
     8 	COUNT=$(expr ${COUNT} + 1)
     9 	if [ ${COUNT} -gt 100 ]
    10 	then
    11 		echo "Too many symbolic links"
    12 		exit 1
    13 	fi
    14 done
    15 APPDIR=$(dirname ${SCRIPT})
    16 
    17 export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${APPDIR}"
    18 
    19 cd ${APPDIR}
    20 
    21 # Hardcode the Plastique style for now, because the audio sliders looks wrong
    22 # with other styles.
    23 exec ./@BINARY_NAME@ -style plastique "$@"