SIP: 180 Ringing vs 183 Session Progress

If you know that the phone is ringing (an ALERT Q.931 message, for instance) you send a 180 Ringing.

If you receive a notification indicating that the call is progressing, but you do not know for sure whether the user is being alerted or not, you send a 183 Session Progress message.

Both can indicate early media with SDP. If there is no SDP, the end device (softphone/gateway/etc.) has to generate the ringback tone or progress tone.

Usually you will see 180 without SDP while 183 with SDP. It is a good practice to leave the tone generation for the endpoints.

If you get 183 you should open media connection because there is audio ready for them to hear.

If you set ringback var and ignore_early_media, both 180 and 183 will trigger your fake ringing. If you set instant_ringback=true then it will not wait for 18x it will start fake ringback instant (asterisk mode).


RFC3261:

21.1.2 180 Ringing

The UA receiving the INVITE is trying to alert the user. This

response MAY be used to initiate local ringback.

 

21.1.5 183 Session Progress

The 183 (Session Progress) response is used to convey information

about the progress of the call that is not otherwise classified. The

Reason-Phrase, header fields, or message body MAY be used to convey

more details about the call progress.



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值