[OpenSIPS-Devel] [opensips] add_body() doesn't insert content-type (#698)

Ionut Ionita notifications at github.com
Fri Nov 13 17:33:25 CET 2015


I did as you specified, but it works ok for me. The message looks like this

```
U 2015/11/13 18:28:35.341090 192.168.2.6:5060 -> 192.168.2.6:5080
INVITE sip:192.168.2.6:5080 SIP/2.0.
Via: SIP/2.0/UDP 192.168.2.6:5060;branch=z9hG4bK3e49.df36162.0.
To: sipp <sip:192.168.2.6>.
From: opensips <sip:192.168.2.6:5060>;tag=f27851d028408c385ef0691f4f0a49c1-b62b.
CSeq: 10 INVITE.
Call-ID: 7a5bf9fd-7912 at 192.168.2.6.
Max-Forwards: 70.
Content-Length: 12.
User-Agent: OpenSIPS (2.1.1 (i386/linux)).
Content-Type: application/dialog-info+xml.
.
Hello World!
```
and i generate a t_new_request() on each INVITE received. Are you processing the message with any other function before or after you call add_body()? 



---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/issues/698#issuecomment-156481090
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/devel/attachments/20151113/8a39cdcb/attachment.htm>


More information about the Devel mailing list