<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.19088">
<STYLE></STYLE>
</HEAD>
<BODY 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><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"><BR> <condition
field="destination_number"
expression="^(2064001950)$"><BR> <action
application="set" data="domain_name=$${domain}"/><BR>
<action application="answer"/><BR> <action
application="lua" data="cme_ivr.lua
channel_name"/><BR> <BR> </condition><BR>
</extension><BR></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.</DIV></FONT>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<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></DIV></FONT>
<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>
<DIV><FONT size=2 face=Arial>Dave Goodwin
</DIV></FONT>
<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; font-color: black"><B>From:</B>
<A title=msc@freeswitch.org href="mailto:msc@freeswitch.org">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">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">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">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></BODY></HTML>