<span style="font-family: arial narrow,sans-serif;">Hello all, </span><br style="font-family: arial narrow,sans-serif;"><br style="font-family: arial narrow,sans-serif;"><span style="font-family: arial narrow,sans-serif;">My pbx server is connected to a sip gateway, when I call an originate command from the asterisk console, to establish a sip connection, the gateway doesn&#39;t accept URL with white spaces, for example:</span><br style="font-family: arial narrow,sans-serif;">
<br style="font-family: arial narrow,sans-serif;">


        <meta http-equiv="CONTENT-TYPE" content="text/html; charset=utf-8">
        <title></title>
        <meta name="GENERATOR" content="OpenOffice.org 3.1  (Linux)">
        <style type="text/css">
        <!--
                @page { margin: 0.79in }
                P { margin-bottom: 0.08in }
        -->
        </style>

<p style="margin-bottom: 0in; font-weight: normal; font-family: arial narrow,sans-serif;" lang="pt-PT" align="LEFT">     <i> Via: SIP/2.0/UDP
10.10.1.10:5060;branch=z9hG4bK387d772e;rport </i>
</p>
<p style="margin-bottom: 0in; font-weight: normal; font-family: arial narrow,sans-serif;" lang="pt-PT" align="LEFT"><i>     
From: &quot;PBX SERVER&quot; &lt;sip:<b>PBX SERVER</b>@<a href="http://10.10.1.10">10.10.1.10</a>&gt;;tag=as2512881b </i>
</p>
<p style="margin-bottom: 0in; font-weight: normal; font-family: arial narrow,sans-serif;" lang="pt-PT" align="LEFT"><i>     
To:
&lt;<a href="http://sip:927817839@10.10.1.250:5060">sip:927817839@10.10.1.250:5060</a>&gt;;tag=2615730116<br></i> </p>
<p style="margin-bottom: 0in; font-weight: normal; font-family: arial narrow,sans-serif;" lang="pt-PT" align="LEFT"><i>     
Contact: &lt;sip:PBX <a href="mailto:SERVER@10.10.1.10">SERVER@10.10.1.10</a>&gt;<br></i> </p>
<p style="margin-bottom: 0in; font-weight: normal; font-family: arial narrow,sans-serif;" lang="pt-PT" align="LEFT"><i>     
Call-ID:
<a href="mailto:454df9c904486e7647231af102a05b34@10.10.1.10">454df9c904486e7647231af102a05b34@10.10.1.10</a> </i>
</p>
<p style="margin-bottom: 0in; font-weight: normal; font-family: arial narrow,sans-serif;" lang="pt-PT" align="LEFT"><i>     
CSeq: 102 ACK</i></p><p style="margin-bottom: 0in; font-weight: normal; font-family: arial narrow,sans-serif;" lang="pt-PT" align="LEFT"><i>     
Max-Forwards: 70</i></p><p style="margin-bottom: 0in; font-weight: normal; font-family: arial narrow,sans-serif;" lang="pt-PT" align="LEFT"><br></p><p style="margin-bottom: 0in; font-weight: normal; font-family: arial narrow,sans-serif;" lang="pt-PT" align="LEFT">
The sip gateway will respond with the following message:</p><p style="margin-bottom: 0in; font-weight: normal; font-family: arial narrow,sans-serif;" lang="pt-PT" align="LEFT"><br></p><p style="margin-bottom: 0in; font-weight: normal; font-family: arial narrow,sans-serif;" lang="pt-PT" align="LEFT">
 


        <meta http-equiv="CONTENT-TYPE" content="text/html; charset=utf-8">
        <title></title>
        <meta name="GENERATOR" content="OpenOffice.org 3.1  (Linux)">
        <style type="text/css">
        <!--
                @page { margin: 0.79in }
                P { margin-bottom: 0.08in }
        -->
        </style>

</p><p style="margin-bottom: 0in; font-weight: normal;" lang="pt-PT" align="LEFT">     
<i>SIP/2.0 400 Bad Request </i>
</p>
<p style="margin-bottom: 0in; font-weight: normal;" lang="pt-PT" align="LEFT"><i>      Via: SIP/2.0/UDP
10.10.1.10:5060;branch=z9hG4bK387d772e;rport </i>
</p>
<p style="margin-bottom: 0in; font-weight: normal;" lang="pt-PT" align="LEFT"><i>     
From: &quot;PBX SERVER&quot; &lt;sip:PBX <a href="mailto:SERVER@10.10.1.10">SERVER@10.10.1.10</a>&gt;;tag=as2512881b </i>
</p>
<p style="margin-bottom: 0in; font-weight: normal;" lang="pt-PT" align="LEFT"><i>     
To:
&lt;<a href="http://sip:927817839@10.10.1.250:5060">sip:927817839@10.10.1.250:5060</a>&gt;;tag=2615730116 </i>
</p>
<p style="margin-bottom: 0in; font-weight: normal;" lang="pt-PT" align="LEFT"><i>      Call-ID:
<a href="mailto:454df9c904486e7647231af102a05b34@10.10.1.10">454df9c904486e7647231af102a05b34@10.10.1.10</a> </i>
</p>
<p style="margin-bottom: 0in; font-weight: normal;" lang="pt-PT" align="LEFT"><i>     
CSeq: 102 INVITE<br></i> </p><i>      Content-Type: text/plain </i>

<p style="margin-bottom: 0in; font-weight: normal;" lang="pt-PT" align="LEFT"><i>     
Content-Length: 23 </i>
</p>
 
<p></p>
<br><br>The &quot;PBX SERVER&quot; name is set in the sip.conf in the callerid parameter.<br><br>Question: <br><br>Is it possible, without trimming the callerid parameter, to set some type of variable in asterisk to trim automatically.  <br>
<br>Thanks in advance,<br><br>Alex   <br>