<div class="gmail_quote">On Wed, May 4, 2011 at 12:10 PM, John Hablitzel <span dir="ltr">&lt;<a href="mailto:jjblitz071@gmail.com">jjblitz071@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Relatively new to Asterisk and SIP and am trying to run a proof of concept using Asterisk to make an outbound call through an Audiocodes gateway via SIP using Asterisk version 1.6.1.12.  The specific requirements of the gateway in the configuration I am trying to use specify that the Name part of the From header be blank with the outbound number that needs to be dialed in the number field of the From header. So I want it to look like this:<br>

From: &lt;<a href="mailto:sip%3A1234567890@192.168.3.110" target="_blank">sip:1234567890@192.168.3.110</a>&gt;;tag=xxx<br>
<br>
However, even if I set the name to blank, using Set(CALLERID(name)= ), Asterisk always seems to put the CallerID number in the name field as well and here is what I get:<br>
From: &quot;1234567890&quot; &lt;<a href="mailto:sip%3A1234567890@192.168.3.110" target="_blank">sip:1234567890@192.168.3.110</a>&gt;;tag=xxx<br>
<br>
I cannot figure out how to get the name field to be blank. Here is the extensions.conf context that I think should work:<br>
exten =&gt; xxx,1,Noop(Channel ID is ${CHANNEL})<br>
exten =&gt; xxx,n,Noop(From is ${SIP_HEADER(From)})<br>
exten =&gt; xxx,n,Set(CALLERID(num)=1234567890)<br>
exten =&gt; xxx,n,Set(CALLERID(name)=)<br>
exten =&gt; xxx,n,Noop(CallerID is ${CALLERID(all)})<br>
exten =&gt; xxx,n(dialout),Dial(SIP/POTS1,60,o)<br>
exten =&gt; xxx,n,Hangup<br>
<br>
And my general and section from sip.conf<br>
[general]<br>
allowoverlap=no<br>
udpbindaddr=0.0.0.0<br>
tcpenable=no<br>
tcpbindaddr=0.0.0.0<br>
srvlookup=yes<br>
disallow=all<br>
allow=ulaw<br>
allow=alaw<br>
limitonpeers=yes<br>
notifyringing=yes<br>
maxexpirery=180<br>
defaultexpirey=180<br>
<br>
[POTS1]<br>
type=friend<br>
secret=xxx<br>
context=pots_in<br>
host=dynamic<br>
dtmfmode=info<br>
disallow=all<br>
allow=ulaw<br>
allow=alaw<br>
canreinvite=no<br>
qualify=yes<br>
call-limit=4<br>
rtptimeout=30<br>
<br>
And here is the verbose CLI output from the above configuration.<br>
-- Executing [xxx@inbound:1] NoOp(&quot;SIP/2001-00000004&quot;, &quot;Channel ID is SIP/2001-00000004&quot;) in new stack<br>
-- Executing [xxx@inbound:2] NoOp(&quot;SIP/2001-00000004&quot;, &quot;From is &lt;<a href="mailto:sip%3A2001@192.168.3.112" target="_blank">sip:2001@192.168.3.112</a>&gt;;tag=1c354991377&quot;) in new stack<br>
-- Executing [xxx@inbound:3] Set(&quot;SIP/2001-00000004&quot;, &quot;CALLERID(num)=1234567890&quot;) in new stack<br>
-- Executing [xxx@inbound:4] Set(&quot;SIP/2001-00000004&quot;, &quot;CALLERID(name)=&quot;) in new stack<br>
-- Executing [xxx@inbound:5] NoOp(&quot;SIP/2001-00000004&quot;, &quot;CallerID is &quot;&quot; &lt;1234567890&gt;&quot;) in new stack<br>
-- Executing [xxx@inbound:6] Dial(&quot;SIP/2001-00000004&quot;, &quot;SIP/POTS1,60,o&quot;) in new stack<br>
== Using SIP RTP CoS mark 5<br>
-- Called POTS1<br>
-- Got SIP response 484 &quot;Address Incomplete&quot; back from 192.168.3.121<br>
== Everyone is busy/congested at this time (1:0/0/1)<br clear="all"></blockquote></div><br>It doesn&#39;t look like you&#39;re ever actually sending the number you want to dial?  You&#39;re setting a callerid(num), but where is the number you want to dial?  What happens if you change your dial command to this:<br>
<br>exten =&gt; xxx,n(dialout),Dial(SIP/${EXTEN}@POTS1,60,o)<br><br><br>-- <br>Thanks,<br>--Warren Selby, dCAP<br><a href="http://www.selbytech.com" target="_blank">http://www.selbytech.com</a><br>