[Freeswitch-users] Diversion Header

Michael Collins msc at freeswitch.org
Thu Mar 24 01:12:38 MSK 2011


On Wed, Mar 23, 2011 at 6:39 AM, Gustavo Espeche <
gustavo.espeche at easyipcall.com> wrote:

> i'm attaching a tcpdump capture.
> Thanks.
>
Did you actually look at the capture? :D
You have a ton of these:
SIP/2.0 400 Bad To Header

So, this has nothing to do with a Diversion Header, it has to do with the
fact that you have a '#' in your To Header, which is a no-no. Whoever is
sending this invite needs to URL-encode it or remove the # sign. The
offending header is this:

To: 548#254722577500 <sip:548#254722577500 at 38.108.107.228>

Brian West is wondering if this is from a Nextone device? Just curious.
Anyway, have them fix the To header and you should be okay. (Note: the
Diversion header also needs to have the # URL endcoded.)

-MC

P.S. - If they get their knickers in a twist over the URL encoding then
throw the RFC at them:
http://www.ietf.org/rfc/rfc1738.txt

Specifically, page 2 under "Unsafe:" you have this sentence:

The character "#" is unsafe and should always be encoded because it is
used in World Wide Web and in other systems to delimit a URL from a
fragment/anchor identifier that might follow it.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20110323/e7306951/attachment.html 


More information about the FreeSWITCH-users mailing list