[SR-Users] Textops Module - Multipart Body conversion

Victor Seva linuxmaniac at torreviejawireless.org
Tue Feb 24 21:28:18 CET 2015


On 02/20/2015 04:00 PM, Federico San Martín wrote:
> route[INSERT_ACM]{ 
>      set_body_multipart(); 
>      $var(acm) = "06 02 04 01 29 01 01 00"; 
>      append_body_part("$var(acm)","application/isup; version=itu-t92+","signal; handling=optional"); 
>      return; 
> } 

> ### Error ###
> Feb 20 11:51:49 KAMAILIO kamailio[19883]: ERROR: textops [textops.c:1869]: append_multibody_helper(): Cannot get boundary. Is body multipart?
> ###       ###

You have to call msg_apply_changes[0] after set_body_part because
append_body_part can't detect the new body otherwise.
See Known Limitations at [0]

[0]
http://www.kamailio.org/docs/modules/4.3.x/modules/textopsx.html#textopsx.f.msg_apply_changes

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20150224/114330e2/attachment.sig>


More information about the sr-users mailing list