projects
/
lcr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
GSM now receives tones during bridge
[lcr.git]
/
gsm_bs.cpp
diff --git
a/gsm_bs.cpp
b/gsm_bs.cpp
index
d062e3d
..
29888be
100644
(file)
--- a/
gsm_bs.cpp
+++ b/
gsm_bs.cpp
@@
-414,13
+414,13
@@
int message_bsc(struct lcr_gsm *lcr_gsm, int msg_type, void *arg)
} else
pgsm_bs->frame_receive(arg);
/* if we do not bridge we need to inject audio, if available */
} else
pgsm_bs->frame_receive(arg);
/* if we do not bridge we need to inject audio, if available */
- if (!pgsm_bs->p_bridge) {
+ if (!pgsm_bs->p_bridge
|| pgsm_bs->p_tone_name[0]
) {
unsigned char data[160];
int i;
i = pgsm_bs->read_audio(data, 160);
if (i)
unsigned char data[160];
int i;
i = pgsm_bs->read_audio(data, 160);
if (i)
- pgsm_bs->
bridge_rx
(data, i);
+ pgsm_bs->
audio_send
(data, i);
}
}
return 0;
}
}
return 0;