<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
When you store without using elements, doesn't it store the whole line,
including "From:"?<br>
<br>
Brandon Buckner wrote:
<blockquote
cite="mid:947EB56E56A8634AA29D7ED8E56D46900154F11D1DD7@E2K7CCR.iowanetworkservices.net"
type="cite">
<pre wrap="">Hmm, I don't know if there's a way to not have the Acme SBC convert "f:" to "From" when it actually sends the message. I wrote a HMR to store the value of From:, then delete it, then add a header of "f" then add the stored value to an INVITE heading out to one of my carriers on my lab system. A wireshark capture indeed shows the from being deleted and re-added to the bottom, but it lists as "From" instead of "f", even in the converted hex frame in the bottom wireshark window. I know there someone from Acme on here, perhaps they can shed some light on it? Here's what I came up with (I only used invite in my test but that's easily changed to any):
sip-manipulation
name CompactHeaders
description
header-rule
name StoreFrom
header-name From
action store
comparison-type pattern-rule
match-value .*
msg-type request
new-value
methods INVITE
header-rule
name DeleteFrom
header-name From
action delete
comparison-type case-sensitive
match-value
msg-type request
new-value
methods INVITE
header-rule
name AddF
header-name f
action add
comparison-type case-sensitive
match-value
msg-type request
new-value $StoreFrom.$0
methods INVITE
On a different tack, are you perhaps able to strip some extraneous information from the headers that the carrier doesn't need or even in the SDP such as unused codecs?
----
Brandon Buckner
Switching Technician / VoIP Admin
Iowa Network Services
<a class="moz-txt-link-abbreviated" href="mailto:brandonb@netins.com">brandonb@netins.com</a>
________________________________________
From: <a class="moz-txt-link-abbreviated" href="mailto:voiceops-bounces@voiceops.org">voiceops-bounces@voiceops.org</a> [<a class="moz-txt-link-abbreviated" href="mailto:voiceops-bounces@voiceops.org">voiceops-bounces@voiceops.org</a>] On Behalf Of David Hiers [<a class="moz-txt-link-abbreviated" href="mailto:hiersd@gmail.com">hiersd@gmail.com</a>]
Sent: Thursday, November 05, 2009 11:17 AM
To: Scott Berkman
Cc: <a class="moz-txt-link-abbreviated" href="mailto:VoiceOps@voiceops.org">VoiceOps@voiceops.org</a>
Subject: Re: [VoiceOps] full to compact header conversion
Yep, acme is the first place I'm looking. It'd be nice to use their
ability to store the value in the From: header, delete the entire
From: header, then write the stored value in a newly-created f:
header.
David
On Thu, Nov 5, 2009 at 8:31 AM, Scott Berkman <a class="moz-txt-link-rfc2396E" href="mailto:scott@sberkman.net"><scott@sberkman.net></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Acme can strip headers, and so can SER/Variants. Also if you are
specifically talking about SIP messages coming out from Broadsoft towards
the PSTN, there are some options in the AS SIP Interface CLI settings about
sending diversion headers and the different versions of PAID (privacy mode I
think?) that can help you shorten the headers.
-Scott
-----Original Message-----
From: <a class="moz-txt-link-abbreviated" href="mailto:voiceops-bounces@voiceops.org">voiceops-bounces@voiceops.org</a> [<a class="moz-txt-link-freetext" href="mailto:voiceops-bounces@voiceops.org">mailto:voiceops-bounces@voiceops.org</a>]
On Behalf Of David Hiers
Sent: Thursday, November 05, 2009 9:44 AM
To: <a class="moz-txt-link-abbreviated" href="mailto:VoiceOps@voiceops.org">VoiceOps@voiceops.org</a>
Subject: [VoiceOps] full to compact header conversion
Anyone seen a slick way to convert headers from full to compact?
After a bunch of diversions, we get close to the PMTU.
Thanks,
David
_______________________________________________
VoiceOps mailing list
<a class="moz-txt-link-abbreviated" href="mailto:VoiceOps@voiceops.org">VoiceOps@voiceops.org</a>
<a class="moz-txt-link-freetext" href="https://puck.nether.net/mailman/listinfo/voiceops">https://puck.nether.net/mailman/listinfo/voiceops</a>
</pre>
</blockquote>
<pre wrap=""><!---->_______________________________________________
VoiceOps mailing list
<a class="moz-txt-link-abbreviated" href="mailto:VoiceOps@voiceops.org">VoiceOps@voiceops.org</a>
<a class="moz-txt-link-freetext" href="https://puck.nether.net/mailman/listinfo/voiceops">https://puck.nether.net/mailman/listinfo/voiceops</a>
_______________________________________________
VoiceOps mailing list
<a class="moz-txt-link-abbreviated" href="mailto:VoiceOps@voiceops.org">VoiceOps@voiceops.org</a>
<a class="moz-txt-link-freetext" href="https://puck.nether.net/mailman/listinfo/voiceops">https://puck.nether.net/mailman/listinfo/voiceops</a>
</pre>
</blockquote>
</body>
</html>