[OpenSIPS-Users] B2B to/from header formatting

Ovidiu Sas osas at voipembedded.com
Sat Mar 24 00:23:16 CET 2012


It might be that this is working only for "top hiding" scenarios.
I will take a look and let you know.

Regards,
Ovidiu Sas

-- 
VoIP Embedded, Inc.
http://www.voipembedded.com

On Fri, Mar 23, 2012 at 7:14 PM,  <duane.larson at gmail.com> wrote:
> Nope. The only thing I am messing with is
>
> modparam("b2b_entities", "script_req_route", "b2b_request")
> modparam("b2b_entities", "script_reply_route", "b2b_reply")
> modparam("b2b_logic", "script_scenario",
> "/usr/local/etc/opensips/B2BUA/scenario_script.xml")
>
>
>
>
>
> On , Ovidiu Sas <osas at voipembedded.com> wrote:
>> It is working ok for me.  Are you sure that you are not messing with:
>>
>>
>> http://www.opensips.org/html/docs/modules/1.8.x/b2b_logic.html#id250298
>>
>>
>>
>>
>>
>> Regards,
>>
>>
>> Ovidiu Sas
>>
>>
>>
>>
>>
>> --
>>
>>
>> VoIP Embedded, Inc.
>>
>>
>> http://www.voipembedded.com
>>
>>
>>
>>
>>
>> On Fri, Mar 23, 2012 at 6:50 PM, Ovidiu Sas osas at voipembedded.com> wrote:
>>
>>
>> > Ooops ... I missed that.
>>
>>
>> > I will take a look and get back to you.
>>
>>
>> >
>>
>>
>> > Regards,
>>
>>
>> > Ovidiu Sas
>>
>>
>> >
>>
>>
>> > --
>>
>>
>> > VoIP Embedded, Inc.
>>
>>
>> > http://www.voipembedded.com
>>
>>
>> >
>>
>>
>> >
>>
>>
>> > On Fri, Mar 23, 2012 at 6:46 PM, Duane Larson duane.larson at gmail.com>
>> > wrote:
>>
>>
>> >> Thanks Ovidiu.  Ill try that for the p asserted identity but what about
>> >> the
>>
>>
>> >> from: display getting taken off?
>>
>>
>> >>
>>
>>
>> >> On Mar 23, 2012 5:40 PM, "Ovidiu Sas" osas at voipembedded.com> wrote:
>>
>>
>> >>>
>>
>>
>> >>> The To header doesn't need to contain the <>.
>>
>>
>> >>> The original commit for that "fix" was creating issues with the
>>
>>
>> >>> underline tm API and therefore it was reverted.
>>
>>
>> >>>
>>
>>
>> >>> If you want to pass extra headers from the received INVITE to the
>>
>>
>> >>> generated INVITE, you need to declare them:
>>
>>
>> >>>
>> >>> http://www.opensips.org/html/docs/modules/1.8.x/b2b_logic.html#id250020
>>
>>
>> >>>
>>
>>
>> >>> Regards,
>>
>>
>> >>> Ovidiu Sas
>>
>>
>> >>>
>>
>>
>> >>> --
>>
>>
>> >>> VoIP Embedded, Inc.
>>
>>
>> >>> http://www.voipembedded.com
>>
>>
>> >>>
>>
>>
>> >>> On Fri, Mar 23, 2012 at 6:14 PM, Duane Larson duane.larson at gmail.com>
>>
>>
>> >>> wrote:
>>
>>
>> >>> > I think an old B2B bug might have popped up again. (unless I need to
>> >>> > be
>>
>>
>> >>> > doing something in my B2B opensips.cfg but there really isn't much
>> >>> > to
>>
>>
>> >>> > the
>>
>>
>> >>> > script)
>>
>>
>> >>> >
>>
>>
>> >>> > I found this old email
>>
>>
>> >>> >
>>
>>
>> >>> >
>> >>> > http://opensips-open-sip-server.1449251.n2.nabble.com/b2b-top-hiding-from-to-header-formatting-td6099976.html
>>
>>
>> >>> >
>>
>>
>> >>> > I see that when my SIP provider sends me an INVITE with the "From"
>>
>>
>> >>> > having
>>
>>
>> >>> > display info and also a "P-Asserted-Identity" header it gets removed
>>
>>
>> >>> > when my
>>
>>
>> >>> > OpenSIPS B2B server passes the INVITE on to my OpenSIPS Proxy
>> >>> > server.
>>
>>
>> >>> > Also
>>
>>
>> >>> > the To header is not contained in the <> like Jeff Pyle points out
>> >>> > in
>>
>>
>> >>> > the
>>
>>
>> >>> > email I referenced above.
>>
>>
>> >>> >
>>
>>
>> >>> > Here is the debug and NGREP from this.
>>
>>
>> >>> >
>>
>>
>> >>> > http://pastebin.com/Fb6BmwMA
>>
>>
>> >>> >
>>
>>
>> >>> > Here is the trunk version I am currently running
>>
>>
>> >>> >
>>
>>
>> >>> > more main.c
>>
>>
>> >>> > /*
>>
>>
>> >>> >  * $Id: main.c 8772 2012-03-08 11:16:13Z bogdan_iancu $
>>



More information about the Users mailing list