comparison sip-in/invite.c @ 113:bfc97065bf51

sip-in: syslog beginning and clearing of calls
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 28 Sep 2022 19:08:13 -0800
parents c1c94b7fc2e2
children a30c25fb4c2f
comparison
equal deleted inserted replaced
112:6aa63cf4620a 113:bfc97065bf51
296 call->use_100rel = use_100rel; 296 call->use_100rel = use_100rel;
297 call->pstn_rtp_remote.sin_family = AF_INET; 297 call->pstn_rtp_remote.sin_family = AF_INET;
298 call->pstn_rtp_remote.sin_addr = sdp_parse.ip_addr; 298 call->pstn_rtp_remote.sin_addr = sdp_parse.ip_addr;
299 call->pstn_rtp_remote.sin_port = htons(sdp_parse.audio_port); 299 call->pstn_rtp_remote.sin_port = htons(sdp_parse.audio_port);
300 call->use_pcma = use_pcma; 300 call->use_pcma = use_pcma;
301 call->in_tag_num = cycle_tag_num;
301 call->sdp_addend = cycle_sdp_addend; 302 call->sdp_addend = cycle_sdp_addend;
302 /* generate 100 response */ 303 /* generate 100 response */
303 start_response_out_msg(&resp, "100 Proceeding"); 304 start_response_out_msg(&resp, "100 Proceeding");
304 rc = fill_invite_resp_from_call(&resp, call); 305 rc = fill_invite_resp_from_call(&resp, call);
305 if (rc < 0) { 306 if (rc < 0) {
310 out_msg_finish(&resp); 311 out_msg_finish(&resp);
311 sip_tx_packet(&resp, sin); 312 sip_tx_packet(&resp, sin);
312 /* add to call list */ 313 /* add to call list */
313 call->next = call_list; 314 call->next = call_list;
314 call_list = call; 315 call_list = call;
316 syslog(LOG_INFO, "call in%06u started", call->in_tag_num);
315 /* send CRCX to TMGW */ 317 /* send CRCX to TMGW */
316 tmgw_send_crcx(call); 318 tmgw_send_crcx(call);
317 call->overall_state = OVERALL_STATE_CRCX; 319 call->overall_state = OVERALL_STATE_CRCX;
318 call->sip_state = SIP_STATE_INVITE_PROC; 320 call->sip_state = SIP_STATE_INVITE_PROC;
319 } 321 }