java - JAIN-SIP support for RFC 7339 -


is there way add custom via header in jain-sip? adding oc-parametrs rfc 7339.
enter link description hereplace got following example, not sure if work. quote link:

this achieved adding code implementation of javax.sip.message.message.addheader(header header) function.

void addheader(header header) {     if(!(header instanceof internalheaderobject)         && header instanceof extensionheader) {             extensionheader extensionheader = (extensionheader) header;             header = headerfactory.createheader(extensionheader.getname(), extensionheader.getvalue());         }     ... } 

i start saying can absolutely handle custom via headers in terms of sip long valid sip. rfc need use viaheader.set/getparameter if not missing something.

the blog post talks creating own header classes, not relevant needs far can imagine. custom header classes tricky , inefficient. example jain sip automatically construct it's own viaheader instance inbound messages when parsing them. plugging custom header override default via internally break lot of validation promises , cause overhead..

if have showstopper case custom header classes gladly listen though.


Comments

Popular posts from this blog

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -