Skip to content

Question/proposal: REFER method and/or making arbitrary in-dialog requests #69

@adamchol

Description

@adamchol

Hi, please let me know what would be a good PR idea from here.

I'm trying to make a custom in-dialog transaction, which in my case is a REFER request. I'm not sure if it's even possible to make such transaction right now. I have to manually construct the request using exposed info about the dialog (just like in bye function) and then pass it to Transaction::new_client, which is fine I guess but not everything is available. To be precise, the CSeq number is not available to me and it's needed for any in-dialog request.

I think it would be a good idea to make a function like Dialog::in_dialog_request that would either take some custom properties of the request like a method and then construct it with dialog's call id, to tags, cseq, etc. or even start a new in-dialog client transaction.

This is actually all available in DialogInner but that's not exactly exposed, right?

For my specific case, we could also make a refer function on dialog just like we have bye or info. That would also require to implement subscriptions/event notifications if we want full REFER support. The implicit subscription can be disabled with a header, which I would do in my case, but what I'm saying is that if we want to have a whole separate refer function, perhaps we would also want full support.

Let me know what do you think I should do here!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions