FreeCalypso > hg > themwi-system-sw
diff sip-in/sip_uas.c @ 48:8117d8ee44a5
sip-in: beginning of INVITE handling
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Tue, 06 Sep 2022 22:07:51 -0800 |
parents | 62f39c7cee15 |
children | 02761f1ae5e5 |
line wrap: on
line diff
--- a/sip-in/sip_uas.c Tue Sep 06 20:33:56 2022 -0800 +++ b/sip-in/sip_uas.c Tue Sep 06 22:07:51 2022 -0800 @@ -34,10 +34,10 @@ struct sip_msg_out resp; int rc; - start_response_out_msg(&resp, "405 Method not supported"); + start_response_out_msg(&resp, "501 Method not supported"); rc = add_resp_basic_headers(&resp, ess, req->req_method); if (rc < 0) { -too_long: syslog(LOG_ERR, "sending 405 error: response length exceeded"); +too_long: syslog(LOG_ERR, "sending 501 error: response length exceeded"); return; } rc = out_msg_add_header(&resp, "Allow", "INVITE,ACK,CANCEL,BYE"); @@ -63,7 +63,7 @@ } /* dispatch by method */ if (!strcmp(msg->req_method, "INVITE")) - method_tbi(msg, &ess, sin); + handle_sip_invite(msg, &ess, sin); else if (!strcmp(msg->req_method, "ACK")) method_tbi(msg, &ess, sin); else if (!strcmp(msg->req_method, "CANCEL"))