[ previous ] [ next ] [ threads ]
 To :  Yate mailing list <yate@v...>
 From :  Paul Chitescu <paulc@v...>
 Subject :  Re: [yate] Extra SIP Headers
 Date :  Wed, 5 Dec 2007 17:51:23 +0200 (EET)
Hi there!

Unknown (and a few of the known) SIP headers are placed in the routing 
message as sip_headername parameters. The name is converted to lower case 
to simplify matching.

In outgoing SIP call legs any osip_HeaderName parameter is turned to a SIP 
HeaderName. Case is preserved.

Some parameters cannot be set because they are required for the corectness 
of the SIP processing. Please look in code in modules/ysipchan.cpp at the 
s_filterHeaders and s_rejectHeaders arrays for a list of them.

Any module that can act on / alter generic message parameters can be used 
to make the changes. The regexroute, register are extmodule are currently 
usable for this purpose.

Example for regexroute.conf:

; copy My-Header from incoming to outgoing call leg only if set

Paul Chitescu

On Mon, 3 Dec 2007, ivdreg ivdreg wrote:
> Hi everybody,
> Can someone help me find best way to implement extra functionality in YATE.
> First is to copy some specific headers from inbound SIP leg to outbound.
> Second is to add extra headers in outbound call leg depending on values
> found in inbound sip headers.
> Is it possible with extmodule or I need to write or patch some module.
> Ivailo