Hi List,_______________________________________________I use Kamailio 5.2.x and I want to fetch an value from an X Header and do some checks like "is not empty" and "should be an integer".AFAIK per default all values are strings with the hdr function.What are the best way for some validations within Kamailio script language?if(is_present_hf("X-someheader")) {$avp(routing_target) = $(hdr(X-someheader){s.int});if(!ds_list_exists("$avp(routing_target)"))CheersKarsten Horsmann
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users