Re: [OpenSBC] How to modify From: Header
Brought to you by:
joegenbaclor
|
From: Joegen E. B. <joe...@gm...> - 2007-12-20 02:41:39
|
Hi Warren,
Yes this is the right list in asking OpenSBC specific development
issues. I think I already pointed you to the proper callback before.
For you to rewrite anything in the outbound invite you need to override
the following method
void B2BCallInterface::OnOutgoingCall(
B2BUAConnection & connection,
B2BUACall & call,
SIPMessage & invite
)
{
}
As you can see, the invite in this function is not a const object.
Thus, you are allowed to change anything in this invite. However, you
need to be sure that you do not touch parameters that are necessary in
identifying the call as well as identifying dialog. These are
1. From and To tags
2. Via Branch
3. Call-Id
4. Route-Sets
You may override this in the main-trunk SBCCallHandler.cxx if you want
to affect all calls. If you are just after call specific to a
particular trunk, then you must create your own Call Handler override.
HTH
sales@ER wrote:
> Hi
>
> Not sure if this is the right spot but can anyone help direct me to
> Howto modify the FROM: header?
>
> I need to change the domain name to an ipaddr before sending to ITSP.
>
> Warren Kreckler.
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> SF.Net email is sponsored by:
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services
> for just about anything Open Source.
> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
> ------------------------------------------------------------------------
>
> _______________________________________________
> Opensipstack-osbcdevel mailing list
> Ope...@li...
> https://lists.sourceforge.net/lists/listinfo/opensipstack-osbcdevel
>
|