Skip to content

Commit 50a36fc

Browse files
committed
Subscribe for registration information if contact is not found
1 parent c9f94c4 commit 50a36fc

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

smsc/kamailio_smsc.cfg

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ modparam("sqlops", "sqlcon", SMS_DB_URL)
7676
modparam("dialplan", "db_url", DIALPLAN_PUA_DB_URL)
7777
modparam("uac", "restore_mode", "none")
7878

79-
modparam("htable", "htable", "publish_sent=>size=8;autoexpire=SUBSCRIBE_EXPIRE")
8079
modparam("htable", "htable", "sms_retries=>size=8;autoexpire=SUBSCRIBE_EXPIRE")
8180

8281
# time interval set to 3 seconds
@@ -405,7 +404,6 @@ route[NOTIFY] {
405404
if ($rc == 2) {
406405
# All contacts of the IMPU are de-registered
407406
xnotice("All contacts de-registered for $fu\n");
408-
$sht(publish_sent=>$fu) = $null;
409407
}
410408
# Send 202 Accepted response for all cases
411409
send_reply("202", "Accepted");
@@ -435,10 +433,8 @@ route[SEND_SMS] {
435433
$var(j) = $var(j) + 1;
436434
}
437435
} else {
438-
if ($sht(publish_sent=>$var(uri)) == $null) {
439-
reginfo_subscribe("$var(uri)", "SUBSCRIBE_EXPIRE");
440-
$sht(publish_sent=>$var(uri)) = 1;
441-
}
436+
# Subscribe for registration information
437+
reginfo_subscribe("$var(uri)", "SUBSCRIBE_EXPIRE");
442438
}
443439
}
444440

0 commit comments

Comments
 (0)