I’m migrating from FreePBX to FreePBX We like to have different ringer sounds for internal and external call.

For our Snom and Gigaset Phones, I need the Alert-Info like this

Alert-Info: <>;x-line-id=0;info=iris;delay=0

This works well with my old PBX, I can see it in the log of a Snom Phone.

If I put the same line in Inbound-Routes in FreePBX

The header gets like this:

Alert-Info: &lt;;;x-line-id=0;info=iris;delay=0

So there is a problem with the encoding, FreePBX adds the &lt; (“lower than”) and &gt; (“greater than”) HTML-Tags, and those gets also in the Dialplan and SIP-Header. The phones don’t recognize this format.

How can I solve this problem?
Thank you for your answers.

Kind regards

The server is encoding your URL to avoid cross-site scripting. This is a good thing and (I assume) on purpose.

Since cross-site scripting is one of the easy ways to lose control over a website, this is a good thing and I suspect that there aren’t actually many ways to avoid this. Things you could try include “escaping” the &lt with a back-slash (which may or may not work) or copying the ring-tone to your phones and using a local alias for the wav file.

If neither of those work, you could submit a feature request and see if Sangoma will fix it. In the past, they’ve been reticent to do much with this field, since they use it as a market differentiator for their phones, but they may be able to get you going on this.

Thank you for your answer.

Escaping unfortunatly don’t work. The escape caracter rests, the result looks like this:


The problem with &lt; even ocurs with local IPs/ domains:


So the idea with local ringtones also don’t work.

In need the format like this: Alert-Info: <>

Do you have an idea how to replace the &lt; and &gt; in the dialplan?
Maybe I can change something in the func-apply-sipheaders?

I am also having this same problem, it has been working fine until recently. Now it just removes the URL from the string (under advanced settings). So my Snom phones dont recognise it. Any help is much appreciated.

Open a bug report or see if one is opened. This is a FreePBX issue with submitting forms and writing out diaplan. Its using HTML encoding and not fixing it before submission.

A report is already opened about this.

1 Like

Where can i view it? or click on the “Issues” link at the top of the forum.

I like to try the patch. Should I insert it in ./modules/core/ ?

@tm1000: How long does it take to fix this issue?

I tried this, but it didnt seem to work. My issue is that when saving Internal Alert on the Advanced Settings, it strips all the html tags and url. It never used to do this.

6 posts were split to a new topic: No Alert Info passing through after 14 Upgrades

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.