handle vegastream broken sip info packets
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13506 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
c4b67d93fc
commit
5b27226a07
|
@ -4035,6 +4035,10 @@ void sofia_handle_sip_i_info(nua_t *nua, sofia_profile_t *profile, nua_handle_t
|
||||||
int tmp;
|
int tmp;
|
||||||
/* move signal_ptr where we need it (right past Signal=) */
|
/* move signal_ptr where we need it (right past Signal=) */
|
||||||
signal_ptr = signal_ptr + 7;
|
signal_ptr = signal_ptr + 7;
|
||||||
|
|
||||||
|
/* handle broken devices with spaces after the = (cough) VegaStream (cough) */
|
||||||
|
while (*signal_ptr && *signal_ptr == ' ') signal_ptr++;
|
||||||
|
|
||||||
if (*signal_ptr && (*signal_ptr == '*' || *signal_ptr == '#' || *signal_ptr == 'A' || *signal_ptr == 'B' || *signal_ptr == 'C' || *signal_ptr == 'D')) {
|
if (*signal_ptr && (*signal_ptr == '*' || *signal_ptr == '#' || *signal_ptr == 'A' || *signal_ptr == 'B' || *signal_ptr == 'C' || *signal_ptr == 'D')) {
|
||||||
dtmf.digit = *signal_ptr;
|
dtmf.digit = *signal_ptr;
|
||||||
} else {
|
} else {
|
||||||
|
@ -4049,6 +4053,9 @@ void sofia_handle_sip_i_info(nua_t *nua, sofia_profile_t *profile, nua_handle_t
|
||||||
if ((signal_ptr = switch_stristr("Duration=", sip->sip_payload->pl_data))) {
|
if ((signal_ptr = switch_stristr("Duration=", sip->sip_payload->pl_data))) {
|
||||||
int tmp;
|
int tmp;
|
||||||
signal_ptr += 9;
|
signal_ptr += 9;
|
||||||
|
|
||||||
|
/* handle broken devices with spaces after the = (cough) VegaStream (cough) */
|
||||||
|
while (*signal_ptr && *signal_ptr == ' ') signal_ptr++;
|
||||||
|
|
||||||
if ((tmp = atoi(signal_ptr)) <= 0) {
|
if ((tmp = atoi(signal_ptr)) <= 0) {
|
||||||
tmp = switch_core_default_dtmf_duration(0);
|
tmp = switch_core_default_dtmf_duration(0);
|
||||||
|
|
Loading…
Reference in New Issue