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@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 OpenSER in the foreground with debugging I can see this:
0(20509) exec:w_exec_dset: executing [lookup.php "$SIP_RURI"]
0(20509) exec_str: rtrim
sh: line 1: sipx-noroute=Voicemail: command not found
How do I correctly escape the SIP_RURI in my openser.cfg to prevent my
script from failing? Or is the RURI to long or something? If I run my
script from commandline with the request uri, everything is fine.
Br,
/Tobias