Fax to email subject line Edit

Joined
Oct 27, 2010
Messages
31
Reaction score
0
Hi,

I'm trying to remove some characters from my Fax to Email subject line. Here's an example below:

New fax from ACME Inc %3C8005551212%3E

Notice the %3C and %3E? I'm trying to find out how to remove them. Any Ideas?

┌────────────────────────System Information───────────────────────────┐
│ Asterisk = ONLINE | Dahdi = ONLINE | MySQL = ONLINE │
│ SSH = ONLINE | Apache = ONLINE | Iptables = ONLINE │
│ Fail2ban = ONLINE | Internet = ONLINE | Ip6Tables = ONLINE │
│ BlueTooth = ONLINE | Hidd = ONLINE | NTPD = ONLINE │
│ SendMail = ONLINE | Samba = OFFLINE | Webmin = ONLINE │
│ Ethernet0 = ONLINE | Ethernet1 = N/A | Wlan0 = N/A │
│ │
│ PBX in a Flash Version = 1.7.5.5 │
│ FreePBX Version = 2.8.0.4 │
│ Running Asterisk Version = Asterisk 1.8.0 │
│ Asterisk Source Version = 1.8.0 │
│ Dahdi Source Version = 2.4.0+2.4.0 │
│ Libpri Source Version = 1.4.11.4 │
│ Addons Source Version = 1.6.2.2 │
│ IP Address = 10.0.0.1 on eth0 │
│ Operating System = CentOS release 5.5 (Final) │
│ Kernel Version = 2.6.18-194.17.4.el5 - 64 Bit
 
I see line 2013 of /etc/asterisk/extensions_additional.conf has the following. But I still am not able to remove the %3C and %3E from the $CALLERID(number). I'm wondering if the LESS THAN or GREATER THAN symbols are to blame, or maybe their placement.

exten => h,n,System(${ASTVARLIBDIR}/bin/fax-process.pl --to "${FAX_RX_EMAIL}" --from "[email protected]" --dest "${FROM_DID}" --subject "New fax from ${URIENCODE(${CALLERID(name)})} ${URIENCODE(<${CALLERID(number)}>)}" --attachment fax_${URIENCODE(${CALLERID(number)})}.pdf --type application/pdf --file ${ASTSPOOLDIR}/fax/${UNIQUEID}.tif)
 
Could anyone comment on whether or not their subject line for inbound PDF faxes looks like so (notice the %3C and %3E characters surrounding the phone number.

New fax from ACME Inc %3C8005551212%3E
 
%3C and %3E are "escaped" (pre-fixed) hexadecimal representations of the "<" and ">" characters. These are the common bracketing characters for a caller id. They have probably been picked up as part of the caller id that's been received. You may be able to alter the callerid in the dial plan (we have many posts about removing leading "+" signs or "1"s - its the same idea if thats where they are coming from).

"escape"ing characters is to keep them from mistakenly being used as some sort of control character in the data stream. seen often in http data.

Jeff
 
%3C and %3E are "escaped" (pre-fixed) hexadecimal representations of the "<" and ">" characters. These are the common bracketing characters for a caller id. They have probably been picked up as part of the caller id that's been received. You may be able to alter the callerid in the dial plan (we have many posts about removing leading "+" signs or "1"s - its the same idea if thats where they are coming from).

"escape"ing characters is to keep them from mistakenly being used as some sort of control character in the data stream. seen often in http data.

Jeff


Thank you so much Jeff! Very much appreciated. Have a great weekend.
 

Members online

Forum statistics

Threads
26,688
Messages
174,412
Members
20,258
Latest member
RandomPerson
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Back
Top