[OpenSIPS-Users] Presence route[handle_presence]

Podrigal, Aron aronp at guaranteedplus.com
Sun Feb 22 12:05:50 CET 2015


The reason for the transaction is because of re-transmission. Otherwise, In
the case where the original reply from opensips  has been lost on the
network. the client will re-transmit the SUBSCRIBE and will be seen as
duplicate CSEQ by
presence module with 412 error code.

On Sat, Feb 21, 2015 at 8:33 PM, campusvtv <campusvtv at gmail.com> wrote:

> Hello,
>
> a basic question.
>
> In this block:
>
> route[handle_presence] {
>         if (!t_newtran()) {
>                 sl_reply_error();
>                 exit;
>         }
>
>         if(is_method("PUBLISH")) {
>                 handle_publish();
>         }
>         else
>         if( is_method("SUBSCRIBE")) {
>                 handle_subscribe();
>         }
>         exit;
> }
>
> whic is the meaning of:
>
> if (!t_newtran()) {
>                 sl_reply_error();
>                 exit;
>         }
>
> in other words why I have to use t_newtran function.
>
> Thank you.
>
> Regards
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20150222/fc4f896c/attachment.htm>


More information about the Users mailing list