<div dir="ltr"><div style>Whenever I get a missed call I store it in a database table of my own logic (maybe you could use the built-in table for that), later, when the user appears online again after a registration, I read the records belonging to him and I send him a SIP MESSAGE containing his missed calls.</div>
<div style><br></div><div style>Needless to say, the UA must support displaying IMs for this to make sense.</div><div><br></div><div>route[SEND_SIP_MESSAGE]</div><div>{</div><div>        xlog("L_INFO", "MESSAGE to [$avp(s:sms_to_subscriber)]: $avp(s:sms_content)");</div>
<div><br></div><div>        $uac_req(method)        = "MESSAGE";</div><div><br></div><div>        $uac_req(ruri)          = $avp(s:subs_uri);</div><div>        $uac_req(furi)          = $avp(s:subs_from);</div><div>
        $uac_req(turi)          = $avp(s:subs_to);</div><div><br></div><div>        $uac_req(hdrs)          = "Content-Type: text/plain\r\n";</div><div>        $uac_req(body)          = $avp(s:sms_content);</div>
<div><br></div><div>        return uac_req_send();</div><div>}</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jun 11, 2013 at 11:39 AM, Daniel Tryba <span dir="ltr"><<a href="mailto:daniel@pocos.nl" target="_blank">daniel@pocos.nl</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Tuesday 11 June 2013 11:51:23 <a href="mailto:sipatse@in.gr">sipatse@in.gr</a> wrote:<br>
>  I have added the below configuration lines and I got a parsing error.<br>
><br>
>  if(!lookup("location")) && if(is_method("INVITE"))<br>
>  {$uac_req(method)="INVITE";<br>
>   $uac_req(ruri) = "sip:$<a href="http://rU@sip.test.com:5062" target="_blank">rU@sip.test.com:5062</a>";<br>
>   $uac_req(furi) = "sip:$<a href="mailto:fU@sip.test.com">fU@sip.test.com</a>";<br>
>   $uac_req(turi) = "sip:$<a href="mailto:tU@sip.test.com">tU@sip.test.com</a>";<br>
>   $uac_req(hdrs) = "Content-Type: text/plain\r\n";<br>
>   uac_send_req();}<br>
><br>
><br>
>  "cfg. parser: failed to find command uac_send_req"<br>
<br>
</div>My guess is you are looking at old documentation<br>
<a href="http://kamailio.org/docs/modules/stable/modules/uac.html#idp1686632" target="_blank">http://kamailio.org/docs/modules/stable/modules/uac.html#idp1686632</a><br>
it's uac_req_send() nowadays.<br>
<br>
But I don't get your reminder logic. If $rU isn't logged in and it is INVITE-<br>
ed, your are going to send INVITES to it?<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
<br>
POCOS B.V. - Croy 9c - 5653 LC Eindhoven<br>
Telefoon: <a href="tel:040%20293%208661" value="+595402938661">040 293 8661</a> - Fax: <a href="tel:040%20293%208658" value="+595402938658">040 293 8658</a><br>
<a href="http://www.pocos.nl/" target="_blank">http://www.pocos.nl/</a>   - <a href="http://www.sipo.nl/" target="_blank">http://www.sipo.nl/</a><br>
K.v.K. Eindhoven 17097024<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Carlos<div><a href="http://caruizdiaz.com" target="_blank">http://caruizdiaz.com</a></div><div>+595981146623</div>
</div>