<div dir="ltr"><div><font face="monospace">Hi Folks - I am attempting to set up a mobile push configuration, by following the published example(s).  </font></div><div><font face="monospace"><br></font></div><div><font face="monospace">If we have more than one endpoint registered, this configuration works as expected (via the ts_store() path below).  </font></div><div><font face="monospace"><br></font></div><div><font face="monospace">If we do not have another registered endpoint the transaction seems to be suspended but then cannot be resumed (t_suspend) after REGISTER arrives. </font></div><font face="monospace"><div><font face="monospace"><br></font></div><div><font face="monospace"><br></font></div>INFO: <script>: [R-LOG]: INVITE from IP:[24.XXX.XXX.XXX:62665] [sip:jeremy2@stage][<null>]<br>NFO: <script>: [R-SUSPEND]: Suspended transaction [41359:415220139]<br>INFO: <script>: [R-SUSPEND]: fU:[jeremy] rU:[jeremy2] tU:[jeremy2]<br>INFO: <script>: [R-SUSPEND]: fU:[jeremy] => tU:[jeremy2]<br>INFO: <script>: [R-SUSPEND]: vtp:[41359:415220139]<br>INFO: <script>: [R-SENDPUSH]: Push sent [(55516cc061038f1283104abb39072a59107b7d8e13a1fd166b1704a315d07f78][com][hq01gt5utegi18ipkh1b]<br>[Node-Push]: About to push: 55516cc061038f1283104abb39072a59107b7d8e13a1fd166b1704a315d07f78<br>INFO: <script>: R-REGISTER]: jeremy2 registered<br>INFO: <script>: [R-REGISTER]: Contact: [<sip:ilyartjr@qjwhdafxlbtk.invalid;transport=ws>;expires=10;app-id=stage;pn-voip-tok=55516cc061038f1283104abb39072a59107b7d8e13a1fd166b1704a315d07f78]<br>INFO: <script>: [R-REGISTER]: App id: stage<br>INFO: <script>: [R-REGISTER]: Expires: 10<br>INFO: <script>: [R-JOIN]: jeremy2<br>INFO: <script>: [R-JOIN]: Resuming trasaction [41359:415220139] jeremy2 (41359:415220139)<br>WARNING: tm [t_suspend.c:197]: t_continue_helper(): transaction is not suspended [41359:415220139]<br>WARNING: tmx [tmx_mod.c:847]: w_t_continue(): resuming the processing of transaction [41359:415220139] failed<br><br><br>Relvant kamailio.cfg <br>[Note: I did notice we had to switch things up a bit if calls come from a PSTN number via SBC]<br><br><br>modparam("htable", "htable", "vtp=>size=10;autoexpire=300")</font><div><font face="monospace"><br></font></div><div><font face="monospace">...<br>if (!lookup("location")) {<br>        send_reply("100", "Suspending");<br>        route(SUSPEND); // <b>testing this path here </b><br>    } else {<br>        route(RELAY);<br>        ts_store("$tu");<br>        $sht(vtp=>stored::$tU) = 1;<br>       xlog("L_INFO", "[R-LOCATION]: Stored transaction      [$T(id_index):$T(id_label)] $fU => $tU\n");<br>    }      <br>...<br><br>route[SUSPEND] {<br>    if (!t_suspend()) {<br>        xlog("L_ERROR", "[R-SUSPEND]: Failed to suspend transaction [$T(id_index):$T(id_label)]\n");<br>        send_reply("501", "Unknown Destinaton");<br>        exit;<br>    }<br>    xlog("L_INFO", "[R-SUSPEND]: Suspended transaction [$T(id_index):$T(id_label)]\n");<br>    xlog("L_INFO", "[R-SUSPEND]: fU:[$fU] rU:[$rU] tU:[$tU]\n");<br>    if (isbflagset(FLB_PSTN)) {<br>       $sht(vtp=>join::$rU) = "" + $T(id_index) + ":" + $T(id_label);<br>       xlog("L_INFO", "[R-SUSPEND]: fU:[$fU] => rU:[$rU]\n");<br>       xlog("L_INFO", "[R-SUSPEND]: vtp:[$sht(vtp=>join::$rU)]\n");<br>    } else {<br>       $sht(vtp=>join::$tU) = "" + $T(id_index) + ":" + $T(id_label);<br>       xlog("L_INFO", "[R-SUSPEND]: fU:[$fU] => tU:[$tU]\n");<br>       xlog("L_INFO", "[R-SUSPEND]: vtp:[$sht(vtp=>join::$tU)]\n");<br>    }<br>}<br><br>route[REGISTER] {<br>   if (!is_method("REGISTER")) {<br>     return;<br>   }<br>   if (isflagset(FLT_NATS)) {<br>        setbflag(FLB_NATB);<br>   }<br>   if (!save("location")) {<br>      sl_reply_error();<br>   }<br>    route(JOIN);<br>}<br><br># Append branches or resume the transaction<br>route[JOIN] {<br>    xlog("L_INFO","[R-JOIN]: $tU\n");<br>    $var(hjoin) = 0;<br>    lock("$tU");<br>    $var(hjoin) = $sht(vtp=>join::$tU);<br>    $var(hstored) = $sht(vtp=>stored::$tU);<br>    $sht(vtp=>join::$tU) = $null;<br>    unlock("$tU");<br>    if ($var(hjoin)==0) {<br>       if ($var(hstored)) {<br>          xlog("L_INFO","[R-JOIN]: Appending transaction ($tu)\n");  <br>          ts_append("location", "$tu");<br>          exit;<br>       }<br>       xlog("L_INFO","[R-JOIN]: No INVITE to resume\n");  <br>       exit;<br>    }<br>    $var(id_index) = $(var(hjoin){s.select,0,:}{<a href="http://s.int">s.int</a>});<br>    $var(id_label) = $(var(hjoin){s.select,1,:}{<a href="http://s.int">s.int</a>});<br>    xlog("L_INFO", "[R-JOIN]: Resuming trasaction [$var(id_index):$var(id_label)] $tU ($var(hjoin))\n");<br>    t_continue("$var(id_index)", "$var(id_label)", "RESUME");<br>    exit;<br>}<br><br># Lookup and relay after resuming transaction<br>route[RESUME] {<br>    xlog("L_INFO", "[R-RESUME]: ru: [$ru] tu: [$tu]\n");<br>    lookup("location");<br>    route(SETUP_ROUTES);<br>    route(RELAY);<br>    ts_store("$tu");<br>    $sht(vtp=>stored::$tU) = 1;<br>    xlog("L_INFO", "[R-RESUME]: Stored transaction [$T(id_index):$T(id_label)] $fU => $tU\n");<br>    exit;<br>}</font><div><font face="monospace"><br></font></div><div><font face="monospace"><br></font></div><div><font face="monospace">What did I miss? </font></div><div><font face="monospace"><br></font></div><div><br></div><div><br></div><div><br></div></div></div>