<?xml version="1.0" encoding="UTF-8"?>
<post>
  <body>&lt;p&gt;I am a client of the &lt;a href=&quot;http://www.optimustag.pt&quot;&gt;optimus tag&lt;/a&gt; service (for English users, it&amp;#8217;s a phone plan that includes free calls for any other phone using the same network plan).&lt;/p&gt;
&lt;p&gt;Recently, I discovered they have a &lt;a href=&quot;http://www.optimustag.pt/Servicos/Webphone.jsp&quot;&gt;softphone like system&lt;/a&gt; called Webphone (Windows only), that allows you to place and receive calls, &lt;span class=&quot;caps&quot;&gt;SMS&lt;/span&gt;, &lt;span class=&quot;caps&quot;&gt;MMS&lt;/span&gt;, and other stuff, right from your computer.&lt;/p&gt;
&lt;p&gt;My first thought was &amp;#8220;this must use some kind of &lt;span class=&quot;caps&quot;&gt;SIP&lt;/span&gt; service&amp;#8221;. Since the &lt;span class=&quot;caps&quot;&gt;SIP&lt;/span&gt; settings are not posted anywhere on the internet, and I don&amp;#8217;t want to use Windows to use their client, I decided to dig deeper and try to find the &lt;span class=&quot;caps&quot;&gt;SIP&lt;/span&gt; configurations so it can work on any regular softphone.&lt;/p&gt;
&lt;p&gt;Although it was easier than I thought (&lt;a href=&quot;http://www.wireshark.org&quot;&gt;Wireshark&lt;/a&gt;, I love you), there is one serious limitation that I couldn&amp;#8217;t solve without hacking some open source code. Anyway here&amp;#8217;s the main settings:&lt;/p&gt;
&lt;h3&gt;Optimus Tag &lt;span class=&quot;caps&quot;&gt;SIP&lt;/span&gt; settings (to use with a &lt;span class=&quot;caps&quot;&gt;SIP&lt;/span&gt; softphone)&lt;/h3&gt;
&lt;ul&gt;
	&lt;li&gt;&lt;strong&gt;server address&lt;/strong&gt;: sip.optimus.pt&lt;/li&gt;
	&lt;li&gt;&lt;strong&gt;username&lt;/strong&gt;: 351 &lt;em&gt;your number&lt;/em&gt;@sip.optimus.pt&lt;/li&gt;
	&lt;li&gt;&lt;strong&gt;password&lt;/strong&gt;: your webphone password&lt;/li&gt;
	&lt;li&gt;&lt;strong&gt;&lt;span class=&quot;caps&quot;&gt;SIP&lt;/span&gt; proxy&lt;/strong&gt;: asbg.sip.optimus.pt&lt;/li&gt;
	&lt;li&gt;&lt;strong&gt;User Agent&lt;/strong&gt;: Optimus-SoftPhone/7.0.1.4124&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Now, the last item is the worst part. If you don&amp;#8217;t specify a &lt;strong&gt;User-Agent&lt;/strong&gt; that starts with &lt;code&gt;Optimus-SoftPhone&lt;/code&gt;, you&amp;#8217;ll receive a &amp;#8220;403 Forbidden User Agent&amp;#8221; message. I tried to find a &lt;span class=&quot;caps&quot;&gt;SIP&lt;/span&gt; softphone that allowed me to change the UserAgent but didn&amp;#8217;t found one (I didn&amp;#8217;t try hard).&lt;/p&gt;
&lt;p&gt;So I decided to take the &lt;a href=&quot;http://www.twinklephone.com&quot;&gt;Twinkle&lt;/a&gt; open source &lt;span class=&quot;caps&quot;&gt;SIP&lt;/span&gt; client, changed the hard coded User Agent, and got surprised when it worked flawlessly from the first time! I tried placing and receiving calls and it worked perfectly :)&lt;/p&gt;
&lt;p&gt;If you&amp;#8217;re interested on the trivial patch (I used Twinkle version 1.4.2) you can find it &lt;a href=&quot;http://gist.github.com/116644&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;If you know a &lt;span class=&quot;caps&quot;&gt;SIP&lt;/span&gt; client for OS X or Linux that allows me to change the User Agent, don&amp;#8217;t hesitate to comment bellow!&lt;/p&gt;</body>
  <excerpt nil="true"></excerpt>
  <id type="integer">124</id>
  <permalink>optimus-webphone-sip-settings</permalink>
  <published-at type="datetime">2009-05-23T07:41:00-07:00</published-at>
  <title>Optimus Webphone SIP settings</title>
</post>
