@@ -76,7 +76,6 @@ modparam("sqlops", "sqlcon", SMS_DB_URL)
7676modparam(" dialplan" , " db_url" , DIALPLAN_PUA_DB_URL)
7777modparam(" uac" , " restore_mode" , " none" )
7878
79- modparam(" htable" , " htable" , " publish_sent=>size=8;autoexpire=SUBSCRIBE_EXPIRE" )
8079modparam(" 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