|
37 | 37 |
|
38 | 38 | #define TDD_LEAD 10 |
39 | 39 |
|
| 40 | +/* |
| 41 | + * Compatibility with libspandsp > 0.0.5 |
| 42 | + * The old constant names were renamed |
| 43 | + */ |
| 44 | +#ifndef V18_MODE_5BIT_4545 |
| 45 | +#define V18_MODE_5BIT_4545 V18_MODE_WEITBRECHT_5BIT_4545 |
| 46 | +#endif |
| 47 | +#ifndef V18_MODE_5BIT_50 |
| 48 | +#define V18_MODE_5BIT_50 V18_MODE_WEITBRECHT_5BIT_50 |
| 49 | +#endif |
| 50 | + |
| 51 | + |
40 | 52 | typedef struct { |
41 | 53 | switch_core_session_t *session; |
42 | 54 | v18_state_t *tdd_state; |
@@ -213,7 +225,7 @@ switch_status_t spandsp_tdd_send_session(switch_core_session_t *session, const c |
213 | 225 | return SWITCH_STATUS_FALSE; |
214 | 226 | } |
215 | 227 |
|
216 | | - tdd_state = v18_init(NULL, TRUE, get_v18_mode(session), V18_AUTOMODING_GLOBAL, put_text_msg, NULL); |
| 228 | + tdd_state = v18_init(NULL, TRUE, get_v18_mode(session), V18_AUTOMODING_GLOBAL, put_text_msg, NULL, NULL, NULL); |
217 | 229 |
|
218 | 230 |
|
219 | 231 | v18_put(tdd_state, text, -1); |
@@ -260,7 +272,7 @@ switch_status_t spandsp_tdd_encode_session(switch_core_session_t *session, const |
260 | 272 | } |
261 | 273 |
|
262 | 274 | pvt->session = session; |
263 | | - pvt->tdd_state = v18_init(NULL, TRUE, get_v18_mode(session), V18_AUTOMODING_GLOBAL, put_text_msg, NULL); |
| 275 | + pvt->tdd_state = v18_init(NULL, TRUE, get_v18_mode(session), V18_AUTOMODING_GLOBAL, put_text_msg, NULL, NULL, NULL); |
264 | 276 | pvt->head_lead = TDD_LEAD; |
265 | 277 |
|
266 | 278 | v18_put(pvt->tdd_state, text, -1); |
@@ -338,7 +350,7 @@ switch_status_t spandsp_tdd_decode_session(switch_core_session_t *session) |
338 | 350 | } |
339 | 351 |
|
340 | 352 | pvt->session = session; |
341 | | - pvt->tdd_state = v18_init(NULL, FALSE, get_v18_mode(session), V18_AUTOMODING_GLOBAL, put_text_msg, pvt); |
| 353 | + pvt->tdd_state = v18_init(NULL, FALSE, get_v18_mode(session), V18_AUTOMODING_GLOBAL, put_text_msg, pvt, NULL, NULL); |
342 | 354 |
|
343 | 355 | if ((status = switch_core_media_bug_add(session, "spandsp_tdd_decode", NULL, |
344 | 356 | tdd_decode_callback, pvt, 0, SMBF_READ_REPLACE | SMBF_NO_PAUSE, &bug)) != SWITCH_STATUS_SUCCESS) { |
|
0 commit comments