Hello,

thank you for your response.

Maybe I have to read the RFC6665 :)

Regards

El 22/02/2015 a las 06:05, Podrigal, Aron escribió:
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 <[email protected] <mailto:[email protected]>> 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
    [email protected] <mailto:[email protected]>
    http://lists.opensips.org/cgi-bin/mailman/listinfo/users




_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to