Menu

#32 Change header FROM in CANCEL automatically

ver devel
closed-fixed
modules (93)
5
2007-10-05
2006-11-14
No

Despite the automatic mode for "From" header restore is
defined (modparam("uac","from_restore_mode","auto")),
it is still necessary to change header FROM in the
script for the CANCEL requests.

Discussion

  • Bogdan-Andrei Iancu

    • assigned_to: nobody --> bogdan_iancu
     
  • Carsten Bock

    Carsten Bock - 2007-06-21

    Logged In: YES
    user_id=1488991
    Originator: NO

    Just a thought i has this morning:
    Couldn't we make TM create the CANCEL-Messages, like it does for forked requests?

     
  • Ardjan Zwartjes

    Ardjan Zwartjes - 2007-07-12

    Logged In: YES
    user_id=1744253
    Originator: NO

    I'm using the from.c and from.h files of the uac module in a custom module and ran into the same problem. I've sort of fixed this by registering a new TM callback for type TMCB_REQUEST_IN when I call replace from. This callback is registered for the transaction, not the message and therefore is called when the CANCEL is received. I pass the new URI as a parameter to the callback and do another replace_from if this callback is called for a CANCEL. Although I wouldn't consider this approach very nice it does work.

     
  • Bogdan-Andrei Iancu

    Logged In: YES
    user_id=1275325
    Originator: NO

    Hi Ardjan,

    I specially left aside this item because it will be automatically solved by another fixup. According the RFC, the CANCEL (in stateful mode) must hop-by-hop generated and not relayed. As the function generating a local CANCEL already works, the problem will be fixed ;)

    regards,
    bogdan

     
  • Ardjan Zwartjes

    Ardjan Zwartjes - 2007-07-13

    Logged In: YES
    user_id=1744253
    Originator: NO

    Hi Bogdan,

    That's good news, any idea on when this fixup will be released? Or is it already fixed in the current SVN version?

    Kind regards,
    Ardjan Zwartjes.

     
  • Bogdan-Andrei Iancu

    Logged In: YES
    user_id=1275325
    Originator: NO

    Ardjan,

    This fix is not yet done - still on my TODO list, but it will done asap and for sure for the next release.

    regards,
    bogdan

     
  • Bogdan-Andrei Iancu

    Logged In: YES
    user_id=1275325
    Originator: NO

    OK - DONE.

    Regards,
    Bogdan

     
  • Bogdan-Andrei Iancu

    • milestone: --> ver devel
    • status: open --> closed-fixed
     

Log in to post a comment.