Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#221 B2B_LOGIC - choose method how to generate To: header

trunk
closed
modules (179)
5
2012-09-18
2012-04-23
Nick Altmann
No

It depends on #3516387 patch, that provides b2b_logic per session flags.

It adds new flag "t". When it enabled, To: header generates from To: header of source INVITE, when it disabled To header generates from request uri (old behavior).

I need it for balance b2b sessions to multidomain proxy, when To: header should not be changed.

Discussion

    • assigned_to: nobody --> bogdan_iancu
     
  • Nick Altmann
    Nick Altmann
    2012-09-04

    needs rewrite (I'll do it later)

     
  • Nick Altmann
    Nick Altmann
    2012-09-18

    As Anca Vamanu has written to the opensips mailing list, this behavior can be achieved with this script:

    $var(orig-to) = $hdr(To);
    b2b_init_request("top hiding");

    In local route:
    remove_hf("To");
    append_hf("To: $var(orig-to)\r\n", "From");

     
  • Nick Altmann
    Nick Altmann
    2012-09-18

    • status: open --> closed