Hello,
On 11/8/12 11:40 AM, Aft nix wrote:
Hi,
rtpproxy_manage() combines both rtpproxy_offer() and rtpproxy_answer(). Now if i want different flags set for rtpproxy_offer() and rtpproxy_answer() then how should i use rtpproxy_manage()?
To specific, what i want :
route[REQUEST]{ ..... rtpproxy_offer("z20"); ... }
onreply_route[]{ .... rtpproxy_answer("z120"); .... }
Now in kamailio.cfg there is one call rtpproxy_manage() in route[NATMANAGE]. route[NATMANAGE] is called from both route[REQUEST] and onreply_route[]. So i can't emulate the functionality described above. My question is using only rtpproxy_manage() is it possible to emulate the above functionality?
in route[NATMANAGE] you can see that there are some functions that help to detect if a request or a reply is processed, respectively is_request()/is_reply().
You can have if conditions and execute any of rtpproxy_*() functions with different parameters.
Cheers, Daniel
Thanks in advance.
-- -aft
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users