Hey list,
I've been trying the relay OPTIONS messages from an asterisk server through kamailio to clients so to preserve the qualify feature in asterisk. So
ASTERISK -----OPTIONS----> KAMAILIO ------------> UA
UA ----OK-----> KAMAILIO ---OK-----> ASTERISK
But I'm seeing floods of OPTIONS messages between asterisk and kamailio now. So much so that kamailio seems to deadlock introducing 10 -20 second delays in processing messages
firstly I've enabled the options.so but this is just enable remote monitoring of the application and in my FROMASTERISK route
#!ifdef WITH_ASTERISK
# Test if coming from Asterisk
route[FROMASTERISK] {
# if($si==$sel(cfg_get.asterisk.bindip)
# && $sp==$sel(cfg_get.asterisk.bindport))
if ((method==OPTIONS) && (uri=~"sip:.*[@]+.*")) {
xlog("L_INFO","Options Reply from $ru to $fu\r\n");
return 1;
}
if(ds_is_from_list("2")){
$sht(forw=>$ft)=$si;
xlog("L_INFO","INVITE: INVITE Passed From [$fu] Asterisk Cluster To [$rm:$au].\n");
return 1;
}
return -1;
}