[Devel] [ openser-Bugs-1462056 ] append_hf fails

SourceForge.net noreply at sourceforge.net
Fri Mar 31 14:48:01 CEST 2006


Bugs item #1462056, was opened at 2006-03-31 12:24
Message generated for change (Comment added) made by miconda
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=1462056&group_id=139143

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: modules
Group: ver devel
>Status: Closed
>Resolution: Invalid
Priority: 5
Submitted By: Klaus Darilion (klaus_darilion)
>Assigned to: Daniel-Constantin Mierla (miconda)
Summary: append_hf fails

Initial Comment:
Hi!

append_hf("header body","header") does not work. It
only inserts the header body with header name (just
like the one parameter version of append_hf):

avp_printf("$avp(s:temp)","$avp(s:rpid);party=calling;id-type=subscriber;screen=yes");
append_hf("$avp(s:temp)","Remote-Party-ID");

results in:

CSeq: 2 INVITE.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER,
NOTIFY, MESSAGE, SUBSCRIBE, INFO.
Content-Type: application/sdp.
Content-Length: 227.
<sip:+43101 at bp1.ienum.labs.nic.at>;party=calling;id-type=subscriber;screen=yes.
v=0.

also the empty line is missing between the headers and
the body. What about adding CRLF automatically if it is
not present in the string given to append_hf?



----------------------------------------------------------------------

>Comment By: Daniel-Constantin Mierla (miconda)
Date: 2006-03-31 12:48

Message:
Logged In: YES 
user_id=1246013

You missunderstood the parameters, please see:
http://openser.org/docs/modules/1.1.x/textops.html#AEN290

First parameter is a full header and the second is the name
of the header after which to add the header given in first
parameter.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=1462056&group_id=139143



More information about the Devel mailing list