projects
/
lcr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
97fb04e
)
SIP: Adding echo test to do delay test on incomming SIP calls
author
Andreas Eversberg
<jolly@eversberg.eu>
Fri, 16 Mar 2012 03:58:23 +0000
(
04:58
+0100)
committer
Andreas Eversberg
<jolly@eversberg.eu>
Fri, 16 Mar 2012 03:58:23 +0000
(
04:58
+0100)
sip.cpp
patch
|
blob
|
history
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;
+ 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);