[Serusers] Ser-0.9.6 and exec_dset

Tobias Lindgren tobias.lindgren at ip-only.se
Mon Mar 12 16:09:44 CET 2007


Hi all,

I'm using exec_dset to run a script which takes the Request-URI and
returns a new Request-URI based on the number dialed.

In ser.cfg I'm doing this:
if (exec_dset("lookup.sh \"$SIP_RURI\"")) {
	# Route call
} else {
	# Reply with a cause
}

Recently a customer started to use SIP-X, and his INVITES with
Request-URIs looks like this:
sip:1001 at 192.168.0.1:5060;sipx-noroute=Voicemail

Ser responds with "500 Server Internal Error" to these INVITEs, which is
due to that my script fails.

If I run SER in the foreground with debugging I can see this:
"sh: line 1: sipx-noroute=Voicemail: command not found"
so clearly the ";" in the INVITE causes a problem.

How do I correctly escape the SIP_RURI in my ser.cfg to prevent my
script from failing? If I run my script from commandline with the
request uri, everything is fine.

Br,
/Tobias



More information about the sr-users mailing list