Default UAProf

Default UAProf SearchSearch
Author Message
Anonymous
Posted on Thursday, June 26, 2003 - 04:02 pm:   

is there a way to get the system to use a default UAProf (for image conversion) ? some phones (like samsung) do not project a UAProf - and i'd like to have the system fall back on a designated default ( like a t68 UAProf, for example) instead of doing no conversion. is this possible?
Bryce Norwood - NowSMS Support
Posted on Thursday, June 26, 2003 - 05:16 pm:   

Hmm ... good question. I agree that could be very useful.

I did just do some experimenting, and came up with a trick that will work.

Let me explain how the logic works in the Now MMSC to select the UAProf.

First, of course, we look at the "Profile:" header. We look at the UAProf.INI file (in the UAProf subdirectory), and if we have a locally cached copy, we use that ... otherwise we download a copy and cache it.

If there is no "Profile:" header, then we look at the UAMap.INI file (also in the UAProf subdirectory). And we look sequentially through this file for a substring match between an entry in this file and the "User-Agent:" header.

So, if you wanted to apply a default, you would add the following entries to the UAMap.INI file (all entries must be under the [UAMap] section header):

a=default.xml
b=default.xml
c=default.xml
d=default.xml
e=default.xml
f=default.xml
g=default.xml
h=default.xml
i=default.xml
j=default.xml
k=default.xml
l=default.xml
m=default.xml
n=default.xml
o=default.xml
p=default.xml
q=default.xml
r=default.xml
s=default.xml
t=default.xml
u=default.xml
v=default.xml
w=default.xml
x=default.xml
y=default.xml
z=default.xml
1=default.xml
2=default.xml
3=default.xml
4=default.xml
5=default.xml
6=default.xml
7=default.xml
8=default.xml
9=default.xml
0=default.xml

Of course, this assumes that a "User-agent:" header is present, and that it contains at least one alphanumeric character. And, of course, that "default.xml" exists in the UAProf subdirectory.

I tried a couple of simple tests here with this approach, and it seemed to work just fine.

-bn
Anonymous
Posted on Thursday, June 26, 2003 - 05:48 pm:   

that worked! thanks
taggat
Posted on Friday, July 04, 2003 - 10:10 am:   

can you do the same thing if the user-agent is not sent ???

I have a handset that does not send the user-agent when downloading MMS messages.
Bryce Norwood - NowSMS Support
Posted on Tuesday, July 08, 2003 - 12:48 am:   

No. If the "User-Agent:" header is not present, there is no way to trigger a default.

We reviewed this earlier today in a development meeting, and it was decided that we would add support for a UAMAP.INI entry "*=default.xml" in the next release (v5.0). If there is no "Profile:" header, and there is no other match in the UAMAP.INI file, then this "*" entry will be used.

In the current version, I don't see any way to achieve this behaviour.

-bn