title: Change tcp/udp port for user
body: <p>I am using the Linksys SPA3102 with my freeswitch raspberry pi. The PSTN line uses port 5061. I have created a user with ID "23" for the PSTN line however I believe I need to have that user use port 5061. Is there a way to set the port for a particular user? I tried setting "sip-port" in the params to 5061 but it had no effect. I can change the port to 5060 in the SPA3102 and this allows the user to register but then I can't then use it to dial out on the PSTN line.</p>
  
  <p>Here's how I have defined the user:</p>
  
  <pre><code>&lt;include&gt;
    &lt;user id="23"&gt;
      &lt;params&gt;
        &lt;param name="password" value="$${default_password}"/&gt;
        &lt;param name="vm-password" value="23"/&gt;
        &lt;param name="sip-port" value="5061"/&gt;
      &lt;/params&gt;
      &lt;variables&gt;
        &lt;variable name="toll_allow" value="domestic,international,local"/&gt;
        &lt;variable name="accountcode" value="23"/&gt;
        &lt;variable name="user_context" value="default"/&gt;
        &lt;variable name="effective_caller_id_name" value="Phone Line"/&gt;
        &lt;variable name="effective_caller_id_number" value="23"/&gt;
        &lt;variable name="outbound_caller_id_name" value="$${outbound_caller_name}"/&gt;
        &lt;variable name="outbound_caller_id_number" value="$${outbound_caller_id}"/&gt;
        &lt;variable name="callgroup" value="techsupport"/&gt;
      &lt;/variables&gt;
    &lt;/user&gt;
  &lt;/include&gt;
  </code></pre>