[OpenSER-Users] How to get a substring?

Ovidiu Sas osas at voipembedded.com
Tue Jul 22 21:13:20 CEST 2008


You will need to upgrade at least to 1.2 and use the transformations:
http://www.openser.org/dokuwiki/doku.php/transformations:1.2.x

Best thing to do, play with the trunk version (to be released soon as 1.4).


Regards,
Ovidiu Sas

On Tue, Jul 22, 2008 at 1:34 PM, Daniel Cardoso Alves
<dcardosoa at yahoo.com.br> wrote:
> Hi...
>
> I am using the openser 1.1.0 and I would like get a substring of FROM...
> For example, I have the code in my script:
>
> ----------------------------------------------------------
> avp_write("$fU","$avp(s:777)");
> avp_print();
> ----------------------------------------------------------
>
> And it shows in the log:
> ----------------------------------------------------------
> 5(6249) INFO:                  name=<777>
> 5(6249) INFO:                  val_str=<4830353131 / 10>
> ----------------------------------------------------------
>
> Is possible I get only the first and the second char (in this case is 48) of
> $fU???
> Are there some way?
>
>
> Thanks.....
>
>
> ________________________________
> Novos endereços, o Yahoo! que você conhece. Crie um email novo com a sua
> cara @ymail.com ou @rocketmail.com.
> _______________________________________________
> Users mailing list
> Users at lists.openser.org
> http://lists.openser.org/cgi-bin/mailman/listinfo/users
>
>



More information about the Users mailing list