I’m trying to use an asterisk PBX to connect devices using a customized SIP version.
This devices use additional field both within INVITE method and 200OK.
I’ve experienced that asterisk act as a back to back entity and so re-generates the SIP messages from zero, removing all the custom fields.
Moreover I’ve used SIPAddHeader and I was able to copy and paste the custom fields within the INVITE Method… but my connections con’t comes up because additional headers are “removed” from 200OK message. So I guess SIPAddHeader is not the right way.
Is there a way to make these message pass through asterisk as they are? Moreover is MESSAGES not managed by asterisk?
As I wrote in my first comment I was able to pass through all the INVITE custom headers by sipadder commands on extension.conf.
Unfortunately, it seems that SIPAddheader works only on the INVITE method and I have custom headers also on other messages.
I’ll try also on Digium forum to check if there’s any chance, otherwise I’ll change my test bed.
Asterisk is a B2BUA so nothing is “passing through”, you would need to disassemble the inbound session and use asterisk’s sipaddheader command on the new leg, but this is a FreePBX forum you probably need the Digium Asterisk forum but you should really be using a proxy to do all that.