Merge "res_rtp_asterisk.c: Fix rtp source address learning for broken clients"
[asterisk/asterisk.git] / third-party / pjproject / patches / 0040-183_without_to_tag.patch
1 diff --git a/pjsip/src/pjsip-ua/sip_inv.c b/pjsip/src/pjsip-ua/sip_inv.c
2 index c9686a0..fc52a63 100644
3 --- a/pjsip/src/pjsip-ua/sip_inv.c
4 +++ b/pjsip/src/pjsip-ua/sip_inv.c
5 @@ -4156,9 +4156,10 @@ static void inv_on_state_calling( pjsip_inv_session *inv, pjsip_event *e)
6                     status = pjsip_inv_send_msg(inv, cancel);
7             }
8  
9 -           if (dlg->remote.info->tag.slen) {
10 +           if (tsx->status_code != 100) {
11  
12 -               inv_set_state(inv, PJSIP_INV_STATE_EARLY, e);
13 +               if (dlg->remote.info->tag.slen)
14 +                   inv_set_state(inv, PJSIP_INV_STATE_EARLY, e);
15  
16                 inv_check_sdp_in_incoming_msg(inv, tsx, 
17                                               e->body.tsx_state.src.rdata);