On Thu, Jan 29, 2009 at 2:06 PM, Johan Lantz <johan.lantz at genaker.net>wrote: > Hi > > When retransmitting PUBLISH after timer expiry pjsip does not include > additional headers, only the pubc is recreated and send again with the basic > fields. For presence this is seen when not sending User-Agent in republish > but I also run a second publish session with an additional header that needs > to be included in the re-publish messages as well for routing purposes. > > My question is simply why pjsip does not retransmitt headers added by the > user to the initial publish. Is this assumed to be working the same way as > the eTag -> if-match does for the message body of the publish? I do need the > other headsers to be retransmitted as well and I would be happy to implement > it but before I do it would be nice to know why they are not retransmittet > automatically. > > I think that's just an oversight. The reason is because once publication session has started, renewal will be done by the pubc session automatically, so pjsua-lib won't be able to insert additional headers in the request. If you want to work on this, perhaps the best approach is to add a new API in publish.[hc] to register custom headers to the session. cheers Benny > Best Regards > > Johan > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip at lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20090129/8be511f4/attachment.html>