[Users] Re: [Serusers] exec_dset and NOT changing ruri

Bogdan-Andrei Iancu bogdan at voice-system.ro
Tue Nov 22 10:01:23 CET 2005


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");
>
>
>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 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 iptel.org
>>http://mail.iptel.org/mailman/listinfo/serusers
>>
>>
>>    
>>
>
>_______________________________________________
>Serusers mailing list
>Serusers at iptel.org
>http://mail.iptel.org/mailman/listinfo/serusers
>
>  
>





More information about the Users mailing list