[SR-Users] Missed calls notification supporting

Carlos Ruiz Díaz carlos.ruizdiaz at gmail.com
Tue Jun 11 18:02:12 CEST 2013


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.

Needless to say, the UA must support displaying IMs for this to make sense.

route[SEND_SIP_MESSAGE]
{
        xlog("L_INFO", "MESSAGE to [$avp(s:sms_to_subscriber)]:
$avp(s:sms_content)");

        $uac_req(method)        = "MESSAGE";

        $uac_req(ruri)          = $avp(s:subs_uri);
        $uac_req(furi)          = $avp(s:subs_from);
        $uac_req(turi)          = $avp(s:subs_to);

        $uac_req(hdrs)          = "Content-Type: text/plain\r\n";
        $uac_req(body)          = $avp(s:sms_content);

        return uac_req_send();
}



On Tue, Jun 11, 2013 at 11:39 AM, Daniel Tryba <daniel at pocos.nl> wrote:

> On Tuesday 11 June 2013 11:51:23 sipatse at in.gr wrote:
> >  I have added the below configuration lines and I got a parsing error.
> >
> >  if(!lookup("location")) && if(is_method("INVITE"))
> >  {$uac_req(method)="INVITE";
> >   $uac_req(ruri) = "sip:$rU at sip.test.com:5062";
> >   $uac_req(furi) = "sip:$fU at sip.test.com";
> >   $uac_req(turi) = "sip:$tU at sip.test.com";
> >   $uac_req(hdrs) = "Content-Type: text/plain\r\n";
> >   uac_send_req();}
> >
> >
> >  "cfg. parser: failed to find command uac_send_req"
>
> My guess is you are looking at old documentation
> http://kamailio.org/docs/modules/stable/modules/uac.html#idp1686632
> it's uac_req_send() nowadays.
>
> But I don't get your reminder logic. If $rU isn't logged in and it is
> INVITE-
> ed, your are going to send INVITES to it?
>
> --
>
> POCOS B.V. - Croy 9c - 5653 LC Eindhoven
> Telefoon: 040 293 8661 - Fax: 040 293 8658
> http://www.pocos.nl/   - http://www.sipo.nl/
> K.v.K. Eindhoven 17097024
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>



-- 
Carlos
http://caruizdiaz.com
+595981146623
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20130611/3735b83f/attachment.html>


More information about the sr-users mailing list