Hi, How can I reference the type and length attributes of a variable ( @set or $avp) ? ? ? ..mike..
Neither is supported, afaik. I've coded a function to return the length of string AVPs, but this kind of basic functionality should probably go into core, along with the AVP overhaul.
Regards, Bogdan.
Mike Trest - Personal wrote:
Hi, How can I reference the type and length attributes of a variable ( @set or $avp) ? ? ? ..mike..
Serusers mailing list Serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Well,
you can use eval module for that (until the function will be in the core).
eval_push("$avp"); or eval_push("@select"); eval_oper("strlen"); eval_pop("$result"); or $result=@eval.pop[-1]
Beware UNTESTED :-D
Michal
Bogdan Pintea píše v Pá 29. 02. 2008 v 18:42 +0100:
Neither is supported, afaik. I've coded a function to return the length of string AVPs, but this kind of basic functionality should probably go into core, along with the AVP overhaul.
Regards, Bogdan.
Mike Trest - Personal wrote:
Hi, How can I reference the type and length attributes of a variable ( @set or $avp) ? ? ? ..mike..
Serusers mailing list Serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Thanks. I will try eval on test machine.
At 01:37 PM 2/29/2008, Michal Matyska wrote:
Well,
you can use eval module for that (until the function will be in the core).
eval_push("$avp"); or eval_push("@select"); eval_oper("strlen"); eval_pop("$result"); or $result=@eval.pop[-1]
Beware UNTESTED :-D
Michal
Bogdan Pintea pÃe v Pá 29. 02. 2008 v 18:42 +0100:
Neither is supported, afaik. I've coded a function to return the length of string AVPs, but this kind of basic functionality should probably go into core, along with the AVP overhaul.
Regards, Bogdan.
Mike Trest - Personal wrote:
Hi, How can I reference the type and length attributes of a variable ( @set or $avp) ? ? ? ..mike..
Serusers mailing list Serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Hi Bogdan,
agreed -- perhaps would you like to put it in Jira on the wishlist :-)
-jiri
At 18:42 29/02/2008, Bogdan Pintea wrote:
Neither is supported, afaik. I've coded a function to return the length of string AVPs, but this kind of basic functionality should probably go into core, along with the AVP overhaul.
Regards, Bogdan.
Mike Trest - Personal wrote:
Hi, How can I reference the type and length attributes of a variable ( @set or $avp) ? ? ? ..mike..
Serusers mailing list Serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
-- Bogdan Pintea
iptego GmbH - VoIP Security http://www.iptego.com
Serusers mailing list Serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
-- Jiri Kuthan http://iptel.org/~jiri/
I've added it to the SER-326 issue.
BTW, could Jira be configured (back?) to send a dev mail for every issue update? I've added a comment on issue SER-359, which probably only Rick was notified about, when I actually wanted the makefiles' maintainer be hinted about.
Bogdan.
Jiri Kuthan wrote:
Hi Bogdan,
agreed -- perhaps would you like to put it in Jira on the wishlist :-)
-jiri
At 18:42 29/02/2008, Bogdan Pintea wrote:
Neither is supported, afaik. I've coded a function to return the length of string AVPs, but this kind of basic functionality should probably go into core, along with the AVP overhaul.
Regards, Bogdan.
Mike Trest - Personal wrote:
Hi, How can I reference the type and length attributes of a variable ( @set or $avp) ? ? ? ..mike..
Serusers mailing list Serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
-- Bogdan Pintea
iptego GmbH - VoIP Security http://www.iptego.com
Serusers mailing list Serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
-- Jiri Kuthan http://iptel.org/~jiri/
Serusers mailing list Serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers