<br><br><div class="gmail_quote">On Thu, Jun 16, 2011 at 1:02 PM, Dave <span dir="ltr"><<a href="mailto:dave@clancysystems.com">dave@clancysystems.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div bgcolor="#ffffff">
<div><font size="2" face="Arial"></font> </div>
<div><font size="2" face="Arial">Under "domains" in acl.conf.xml I added
</font></div>
<div><font size="2" face="Arial"></font> </div>
<div><font size="2" face="Arial"> <node type="allow"
value="xxx.xxx.xxx.xxx"/></font></div>
<div><font size="2" face="Arial"></font> </div></div></blockquote><div>The correct syntax is:</div><div><meta charset="utf-8"><span class="Apple-style-span" style="font-family: Arial; "><node type="allow" cidr="xxx.xxx.xxx.xxx/32"/></span></div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div bgcolor="#ffffff">
<div><font size="2" face="Arial">x's are the IP address it's just a single address
not a CIDR.</font></div>
<div><font size="2" face="Arial"></font> </div>
<div><font size="2" face="Arial"></font> </div>
<div><font size="2" face="Arial">And I created the file velocity_did.xml with the
following code..</font></div>
<div><font size="2" face="Arial"></font> </div>
<div><font size="2" face="Arial"><include><br> <extension
name="velocity_did"><div class="im"><br> <condition
field="destination_number"
expression="^(2064001950)$"><br></div> <action
application="set" data="domain_name=$${domain}"/><br>
<action application="answer"/><div class="im"><br> <action
application="lua" data="cme_ivr.lua
channel_name"/><br> <br> </condition><br>
</extension><br></div></include><br></font></div>
<div><font size="2" face="Arial">I still just get the "SIP auth challenge (INVITE)
on sofia profile 'internal' for [myphone@theirIP] from their IP, but nothing
more.</font></div>
<div><font size="2" face="Arial"></font> </div></div></blockquote><div>Wait - can you explain *exactly* what you're doing for testing? Are you trying to dial out via Velocity and back in to your DID? If so then you have 2 completely different things you need to set up. The instructions I gave were only for inbound DID, so use a cell phone or something to test that.</div>
<div><br></div><div>For outbound it seems like they are sending you an auth challenge, which means they need to give you a username and password as well as a host/ip. You need to create a gateway, preferably in your external profile. Just be sure to set the "register" param to false since they are not expecting you to register with them. </div>
<div><br></div><div>-MC<br><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div bgcolor="#ffffff">
<div><font size="2" face="Arial">Do I need to change the line ..</font></div>
<div><font size="2" face="Arial"></font> </div>
<div><font size="2" face="Arial"><action application="set"
data="domain_name=$${domain}"/><br></font></div>
<div><font size="2" face="Arial">to the IP address? If so what syntax?</font></div>
<div><font size="2" face="Arial"></font> </div>
<div><font size="2" face="Arial">They have no Domain Name.</font></div>
<div><font size="2" face="Arial"></font> </div>
<div><font size="2" face="Arial">Thanks again for your help.</font></div>
<div><font size="2" face="Arial"></font> </div><font color="#888888">
<div><font size="2" face="Arial">Dave Goodwin
</font></div></font><div><div></div><div class="h5">
<div><font size="2" face="Arial"></font> </div>
<blockquote style="border-left:#000000 2px solid;padding-left:5px;padding-right:0px;margin-left:5px;margin-right:0px" dir="ltr">
<div style="font:10pt arial">----- Original Message ----- </div>
<div style="font:10pt arial;background:#e4e4e4"><b>From:</b>
<a title="msc@freeswitch.org" href="mailto:msc@freeswitch.org" target="_blank">Michael
Collins</a> </div>
<div style="font:10pt arial"><b>To:</b> <a title="freeswitch-users@lists.freeswitch.org" href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">FreeSWITCH Users Help</a>
</div>
<div style="font:10pt arial"><b>Sent:</b> Thursday, June 16, 2011 12:15
PM</div>
<div style="font:10pt arial"><b>Subject:</b> Re: [Freeswitch-users] Setting
Up an Sip Trunk without Authentication</div>
<div><font size="2" face="Arial"></font><font size="2" face="Arial"></font><br></div>Dave,
<div><font size="2" face="Arial"></font><font size="2" face="Arial"></font><br></div>
<div>If you are simply handling incoming calls then you will need to do two
things:</div>
<div><font size="2" face="Arial"></font><font size="2" face="Arial"></font><br></div>
<div>Add Velocity's IP addr to the domains section of acl.conf.xml</div>
<div>Add an extension to the public context (conf/dialplan/public.xml)</div>
<div><font size="2" face="Arial"></font><font size="2" face="Arial"></font><br></div>
<div>Allowing a call into FS via an ACL will send it into the "public"
context; from there you need to transfer it to the default context or just
send it straight to your Lua script.</div>
<div><font size="2" face="Arial"></font><font size="2" face="Arial"></font><br></div>
<div>Also, I don't believe you need to use a "bridge" app based on the
description you gave. Bridge is used to create a new outbound call leg (B leg)
and connect it to the inbound call leg (A leg). If you just are handling a
call with an IVR then there is no B leg needed, thus no need to bridge.</div>
<div><font size="2" face="Arial"></font><font size="2" face="Arial"></font><br></div>
<div>Welcome to FreeSWITCH, btw! :) I can highly recommend the FS book (the
"bridge" book, ironically) as it discusses some of these basic concepts that
will make your FS experience a whole lot more pleasant.</div>
<div><font size="2" face="Arial"></font><font size="2" face="Arial"></font><br></div>
<div>-MC<br><br>
<div class="gmail_quote">On Thu, Jun 16, 2011 at 8:54 AM, Dave <span dir="ltr"><<a href="mailto:dave@clancysystems.com" target="_blank">dave@clancysystems.com</a>></span>
wrote:<br>
<blockquote style="border-left:#ccc 1px solid;margin:0px 0px 0px 0.8ex;padding-left:1ex" class="gmail_quote">
<div bgcolor="#ffffff">
<div><font size="2" face="Arial">Hi,</font></div>
<div><font size="2" face="Arial"></font> </div>
<div><font size="2" face="Arial">I am new to FreeSWITCH and need to set up
FreeSWITCH to receive calls through a Velocity Networks SIP
trunk. They say I should not authenticate with Username and Password.
Rather, I connect directly to the their IP address.</font></div>
<div><font size="2" face="Arial"></font> </div>
<div><font size="2" face="Arial">I put</font></div>
<div><font size="2" face="Arial"></font> </div>
<div><font size="2" face="Arial"><extension
name="velocity"><br> <condition
field="destination_number"
expression="^2064001950$"><br> <action
application="bridge" data="sofia/external/$ <a href="mailto:%7Bdestination_number%7D@their_ip_address%22/" target="_blank">{destination_number}@their_ip_address"/</a>><br> <action
application="lua" data="cme_ivr.lua
channel_name"/><br>
</condition><br></extension></font></div>
<div><font size="2" face="Arial"></font> </div>
<div><font size="2" face="Arial">in the default.xml under Dialplan</font></div>
<div><font size="2" face="Arial"></font> </div>
<div><font size="2" face="Arial">When I Dial the DID from a Phone (not one
connected to the FreeSWITCH server) I get the "SIP auth challenge (INVITE)
on sofia profile 'internal' for [myphone@theirIP] from their IP, but nothing
more.</font></div>
<div><font size="2" face="Arial"></font> </div>
<div><font size="2" face="Arial">What I hope to do is take the incoming call
from 2064001950 and route it to the Lua IVR script above.</font></div>
<div><font size="2" face="Arial"></font> </div>
<div><font size="2" face="Arial">I Appreciate any help you may
offer.</font></div>
<div> </div>
<div><font size="2" face="Arial">Dave Goodwin</font></div>
<div> </div>
<div><font size="2" face="Arial"></font> </div>
<div><font size="2" face="Arial"></font> </div>
<div><font size="2" face="Arial"></font> </div></div><br>_______________________________________________<br>FreeSWITCH-users
mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div></blockquote></div></div></div>
<br>_______________________________________________<br>
Join us at ClueCon 2011, Aug 9-11, Chicago<br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a> 877-7-4ACLUE<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br>