[SR-Users] Textops and Multipart Body - adding ISUP
Daniel-Constantin Mierla
miconda at gmail.com
Wed Feb 10 17:27:25 CET 2016
Msg length field should not be relevant in this case.
Can you add the multipart and just forward, without doing
msg_apply_changes()? Just to see if the cut happens during the
re-parsing or not ...
Cheers,
Daniel
On 10/02/16 17:02, Sergey Basov wrote:
>
> I look at textos sources and seems that most of oparations made using
> memcpy. this C functions must work correctly with 0x00 symbol.
>
> But there are functions which checks msg.len, so may be they cut this
> content?..
>
> WBR.
> Sergey
>
> 10 февр. 2016 г. 16:58 пользователь "Daniel-Constantin Mierla"
> <miconda at gmail.com <mailto:miconda at gmail.com>> написал:
>
> CC-ed Victor -- iirc, he was the author of the functions for
> multi-part
> body -- maybe he remembers the rules for these function, if they take
> 0x0 as terminator or not.
>
> From what I remember by heart, a normal body should work fine with
> non-printable characters -- there is easy to check if the
> content-length
> includes them or not.
>
> Cheers,
> Daniel
>
> On 10/02/16 15:46, Sergey Basov wrote:
> > I am looking what is send to the network.
> > --
> > Best regards,
> > Sergey Basov e-mail:
> sergey.v.basov at gmail.com <mailto:sergey.v.basov at gmail.com>
> >
> > tel: (+38067) 403-62-54 <tel:%28%2B38067%29%20403-62-54>
> >
> >
> > 2016-02-10 16:43 GMT+02:00 Daniel-Constantin Mierla
> <miconda at gmail.com <mailto:miconda at gmail.com>>:
> >> Hello,
> >>
> >> On 10/02/16 15:26, Sergey Basov wrote:
> >>> Thank you for reply.
> >>>
> >>> Yes i need to insert ISUP message
> >>> to update it later via sipt_set_calling($fU, 4, 0, 3); and
> >>> sipt_destination($rU, 31, 4);
> >>>
> >>> I make some progress with
> >>> append_body_part("\x01\x10\x48\x00\x0a\x00","application/isup;
> >>> version=itu-t92+","signal; handling=optional");
> >>>
> >>> but kamailio does not inserts \x00 into the body,
> >>> May be it thinks that string is terminating?
> >> are you looking to what is sent to the network? Or do you print
> the new
> >> message to syslog? Printing is typically stopping at 0x0.
> >>
> >> Cheers,
> >> Daniel
> >>
> >>> --
> >>> Best regards,
> >>> Sergey Basov e-mail:
> sergey.v.basov at gmail.com <mailto:sergey.v.basov at gmail.com>
> >>>
> >>> tel: (+38067) 403-62-54 <tel:%28%2B38067%29%20403-62-54>
> >>>
> >>>
> >>> 2016-02-10 15:17 GMT+02:00 Daniel-Constantin Mierla
> <miconda at gmail.com <mailto:miconda at gmail.com>>:
> >>>> Hello,
> >>>>
> >>>> On 10/02/16 12:35, Sergey Basov wrote:
> >>>>> Hi All.
> >>>>>
> >>>>> I need to use SIP-I with my upstream to set A number as unknown.
> >>>>>
> >>>>> I was read about adding incapsulation ISUP using
> >>>>>
> >>>>> if(has_body("application/sdp"))
> >>>>> {
> >>>>> set_body_multipart();
> >>>>> msg_apply_changes()
> >>>>>
> >>>>> $var(acm) = "7e Od 04 55 75 69 20 4d 61 6b 65 43 61 6c 6c";
> >>>>>
> append_body_part("$var(acm)","application/isup;version=itu-t92+","signal;
> >>>>> handling=optional");
> >>>>> msg_apply_changes()
> >>>>> xlog("L_INFO", "ISUP Changes Applied Succesfully");
> >>>>> }
> >>>>>
> >>>>> It is converts body to multipart and inserts ISUP
> >>>>>
> >>>>> But it inserts is as text.
> >>>>>
> >>>>> Is there any possibility to insert basic ISUP message to
> update it after using
> >>>>>
> >>>>> sipt_destination($rU, 31, 4);
> >>>>> and
> >>>>>
> >>>>> sipt_set_calling($fU, 4, 0, 3);
> >>>>>
> >>>> not much into sip-t/sip-i, but I try to inderstand from
> kamailio and sip
> >>>> operations point of view. What do you mean by "Is there any
> possibility
> >>>> to insert basic ISUP message to update it after using ..."?
> >>>>
> >>>> Do you want to insert first a value and then change it?
> >>>>
> >>>> Cheers,
> >>>> Daniel
> >>>>
> >>>> --
> >>>> Daniel-Constantin Mierla
> >>>> http://twitter.com/#!/miconda
> <http://twitter.com/#%21/miconda> - http://www.linkedin.com/in/miconda
> >>>> Book: SIP Routing With Kamailio - http://www.asipto.com
> >>>> http://miconda.eu
> >>>>
> >>>>
> >>>> _______________________________________________
> >>>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users
> mailing list
> >>>> sr-users at lists.sip-router.org
> <mailto:sr-users at lists.sip-router.org>
> >>>> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
> >> --
> >> Daniel-Constantin Mierla
> >> http://twitter.com/#!/miconda <http://twitter.com/#%21/miconda>
> - http://www.linkedin.com/in/miconda
> >> Book: SIP Routing With Kamailio - http://www.asipto.com
> >> http://miconda.eu
> >>
>
> --
> Daniel-Constantin Mierla
> http://twitter.com/#!/miconda <http://twitter.com/#%21/miconda> -
> http://www.linkedin.com/in/miconda
> Book: SIP Routing With Kamailio - http://www.asipto.com
> http://miconda.eu
>
--
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Book: SIP Routing With Kamailio - http://www.asipto.com
http://miconda.eu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20160210/c75071d3/attachment.html>
More information about the sr-users
mailing list