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

Close

#497 B2B_LOGIC - insert_hf() ignored by b2b

1.8.x
closed-invalid
nobody
modules (454)
5
2012-04-02
2012-03-30
Nick Altmann
No

I set modparam("b2b_logic", "custom_headers", "test") in options.
insert_hf("test: test\r\n", "To") doesn't work before b2b_init_request command, also it doesn't work in b2b_request route.
After b2b processing tag was removed.

I think, it should be there in both cases.

Discussion

  • Anca Vamanu
    Anca Vamanu
    2012-03-31

    Hi,

    The usage that you describe is not supported.
    But you can achieve what you want by inserting the new header in local_route.

    Regards,
    Anca

     
  • Nick Altmann
    Nick Altmann
    2012-03-31

    It's not really good when I should add tag with real ip-address to save it in local cache when packet received and restore it in local route to add to sip packet after b2b processing. As workaround it may be helpful to add option to b2b_logic module to add tag with source ip address.

     
  • As Anca said, this is a know issues that is not suppose to work in b2b.

    I suggest opening a feature request, so that, from script, you will be able to pass to b2b module a string of headers to be added to the newly generated outbound call.

    Regards,
    Bogdan

     
    • status: open --> closed-invalid