[OpenSIPS-Users] Opensips 2.1.1 - append_to_reply Not Working ?

Bogdan-Andrei Iancu bogdan at opensips.org
Wed Sep 23 11:27:21 CEST 2015


Hi Giuseppe,

Indeed, there was a problem strictly related to t_reply_with_body() - 
the rest of the replying functions were ok (in relation to 
append_to_reply() ).

The fix is already available on GIT repo, so simply update your sources.

Thanks for your report,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 18.09.2015 13:44, Giuseppe Cardone wrote:
> Hello,
>
> has anyone come across this issue ?
>
> I'm re-testing a script which was working fine with version 1.11 on 
> version 2.1.1 and what I get is simply that the Header I'm trying to 
> append doesn't get added, but there are no errors in the logs and the 
> script runs fine.
>
> I'm sure the function is being invoked as it is the argument of an if 
> statement which actually runs fine.
>
> Here is an excerpt:
>
>                         xlog("before append Content Type header\n");
>                         if (append_to_reply("Content-Type: 
> application/sdp\r\n")) {
>
>                                 if (t_reply_with_body("200", "Ok", 
> "$dlg_val(sdp_body)")) {
>                                          xlog("AFTER append Content 
> Type header\n");
>                                          xlog("SET 200 OK BODY to: 
> $dlg_val(sdp_body)\n");
>                                 }
>                         }
>
> I know the addition is not happening as an 'ngrep' of the sip 
> signalling shows the desired header is not there (and produces an 
> error on the receiving sip-ua).
>
> Any ideas on this ?
>
> Thanks and regards,
> Giuseppe
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>




More information about the Users mailing list