[Kamailio-Users] NAThelper and multipart SDP

Pascal Maugeri pascal.maugeri at gmail.com
Fri Jun 19 13:30:08 CEST 2009


Sure!

Here it is:

--pascal-boundary
Content-Type: application/sdp

v=0
o=- 3376939113 3376939113 IN IP4 10.1.1.248
s=pjmedia
c=IN IP4 10.1.1.248
t=0 0
a=X-nat:0
m=audio 4000 RTP/AVP 115
a=rtcp:4001 IN IP4 10.1.1.248
a=rtpmap:115 AMR/8000
a=fmtp:115 octet-align=1
a=ptime:20
a=maxptime:400
a=sendrecv
m=application 4001 udp TBCP
a=fmtp:TBCP queuing=0; tb_priority=1; timestamp=0; tb_granted=0;
poc_sess_priority=1; poc_lock=0

--pascal-boundary
Content-Type: application/resource-lists+xml

<?xml version="1.0" encoding="UTF-8"?>
<resource-lists xmlns="urn:ietf:params:xml:ns:resource-lists" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance">
 <list>
  <entry uri="sip:blue at pascal.net <sip%3Ablue at pascal.net>" />
 </list>
</resource-lists>

--pascal-boundary--


I was checking the nathelper source code (nhelpr_func.c) and it looks that
only a content-type of application/sdp is accepted.

-pascal


2009/6/19 Victor Pascual Ávila <victor.pascual.avila at gmail.com>

> Hi Pascal,
>
> could you please attach the INVITE body?
>
> Thanks,
> -Victor
>
> On Fri, Jun 19, 2009 at 12:54 PM, Pascal
> Maugeri<pascal.maugeri at gmail.com> wrote:
> > Here is the errors I get when processing the INVITE:
> >
> > Jun 19 14:51:58 sandbox /usr/sbin/kamailio[15560]:
> > ERROR:nathelper:check_content_type: invalid type for a message
> > Jun 19 14:51:58 sandbox /usr/sbin/kamailio[15560]:
> > ERROR:nathelper:extract_body: content type mismatching
> > Jun 19 14:51:58 sandbox /usr/sbin/kamailio[15560]:
> > ERROR:nathelper:force_rtp_proxy: can't extract body from the message
> >
> > is it familiar to you ?
> >
> > -pascal
> >
> > On Fri, Jun 19, 2009 at 12:25 PM, Alex Balashov <
> abalashov at evaristesys.com>
> > wrote:
> >>
> >> As I understand it, yes, only the SDP payload per se is modified.
> >>
> >> Pascal Maugeri wrote:
> >>
> >>> Thanks Alex but I'm not sure if I understood correctly your answer : do
> >>> you mean that NATHelper only handle INVITE with a unique SDP part
> >>> (application/sdp) ? If NATHelper processes my INVITE with multipart,
> does it
> >>> modify only the SDP part ?
> >>>
> >>> -pascal
> >>>
> >>> On Fri, Jun 19, 2009 at 11:58 AM, Alex Balashov
> >>> <abalashov at evaristesys.com <mailto:abalashov at evaristesys.com>> wrote:
> >>>
> >>>    Nathelper does not attempt to modify parts of SDP not pertinent to
> >>>    its mission.
> >>>
> >>>    Pascal Maugeri wrote:
> >>>
> >>>        Hi
> >>>
> >>>        Does NATHelper support properly multipart SDP (eg. INVITE with
> >>>        application/sdp and application/resource-lists+xml)  ?
> >>>
> >>>        Regards,
> >>>        Pascal
> >>>
> >>>
> >>>
> >>>
>  ------------------------------------------------------------------------
> >>>
> >>>        _______________________________________________
> >>>        Kamailio (OpenSER) - Users mailing list
> >>>        Users at lists.kamailio.org <mailto:Users at lists.kamailio.org>
> >>>        http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
> >>>        http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
> >>>
> >>>
> >>>
> >>>    --    Alex Balashov
> >>>    Evariste Systems
> >>>    Web     : http://www.evaristesys.com/
> >>>    Tel     : (+1) (678) 954-0670
> >>>    Direct  : (+1) (678) 954-0671
> >>>
> >>>
> >>
> >>
> >> --
> >> Alex Balashov
> >> Evariste Systems
> >> Web     : http://www.evaristesys.com/
> >> Tel     : (+1) (678) 954-0670
> >> Direct  : (+1) (678) 954-0671
> >
> >
> > _______________________________________________
> > Kamailio (OpenSER) - Users mailing list
> > Users at lists.kamailio.org
> > http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
> > http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
> >
>
>
>
> --
> Victor Pascual Ávila
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20090619/cc5de24d/attachment.htm>


More information about the sr-users mailing list