FreeCalypso > hg > themwi-system-sw
diff sip-in/sip_uas.c @ 108:0d6435808bcd
sip-in: implement 100rel for 180 Ringing response
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Wed, 28 Sep 2022 14:29:10 -0800 |
parents | a9944b66dcc5 |
children |
line wrap: on
line diff
--- a/sip-in/sip_uas.c Tue Sep 27 23:45:40 2022 -0800 +++ b/sip-in/sip_uas.c Wed Sep 28 14:29:10 2022 -0800 @@ -29,7 +29,7 @@ too_long: syslog(LOG_ERR, "sending 501 error: response length exceeded"); return; } - rc = out_msg_add_header(&resp, "Allow", "INVITE,ACK,CANCEL,BYE"); + rc = out_msg_add_header(&resp, "Allow", "INVITE,ACK,PRACK,CANCEL,BYE"); if (rc < 0) goto too_long; out_msg_finish(&resp); @@ -55,6 +55,8 @@ handle_sip_invite(msg, &ess, sin); else if (!strcmp(msg->req_method, "ACK")) handle_sip_ack(msg, &ess, sin); + else if (!strcmp(msg->req_method, "PRACK")) + handle_sip_prack(msg, &ess, sin); else if (!strcmp(msg->req_method, "CANCEL")) handle_sip_cancel(msg, &ess, sin); else if (!strcmp(msg->req_method, "BYE"))