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

Allow sending sip INFO messages after 183 Session Progress is received #139

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

amsalby
Copy link

@amsalby amsalby commented Jun 23, 2022

When we receive a 183 Session Progress (Remote require us to
send early media) the To header can contain a not empty tag:

SIP/2.0 183 Session progress
Via: SIP/2.0/UDP 192.168.77.15;rport;branch=z9hG4bKNyU9Kg28QD3eK
From: sip:[email protected]:5060;tag=jvl5hu58Y
To: sip:[email protected]:5060;tag=hjmfxOj
Call-ID: 7979747314492623079
...

So for the remote user agent the dialog id will become
the sum of Call-ID + From-Tag + To-Tag.

At this stage, if we want to send an INFO message to the other
end we need to provide all three IDs like in follows:

INFO sip:[email protected]:5060;transport=udp SIP/2.0
Via: SIP/2.0/UDP 192.168.77.14;rport;branch=z9hG4bKp7m2NBKcNpS1e
From: sip:[email protected]:5060;tag=jvl5hu58Y
To: sip:[email protected]:5060;tag=hjmfxOj
Call-ID: 7979747314492623079
...

Before this patch the INFO message was sent with the To header without
any tag. The same as in original INVITE message sent to the other end

When we receive a 183 Session Progress (Remote require us to
send early media) the To header can contain a not NULL tag:

SIP/2.0 183 Session progress
Via: SIP/2.0/UDP 192.168.77.15;rport;branch=z9hG4bKNyU9Kg28QD3eK
From: <sip:[email protected]:5060>;tag=jvl5hu58Y
To: <sip:[email protected]:5060>;tag=hjmfxOj
Call-ID: 7979747314492623079
...

So for the remote user agent the dialog id will become
the sum of Call-ID + From-Tag + To-Tag.

At this stage, if we want to send an INFO message to the other
end we need to provide all three IDs like in follows:

INFO sip:[email protected]:5060;transport=udp SIP/2.0
Via: SIP/2.0/UDP 192.168.77.14;rport;branch=z9hG4bKp7m2NBKcNpS1e
From: <sip:[email protected]:5060>;tag=jvl5hu58Y
To: <sip:[email protected]:5060>;tag=hjmfxOj
Call-ID: 7979747314492623079
...

Before this patch the iNFO message was sent with the To header without
any tag. The same as in original INVITE message sent to the other end

Signed-off-by: Alberto Panizzo <[email protected]>
@freeswitch-ci-system
Copy link

@freeswitch-ci-system
Copy link

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

Successfully merging this pull request may close these issues.

1 participant