FreeCalypso > hg > themwi-system-sw
comparison sip-manual-out/uac.c @ 214:10a4b0b0a239
sip-manual-out: parse SDP for all responses, not just 200
| author | Mychaela Falconia <falcon@freecalypso.org> |
|---|---|
| date | Sat, 08 Jul 2023 13:32:32 -0800 |
| parents | 6ac96217c442 |
| children |
comparison
equal
deleted
inserted
replaced
| 213:55ad0f4bb33c | 214:10a4b0b0a239 |
|---|---|
| 101 if (strlen(tag) <= MAX_TO_TAG) | 101 if (strlen(tag) <= MAX_TO_TAG) |
| 102 strcpy(to_tag, tag); | 102 strcpy(to_tag, tag); |
| 103 else | 103 else |
| 104 printf("To tag exceeds length limit!\n"); | 104 printf("To tag exceeds length limit!\n"); |
| 105 } | 105 } |
| 106 extract_resp_sdp(msg); | |
| 106 if (msg->status_code >= 200) { | 107 if (msg->status_code >= 200) { |
| 107 printf("Sending ACK\n"); | 108 printf("Sending ACK\n"); |
| 108 send_ack(sin); | 109 send_ack(sin); |
| 109 if (msg->status_code <= 299) | 110 if (msg->status_code <= 299) |
| 110 extract_resp_sdp(msg); | 111 invite_200_rtpout(); |
| 111 } | 112 } |
| 112 } | 113 } |
| 113 | 114 |
| 114 void | 115 void |
| 115 process_sip_response(msg, sin) | 116 process_sip_response(msg, sin) |
