Hi Philipp,
As time as there are other solution, IMHO the exec feature should be avoided as much as possible - it introduce a big overhead by dynamically creating/waitting processes for each INVITE. Just an opinion :-)
Best regards, Marian
Alexander Philipp Lintenhofer wrote:
Hi,
Simply use following shellscript "requestBehindSameNAT.sh": ################################## #!/bin/bash # Prüft anhand der Request-URI und der Contact-Adresse, # ob Quelle und Ziel gleich sind -> NAT-Box
DESTIP=`echo $SIP_RURI | sed 's/[^0-9.:]//g' | cut -d":" -f2`
[ $DESTIP = $SIP_SRCIP ] && exit 0 exit 1 ################################## ... and call it in ser.cfg: if (!exec_msg("/usr/local/share/requestBehindSameNAT.sh")) { use_media_proxy(); t_on_reply("1"); }
regards, Philipp
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/seruser s