If you do not want to rewrite Request-URI, then:
1.Use exec_dst() and return untouched Request-URI as-it-was. Remember that whenever you return something from the script, as:
if( success ) { $strOut = "sip:"; $strOut = "1234"; $strOut .= "@domain\n"; }; fwrite(STDOUT, $strOut);
then Request-URI (destination set) is replaced with this returned value(s). So returning untouched Request-URI is as simple as:
fwrite( STDOUT, $_SERVER['argv'][2]."\n");
2. IMHO you should be able to use normal exec_msg() as well. In both cases (1 & 2) you will have SER values in env variables to process them.
Note: Remember to set setvars(1) in ser.cfg.
-- Arek
----- Original Message ----- From: "Iqbal" iqbal@gigo.co.uk To: "users openser.org" users@openser.org Cc: serusers@lists.iptel.org Sent: Monday, November 21, 2005 6:10 PM Subject: [Serusers] exec_dset and NOT changing ruri
Hi
Is this possible ? just want to use the features of dset, to pull in call info into a script
Iqbal
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers