<div dir="ltr">Hi,<div><br></div><div>I ended up using ts_store and ts_append as this seems to be more convenient.</div><div><br></div><div>I guess t_suspend was not built to support what I tried. May be the documentation</div><div>should be changed to indicate that it should be used only in request route block</div><div>(and may be reply route block), but not in branch.</div><div><br></div><div>I was able to loop over the destination URI in the request route block after my lookup</div><div>by using $ru for the main branch, and $(branch(uri)[$var(i)] for all the others.</div><div><br></div><div>It worked perfectly!</div><div><br></div><div>Tks,<br></div><div>Aymeric</div><div><a href="http://www.antisip.com">www.antisip.com</a></div></div><div class="gmail_extra"><br><div class="gmail_quote">2018-02-08 17:04 GMT+01:00 Aymeric Moizard <span dir="ltr"><<a href="mailto:amoizard@gmail.com" target="_blank">amoizard@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2018-02-08 16:25 GMT+01:00 Vasiliy Ganchev <span dir="ltr"><<a href="mailto:vancecezar@gmail.com" target="_blank">vancecezar@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi!<br>
<br></blockquote><div>Tks for answering!</div><span class=""><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
I am not sure that t_suspend is expected to work from branch_route.<br>
<br>
Why not suspend it from the main route?<br>
<br>
Describe in more details what are you going to achieve with the suspend.<br></blockquote><div><br></div></span><div>Objective:</div><div>I'm working on implementing a configuration to support push notification for mobile devices.</div><div>Those devices are sending REGISTER with push information inside the URI-PARAMS of</div><div>the Contact header.</div><div><br></div><div>My way to acheive it:</div><div>I have a "location" database containing many "Contact" headers for a UA.</div><div><br></div><div>Some of 

<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">those destinations  don't have the "push" informations and I want to forward</span></div><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">the INVITE to them.</span></div><div>

<div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">Some<span> </span><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">of those destinations </span>has "push" information in the URI: such as pn-provider, pn-param, pn-prid.</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">I consider those UA as not available and don't want to forward the INVITE to them. In the</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">branch route, I have this code:</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><div>branch_route[MANAGE_BRANCH]</div><div>{</div><div>  if (!strempty($(ru{uri.param,pn-<wbr>provider})) && !strempty($(ru{uri.param,pn-<wbr>param})) && !strempty($(ru{uri.param,pn-<wbr>prid}))) {</div><div>    if ($(ru{uri.param,pn-provider}) == "fcm" && $(ru{uri.param,pn-param}) == "xxxxxxxxx") {</div><div>      route(SENDPUSH);<br></div><div>    }<br></div><div>  }</div><div>  </div><div>  route(INVITETOFORWARD);</div><div>}</div><div><br></div></div>It's very easy to check for each branch the URI parameters of $ru. So I can send a PUSH NOTIFICATION to every</div><div>one of them.<br class="m_-3786233872526261760gmail-Apple-interchange-newline">

<br></div><div>Tks!</div><span class="HOEnZb"><font color="#888888"><div>Aymeric</div></font></span><span class=""><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
cheers<br>
<br>
<br>
<br>
--<br>
Sent from: <a href="http://sip-router.1086192.n5.nabble.com/Users-f3.html" rel="noreferrer" target="_blank">http://sip-router.1086192.n5.n<wbr>abble.com/Users-f3.html</a><br>
<br>
______________________________<wbr>_________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi<wbr>-bin/mailman/listinfo/sr-users</a><br>
</blockquote></span></div><br><br clear="all"><span class=""><div><br></div>-- <br><div class="m_-3786233872526261760gmail_signature"><img src="http://sip.antisip.com/am48.png">Antisip - <a href="http://www.antisip.com" target="_blank">http://www.antisip.com</a><br></div>
</span></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><img src="http://sip.antisip.com/am48.png">Antisip - <a href="http://www.antisip.com" target="_blank">http://www.antisip.com</a><br></div>
</div>