Helpful Information
 
 
Category: Mobile Programming
wtai

does siemens me45 support wtai?
:confused:

The M35 does so I'm guessing the M45 does too.

i've tried this script but it didn't work
could you tell me what's wrong with this script?

script 1 :
<?php
header("Content-type: text/vnd.wap.wml") ;
echo "<?xml version='1.0'?>" ;
?>

<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">

<wml>

<card>
<do type="options" label="Call">
<go href="wtai://wp/mc;+62248313816"/>
</do>
<p>
Please call me !
</p>
</card>
</wml>

script 2 :

<?
header("Content-type: text/vnd.wap.wml");
echo("<?xml version=\"1.0\"?>\n");
echo("<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\" \"http://www.wapforum.org/DTD/wml_1.1.xml\">\n\n");
?>

<wml>

<template>
<do type="prev" label="Back">
<prev/>
</do>
</template>

<card id="card" title="Profil">
<p>
<b>Telp</b> : <a href="wtai://wp/mc;+62248313816">+62248313816</a><br/>
<b>Telp</b> : <a href="wtai://wp/ap;+62248313816">+62248313816 >>> to phone book</a><br/>
</p>
</card>
</wml>

There doesn't seem to be anything wrong with the script, I don't know if the php headers are doing something wrong, as I founf they interfered with XML output on our server here (so they may interfere with WML output).

If it all shows correctly, then possibly the phone doesn't support WTAI.

<a href="wtai://wp/mc;+18471234567">1(847)123-4567</a><br/>

My clients will never be outside of the (847) area code. Within the wtai, do I need the +1.

Now that I think of it, I do - we have 11 digit dialing now.

Nevermind.....

Originally posted by inijoey
i've tried this script but it didn't work
could you tell me what's wrong with this script?

script 1 :
<?php
header("Content-type: text/vnd.wap.wml") ;
echo "<?xml version='1.0'?>" ;
?>

<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">

<wml>

<card>
<do type="options" label="Call">
<go href="wtai://wp/mc;+62248313816"/>
</do>
<p>
Please call me !
</p>
</card>
</wml>


Try this for a header instead..



<?php
header("Content-type: text/vnd.wap.wml");
echo "<?xml version=\"1.0\"?>";
echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\""
. " \"http://www.wapforum.org/DTD/wml_1.1.xml\">";
echo "\n\n";
?>



and here's my WTAI..



<anchor>Call Me
<go href="wtai://wp/mc;07786XXXXXX"/>
</anchor>
<br/>


I don't think you're allowed to use the +countrycode but I could well be wrong. I found that WTAI worked on my Trium Geo and Ericsson T39M, but not at all on my Nokia 7110..

Originally posted by peterg


I don't think you're allowed to use the +countrycode but I could well be wrong. I found that WTAI worked on my Trium Geo and Ericsson T39M, but not at all on my Nokia 7110.. [/B]

Here in Chicago we have 11 digit dialing, even to call the person next door. I know I need 1 (area code) 7 digit number, but do I need the + ?

Hmmm,

I admitted defeat and RTFM'd :)

I found a reference to WTAI here (http://www.wmlscript.com/wap_spec/WAP-170-WTAI-20000707-a.pdf), which has lots of examples on how to handle WTAI, but interestingly none of the examples show dialling using a '+' sign...

But it does mention phone number formats a lot, so I proceeded to look at the format guide (http://www.wmlscript.com/wap_spec/WAP-188-WAPGenFormats-20000217-a.pdf).

..where it does mention it, but I'm still non the wiser. My theory is that once again, different manufacturers have implemented bits of the WAP spec at different levels..










privacy (GDPR)