[Serusers] exec_dset and NOT changing ruri

Arek Bekiersz sip at perceval.net
Mon Nov 21 22:05:26 CET 2005


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 at gigo.co.uk>
To: "users openser.org" <users at openser.org>
Cc: <serusers at 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 at lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers
>
>




More information about the sr-users mailing list