Re: [OpenSBC] How to modify From: Header
Brought to you by:
joegenbaclor
|
From: <sa...@ER...> - 2007-12-20 07:47:32
|
Hi Joegen
In this instance i am dealing with an ITSP that requires the From to be
*@192.159.100.100 and not *@themaninthemiddle.com . I want to hardwire it
for now. I was speaking to a vendor of SBC hardware who told me in all the
SBC's he is aware of you can make this charge in there admin interface.
Shouldn't openSBC offer the same basic funtionality, right out of the gate?
This is an increasing requirement from some ITSP when dealing with
peer-to-peer security.
Thanks for the info. I was seriously thinking that i could make a hardwire
change in SBCSIPTrunkRoutingHandler.cxx
BOOL SBCSIPTrunkRoutingHandler::B2BRouteCall(
B2BUAConnection & connection,
SIPMessage & invite,
BOOL /*ignoreRegistrations*/
)
Just for my info. Could i make the hardwiring here ==
connection.AddRoute( routeURI ); ??
Warren Kreckler
----- Original Message -----
From: "Joegen E. Baclor" <joe...@gm...>
To: <ope...@li...>
Sent: Wednesday, December 19, 2007 8:41 PM
Subject: Re: [OpenSBC] How to modify From: Header
> 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
> >
>
>
> -------------------------------------------------------------------------
> 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
>
|