projects
/
lcr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
SIP: Adding echo test to do delay test on incomming SIP calls
[lcr.git]
/
sip.cpp
diff --git
a/sip.cpp
b/sip.cpp
index
4d5be39
..
a385988
100644
(file)
--- a/
sip.cpp
+++ b/
sip.cpp
@@
-256,6
+256,11
@@
we only support alaw and ulaw!
n = payload_len;
from = payload;
to = payload;
n = payload_len;
from = payload;
to = payload;
+ if (psip->p_echotest) {
+ /* echo rtp data we just received */
+ psip->rtp_send_frame(from, n, (options.law=='a')?PAYLOAD_TYPE_ALAW:PAYLOAD_TYPE_ULAW);
+ return 0;
+ }
while(n--)
*to++ = flip[*from++];
psip->bridge_tx(payload, payload_len);
while(n--)
*to++ = flip[*from++];
psip->bridge_tx(payload, payload_len);