[SR-Users] using set_body_multipart and append_body_part on on_reply routes

david descartin at bts.io
Mon Nov 7 18:19:32 CET 2016


hello all

i'm using kam version 4.4.1 and i would like to generate an ISUP part on
the 1xx,2xx responses to a remote carrier since the fsw i send the calls
to cannot handle ISUP SDP.
despite seeing in the doc that those functions cannot be used there and
only in  REQUEST_ROUTE, FAILURE_ROUTE, BRANCH_ROUTE, i tried and it
works.... partially, because it seems it doesnt create the last boundary
and it creates a next boundary with an empty "Encapsulated multipart
part: "

this the the route i call from onreply_route

route[SIPISUP] {
    set_body_multipart();
    msg_apply_changes();
    $var(isup) = "\x01\x12\x49\x01\x0a\x03\x02\x0a\x08\x84\x90\x33\x41
\x72\x17\x01\x06\x0a\x08\x04\x13\x93\x70\x21\x73\x23\x10\x08\x01\x01
\x00";
    append_body_part("$var(isup)","application/isup;version=itu-t92
+","signal;handling=optional");
    msg_apply_changes();
    sipt_destination($rU, 31, 4);
    sipt_set_calling($fU, 4, 0, 3);
    msg_apply_changes();
}

am i doing something wrong? how can i set this to end the SDP with last
boundary?

thanks a lot and regards
david

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


More information about the sr-users mailing list