Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generating multiple values in a contact header #3

Open
matthewmgamble opened this issue Aug 28, 2015 · 1 comment
Open

Generating multiple values in a contact header #3

matthewmgamble opened this issue Aug 28, 2015 · 1 comment

Comments

@matthewmgamble
Copy link

Looking over the existing code for contact headers, it does not appear to be possible to create a sip packet with multiple URI's in the contact header, for example, a contact header like the following:

Contact:sip:[email protected]:5060;user=phone;q=0.5,sip:[email protected]:5060;user=phone;q=0.25

Any chance of adding support for this or any pointers on where to start adding support for it to the code?

@aboutsip
Copy link
Owner

Hi,

Ah yes, even if you add the same header multiple times there is no option to have the SIP Message combine them into one line. I am actually in the process of a major re-write to make everything immutable and as part of that I could add an option to the SIP Message that when it serializes itself that you can specify the behavior around how headers that appear many times is handled. Does that make sense?

/Jonas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants