Kamailio 3.3.0
I have a variable $var(s:dst). It can store either a number or IP. How do I check to determine whether it is a number of IP? I tried the following and it did not work:
If ($var(s:dst) =~ "^\d+.\d+.\d+.\d+$"){
It is a IP.
}else{
It is a Number
}
Thanks
Gary