Hi list, My need is to append a site specific parameter to the Contact: header on all INVITEs exiting * via a SIP trunk. I'd like it to look something like this:
Contact: <bob:[email protected];SITE-ID=us.here> where SITE-ID=us.here is set in a config file that * parses on startup. Or in a Dial() command option? Or I don't care exactly how. :-) It is possible to affect the Contact: header via a line in sip.conf: register => toronto:[email protected]/contact but I can't get it to also accept any ;X=Y params for the contact. I can add a custom Contact header in the dialplan with SipAddHeader, but then I have two. SipRemoveHeader only removes headers previously added by SipAddHeader, so no luck there. I have googled, and searched the asterisk-users mailing list archives and not yet found a solution. I did see some work back in 2004 (issues 732 and 777) which mentioned not stripping contact header parameters from arriving requests/registrations, but nothing about creating any such parameters. Thanks for any help/hints, -- -Bob Beers -- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
