Hi Benny, I am using stateful_proxy.c Test case: I have received an INVITE msg which has to be forwarded. After attaching some SIP headers it has a length of 2053 Bytes, which is bigger than the default PJSIP_MAX_PKT_LEN of 2000. The result is that the msg is forwarded but there is no SDP Body and the content-length is 0. I suppose the error is sip_transport.c -> mod_on_tx_msg() -> pjsip_msg_print() where the msg is printed to tdata->buf. The function returns a value > 0 but I think it must return a value < 0 so mod_on_tx_msg() returns with PJSIP_EMSGTOOLONG... I have setted PJSIP_MAX_PKT_LEN to 3000 and then it works fine. Best regards, Helmut