[asterisk-dev] SIPAdd/RemoveHeader apps

Tilghman Lesher tilghman at mail.jeffandtilghman.com
Tue Jan 20 09:42:24 CST 2009


On Friday 16 January 2009 16:50:18 Benny Amorsen wrote:
> Russell Bryant <russell at digium.com> writes:
> > This is pretty much what I had in mind originally.  Reading headers
> > would work as it does today, but the write version of the function would
> > be the same as SIPAddHeader, unless the value is empty, in which case it
> > would do what SIPRemoveHeader does.
>
> I like the current SIPAddHeader because it applies to new SIP packets
> for outgoing connections, whereas SIP_HEADER applies to packets
> received from existing connections.

Perhaps if we created a function to do this, it would be
SIP_OUTGOING_HEADER().

-- 
Tilghman



More information about the asterisk-dev mailing list