[SR-Users] Configuration to fetch SIP response body.

Daniel-Constantin Mierla miconda at gmail.com
Fri Mar 17 13:29:12 CET 2017


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

Cheers,
Daniel

On 17/03/2017 06:51, vivek at advaitamtech.com wrote:
>
> Yes. It worked.
>
>  
>
> Thank you.
>
>  
>
> -----Original Message-----
> From: "Alex Balashov" <abalashov at evaristesys.com>
> Sent: Thursday, 16 March, 2017 8:32pm
> To: "Kamailio (SER) - Users Mailing List" <sr-users at 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 at 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 at 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 at 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 at 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20170317/f5b2c86c/attachment.html>


More information about the sr-users mailing list