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

2017-03-17 Thread Daniel-Constantin Mierla
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, vi...@advaitamtech.com wrote:
>
> Yes. It worked.
>
>  
>
> Thank you.
>
>  
>
> -Original Message-
> From: "Alex Balashov" <abalas...@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, vi...@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

___
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


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

2017-03-16 Thread vi...@advaitamtech.com

Yes. It worked.
 
Thank you.
 
-Original Message-
From: "Alex Balashov" <abalas...@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, vi...@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


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

2017-03-16 Thread Alex Balashov
Won't accessing $mb in an onreply_route work?

On Thu, Mar 16, 2017 at 08:25:48PM +0530, vi...@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