X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=lcr.git;a=blobdiff_plain;f=sip.cpp;fp=sip.cpp;h=a385988caf5f7270372d7af076a193e602b23616;hp=4d5be399aa7689620ceacc79e2d177120b16c9d0;hb=863e741714652a1b6610e8d84b42f49ca4b680ca;hpb=97fb04eee95f8109a8e80aa38a5c43226863279a diff --git a/sip.cpp b/sip.cpp index 4d5be39..a385988 100644 --- 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);