Hi,
another solution would be to save the current ruri into and AVP, call the exec function and restore the ruri from avp. this will ensure that the RURI is 100% preserved, including the parameters and headers.
regards, bogdan
Arek Bekiersz wrote:
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");
- 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@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@iptel.org http://mail.iptel.org/mailman/listinfo/serusers
Serusers mailing list Serusers@iptel.org http://mail.iptel.org/mailman/listinfo/serusers