[SR-Users] How to route on whether INVITE is for MSRP
Daniel-Constantin Mierla
miconda at gmail.com
Tue Jun 24 10:11:42 CEST 2014
You have to search over the sdp in a way or another. sdpops has a
function sdp_with_media() as well as search_body() from textops can be
useful
Cheers,
Daniel
On 24/06/14 00:47, Alex Villacís Lasso wrote:
> So far, I have a kamailio.cfg that routes INVITEs between Asterisk and
> the external networks. Now I want to start adding MSRP support.
> However, with my current configuration, the test client (Blink) sends
> an INVITE with a SDP payload that specifies msrps media. This gets
> routed to Asterisk, and it gets promptly rejected with "Not Acceptable
> Here".
>
> I need to make Kamailio route the request by itself if the INVITE is
> for MSRP, and delegate to Asterisk for other INVITEs.
>
> What is the most elegant way to test for the INVITE packet to see if
> it is MSRP? This testing should be at least mentioned in the
> documentation for the msrp.so module.
--
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
More information about the sr-users
mailing list