pmeerw's blog

Sat, 11 Jul 2009

SIP setup on Nokia 6300i

The phone only supports one or three SIP provider (depends on whether the SIM card is inserted) but new providers can be added by sending provisioning XML files. I created one for sipcall.at.

A sample XML file can be downloaded from Nokia, together with the Nokia Series 40 VoIP v81 Configuration Tutorial document which describes the relevant tags. After some experiments, I found that

Here is my configuration:
<?xml version="1.0"?>
<!DOCTYPE wap-provisioningdoc PUBLIC "-//WAPFORUM//DTD PROV 1.0//EN" "http://www.wapforum.org/DTD/prov.dtd">
<wap-provisioningdoc version="1.1">
 <characteristic type="BOOTSTRAP">
  	<parm name="NAME" value="sipcall VoIP settings" /> 
  </characteristic>
  <characteristic type="APPLICATION">
    <parm name="APPID" value="w9013"/>				
    <parm name="PROVIDER-ID" value="sipcall"/>	
    <parm name="NAME" value="sipcall"/>		
    <parm name="TO-NAPID" value="INTERNET"/>		
    <parm name="TO-APPREF" value="VoIP_SIP_settings"/> 		
    <parm name="SMPORT" value="16384"/>				
    <parm name="EMPORT" value="32766"/>				
    <parm name="MEDIAQOS" value="46"/>
    <!-- <parm name="NODTMFOOB"/> not defined by default -->				
    <parm name="SECURECALLPREF" value="0"/>		
    <parm name="RTCP" value="0"/>				
    <!-- <parm name="G726RFCPAYLOADFORMAT"/> not defined by default -->
    <parm name="MOMAXALERT" value="45"/>			
    <parm name="MTMAXALERT" value="30"/>
                                                  
    <!-- AMR NB -->
    <characteristic type="CODEC">
      <parm name="MEDIASUBTYPE" value="0"/>			
      <parm name="PRIORITYINDEX" value="0"/>			
      <parm name="OCTET-ALIGN"/>
      <!-- <parm name="PTIME" value="20"/> not defined by default -->
      <parm name="VAD"/>
    </characteristic>    
      
    <!-- G.729 with default values -->
    <characteristic type="CODEC"> 
      <parm name="MEDIASUBTYPE" value="10"/>			
      <parm name="PRIORITYINDEX" value="1"/>			
      <!-- <parm name="PTIME" value="10"/> not defined by default -->
      <parm name="ANNEXB"/>
    </characteristic>

    <!-- G711 a-law with default values -->
    <characteristic type="CODEC"> 
      <parm name="MEDIASUBTYPE" value="3"/>			
      <parm name="PRIORITYINDEX" value="2"/>			
      <!-- <parm name="PTIME" value="20"/> not defined by default -->
      <parm name="VAD"/>
    </characteristic>
    
    <!-- G711 u-law with default values -->
    <characteristic type="CODEC"> 
      <parm name="MEDIASUBTYPE" value="4"/>			
      <parm name="PRIORITYINDEX" value="3"/>			
      <!-- <parm name="PTIME" value="20"/> not defined by default -->
      <parm name="VAD"/>
    </characteristic>

    <!-- G.726-40 with default values -->
    <characteristic type="CODEC"> 
      <parm name="MEDIASUBTYPE" value="5"/>			
      <parm name="PRIORITYINDEX" value="4"/>			
      <!-- <parm name="PTIME" value="20"/> not defined by default -->
      <parm name="VAD"/>
    </characteristic>

    <!-- G.726-32 with default values -->
    <characteristic type="CODEC"> 
      <parm name="MEDIASUBTYPE" value="6"/>			
      <parm name="PRIORITYINDEX" value="5"/>			
      <!-- <parm name="PTIME" value="20"/> not defined by default -->
      <parm name="VAD"/>
    </characteristic>

    <!-- G.726-24 with default values -->
    <characteristic type="CODEC"> 
      <parm name="MEDIASUBTYPE" value="7"/>			
      <parm name="PRIORITYINDEX" value="6"/>			
      <!-- <parm name="PTIME" value="20"/> not defined by default -->
      <parm name="VAD"/>
    </characteristic>

    <!-- G.726-16 with default values -->
    <characteristic type="CODEC"> 
      <parm name="MEDIASUBTYPE" value="8"/>			
      <parm name="PRIORITYINDEX" value="7"/>			
      <!-- <parm name="PTIME" value="20"/> not defined by default -->
      <parm name="VAD"/>
    </characteristic>

   <!-- CN Comfort noise with default values -->
    <characteristic type="CODEC"> 
      <parm name="MEDIASUBTYPE" value="9"/>			
      <parm name="PRIORITYINDEX" value="8"/>			
    </characteristic>
             
    <!-- IP Voice mail -->
    <characteristic type="VOIPURIS"> 
      <!-- Link to SIP settings -->
      <parm name="TO-APPREF" value="VoIP_SIP_settings"/>
      <parm name="IPVOICEMAILBOXURI" value="+43720511472@voipgateway.org"/>
    </characteristic>
 </characteristic>

  <!-- NAT/FW settings, w902E -->
  <characteristic type="APPLICATION">
    <parm name="APPID" value="w902E"/>
    <parm name="NAME" value="NAT/FW Traversal settings"/>
    <characteristic type="NW">
      <parm name="APPREF" value="NAT_FW_settings"/>
      <parm name="DOMAIN" value="voipgateway.org"/>
      <parm name="STUNSRVADDR" value="stun.gmx.net"/>
      <parm name="STUNSRVPORT" value="3478"/>
      <parm name="NATREFRESHTCP" value="30"/>
      <parm name="NATREFRESHUDP" value="20"/>
    </characteristic>
    <characteristic type="NATIAP">
      <parm name="TO-NAPID" value="INTERNET"/>
      <parm name="REFRESHTCP" value="1200"/>
      <parm name="REFRESHUDP" value="28"/>
      <parm name="STUNRETRANSMIT" value="250"/>
    </characteristic>
  </characteristic>

  <!-- SIP settings, w9010  -->
  <characteristic type="APPLICATION">
    <parm name="APPID" value="w9010"/>
    <parm name="APPREF" value="VoIP_SIP_settings"/>
    <parm name="PROVIDER-ID" value="sipcall"/>
    <parm name="TO-NAPID" value="INTERNET"/>
    <parm name="PTYPE" value="IETF"/>
    <parm name="PUID" value="sip:+43720511472@voipgateway.org"/>    
    <parm name="APROTOCOL" value="UDP" />
    <!-- Outbound settings -->
    <characteristic type="APPADDR">
      <parm name="LR"/>
      <parm name="ADDR" value="voipgateway.org"/>
    	<characteristic type="PORT">
  		<parm name="PORTNBR" value="5060" /> 
  	</characteristic>   
    </characteristic>
    <!-- Outbound credentials -->
    <characteristic type="APPAUTH">
      <parm name="AAUTHNAME" value="43720511472"/>
      <parm name="AAUTHSECRET" value="secret"/>
      <parm name="AAUTHDATA" value=""/>
      <parm name="AAUTHTYPE" value="HTTP-DIGEST" />
    </characteristic>   
    <!-- Registrar location and credentials -->
    <characteristic type="RESOURCE">
      <parm name="URI" value="voipgateway.org"/>
      <parm name="AAUTHNAME" value="43720511472"/>
      <parm name="AAUTHSECRET" value="secret"/>
      <parm name="AAUTHDATA" value=""/>
      <parm name="AAUTHTYPE" value="HTTP-DIGEST" /> 
    </characteristic>
  </characteristic>

</wap-provisioningdoc>

The XML document needs to be converted into a binary representation via xml2wbxml: xml2wbxml -o sipcall.prov sipcall.xml and sent to the phone via bluetooth.

posted at: 19:01 | path: /projects/sip | permanent link

Made with PyBlosxom