Note there are two variables that you may have to check:
$mb - full SIP message (request/response) - headers and body
https://www.kamailio.org/wiki/cookbooks/devel/pseudovariables#mb_-_sip_message_buffer
$rb - only the body for sip request/response (no headers)
https://www.kamailio.org/wiki/cookbooks/devel/pseudovariables#rb_-_body_of_requestreply
Yes. It worked.
Thank you.
-----Original Message-----
From: "Alex Balashov" <abalashov@evaristesys.com>
Sent: Thursday, 16 March, 2017 8:32pm
To: "Kamailio (SER) - Users Mailing List" <sr-users@lists.sip-router.org>
Subject: Re: [SR-Users] Configuration to fetch SIP response body.
Won't accessing $mb in an onreply_route work?
On Thu, Mar 16, 2017 at 08:25:48PM +0530, vivek@advaitamtech.com wrote:
>
> Hi,
>
> Is there any configuration to fetch SIP response body received?.
>
> My requirement is to fetch the SIP response body and save it into database.
>
> Thanks,
> Vivek
> _______________________________________________
> 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
--
Alex Balashov | Principal | Evariste Systems LLC
Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free)
Web: http://www.evaristesys.com/, http://www.csrpswitch.com/
_______________________________________________
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
_______________________________________________ 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
-- Daniel-Constantin Mierla www.twitter.com/miconda -- www.linkedin.com/in/miconda Kamailio Advanced Training - Mar 6-8 (Europe) and Mar 20-22 (USA) - www.asipto.com Kamailio World Conference - May 8-10, 2017 - www.kamailioworld.com