Re: [SR-Users] Send 200 OK response with body to INVITE requests

2019-04-16 Thread Alex Balashov
Again, the SIP standards forbid this, because proxies just don’t do that! — Sent from mobile, with due apologies for brevity and errors. > On Apr 16, 2019, at 3:57 AM, David Dean wrote: > > As you say, the rtpengine SDP mangling is turn-key with rtpengine_answer(). > It's working perfectly. >

Re: [SR-Users] Send 200 OK response with body to INVITE requests

2019-04-16 Thread David Dean
As you say, the rtpengine SDP mangling is turn-key with rtpengine_answer(). It's working perfectly. But I'm surprised to find I cannot generate a 200 OK and attach the SDP inside Kamailio. sl_send_reply() would be perfect but it doesn't allow a body to be attached (unless I missed something in

Re: [SR-Users] Send 200 OK response with body to INVITE requests

2019-04-15 Thread Alex Balashov
Kamailio will substitute RTPEngine-mangled SDP upon your invocation of rtpengine_answer(). You’re working about a thousand times too hard on this issue; it’s already turn-key. :-) — Sent from mobile, with due apologies for brevity and errors. > On Apr 15, 2019, at 6:03 PM, David Dean wrote: >

Re: [SR-Users] Send 200 OK response with body to INVITE requests

2019-04-15 Thread Fred Posner
On 4/15/19 6:03 PM, David Dean wrote: > The goal is for the test client to think a remote client accepted the > call, when actually it's just Kamailio faking the 200 response. Have you looked at the moh module? https://www.kamailio.org/docs/modules/stable/modules/mohqueue.html Fred Posner

Re: [SR-Users] Send 200 OK response with body to INVITE requests

2019-04-15 Thread David Dean
Hi Alex, Thanks for the tip re: rtpengine routing, that's really useful. The flow I'm trying to create is like this: [ Test Client ] --> INVITE --> [ Kamailio ]          ^                                                   |          |-- 200 OK + SDP | The goal is for

Re: [SR-Users] Send 200 OK response with body to INVITE requests

2019-04-15 Thread Joel Serrano
Hi David, As Alex said, K is a proxy. If you strictly want to use something like K, then I would suggest yo have a look at the rtp_media_server module: https://www.kamailio.org/docs/modules/devel/modules/rtp_media_server.html Only available in master branch (5.3), but worth giving a try if you

Re: [SR-Users] Send 200 OK response with body to INVITE requests

2019-04-15 Thread Alex Balashov
Hi David, Kamailio is a proxy, so it cannot endogenously originate either requests or most replies. A 200 OK to an INVITE transaction can only come from a user agent (endpoint), and Kamailio's sole job is to forward it. So, the 200 OK is going to come from the auto-answering callee. To engage

[SR-Users] Send 200 OK response with body to INVITE requests

2019-04-15 Thread David Dean
Hi all, I'm building an automated load testing system for an rtp media server with TURN that uses Kamailio for SIP. When a client sends an INVITE to Kamailio, I need Kamailio to respond with "200 OK" and the SDP generated by rtpengine. I've enabled auto-answer in the client, so as soon as it