As the Diversion hdr is in a negative reply, it will be visible only in onreply_route (as $di) or in failure route (as $(<reply>di)

To better understand this, please read about routing blocks:
    http://www.opensips.org/Documentation/Script-Routes-1-10
and about variables:
    http://www.opensips.org/Documentation/Script-CoreVar-1-10

Regards

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 04.04.2014 13:53, Mike Claudi Pedersen wrote:
I actually don't know. but where would i be able to see $di.. in which route from the default cfg


2014-04-04 12:43 GMT+02:00 Bogdan-Andrei Iancu <[email protected] <mailto:[email protected]>>:

    I see the Diversion hdr is present in a 3xx reply -> are you using
    the $di in failure route or so ?

    Regards,

    Bogdan-Andrei Iancu
    OpenSIPS Founder and Developer
    http://www.opensips-solutions.com

    On 04.04.2014 12:59, Mike Claudi Pedersen wrote:
    i cant seem to see why. even in debug mode...
    i have the siptrace attached


    2014-04-04 11:54 GMT+02:00 Bogdan-Andrei Iancu
    <[email protected] <mailto:[email protected]>>:

        Hello Mike,

        Please post the SIP request you receive (make an ngrep
        capture), so we can check it.

        BTW, try to run in full debug mode (debug=4) and check for
        the logs when the INVITE is handled - maybe you get some
        hints on why you get the vars NULL.

        Regards,
        Bogdan

        Bogdan-Andrei Iancu
        OpenSIPS Founder and Developer
        http://www.opensips-solutions.com

        On 04.04.2014 10:58, Mike Claudi Pedersen wrote:
        When calls are forwarded they have a diversion header,
        containing information about the forwarded route. why cant i
        get this information i keep getting 0 or NULL values my code
        is something like this to display the diversion header.

                $var(RDNIS)=$di;
                $var(PRIV)=$dip;

                if (method=="INVITE")
                {
        xlog("L_DBG","\n RDNIS = $var(RDNIS) \n");
        xlog("L_DBG","\n PRIVACY = $var(PRIV) n");

                        if (lookup("location"))
                        {
        t_relay();
                                exit;
                        };



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




-- Med venlig hilsen
    ipnordic A/S

    Mike Claudi Pedersen
    Tekniker

    Telefon: 79301033
    www.ipnordic.dk <http://www.ipnordic.dk/>




--
Med venlig hilsen
ipnordic A/S

Mike Claudi Pedersen
Tekniker

Telefon: 79301033
www.ipnordic.dk <http://www.ipnordic.dk/>

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

Reply via email to