<!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.18876">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2></FONT> </DIV>
<BLOCKQUOTE
style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
<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@lists.freeswitch.org</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Tuesday, February 23, 2010 4:47
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Freeswitch-users] call from
an internal extension to externalnumber</DIV>
<DIV><BR></DIV><BR><BR>
<DIV class=gmail_quote>On Mon, Feb 22, 2010 at 7:29 PM, Madovsky <SPAN
dir=ltr><<A
href="mailto:infos@madovsky.org">infos@madovsky.org</A>></SPAN> wrote:<BR>
<BLOCKQUOTE
style="BORDER-LEFT: rgb(204,204,204) 1px solid; MARGIN: 0pt 0pt 0pt 0.8ex; PADDING-LEFT: 1ex"
class=gmail_quote>
<DIV bgcolor="#ffffff">
<DIV><FONT size=2>Hi,</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>day after I undertand a littlee more all these xml hell
files (not friendly to read ;)),</FONT></DIV></DIV></BLOCKQUOTE>
<DIV>Use a text editor that does syntax highlighting. :)<BR> <BR></DIV>
<BLOCKQUOTE
style="BORDER-LEFT: rgb(204,204,204) 1px solid; MARGIN: 0pt 0pt 0pt 0.8ex; PADDING-LEFT: 1ex"
class=gmail_quote>
<DIV bgcolor="#ffffff">
<DIV><FONT size=2>but to be a PERl developer since 1999 understand regex and
PERL language make life more easy...</FONT></DIV></DIV></BLOCKQUOTE>
<DIV>Hint: don't say PERL, say Perl or perl instead. People who say PERL are
considered uneducated.<BR> <BR></DIV>
<BLOCKQUOTE
style="BORDER-LEFT: rgb(204,204,204) 1px solid; MARGIN: 0pt 0pt 0pt 0.8ex; PADDING-LEFT: 1ex"
class=gmail_quote>
<DIV bgcolor="#ffffff">
<DIV><FONT size=2>However, I don't understand yet the concept of internal
exterenal.</FONT></DIV>
<DIV><FONT size=2>is it for phone registration AND outbound calls
?</FONT></DIV></DIV></BLOCKQUOTE>
<DIV>Internal and external are SIP profiles. Each SIP profile is a SIP user
agent, or UA. For a more complete discussion on this topic check out <A
href="http://en.wikipedia.org/wiki/User_agent">http://en.wikipedia.org/wiki/User_agent</A><BR><BR>In
short, the internal profile is listening on a particular IP and port and
usually it's to listen for registrations and calls from your telephones, as
well as to send calls out to your telephones. The external profile is
generally used just for outbound gateway registrations.<BR> </DIV>
<BLOCKQUOTE
style="BORDER-LEFT: rgb(204,204,204) 1px solid; MARGIN: 0pt 0pt 0pt 0.8ex; PADDING-LEFT: 1ex"
class=gmail_quote>
<DIV bgcolor="#ffffff">
<DIV><FONT size=2>for now I try to make an external call from 1000 ext
(registered on port 5060)</FONT></DIV>
<DIV><FONT size=2>so I added an extension in dialplan/default.xml
</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2> <extension
name="outbound_europe"><BR>
<condition field="destination_number"
expression="^00?(\d+)$"><BR>
<action application="bridge"
data="sofia/gateway/myprovider_europe/00$1"/><BR>
</condition><BR> </extension><BR></FONT></DIV>
<DIV><FONT size=2>so if call starts with "00" it redirects to my provider
that manage outbound calls, is it correct ?</FONT></DIV>
<DIV><FONT size=2>I put the myprovider.xml account into
sip_profiles/external/myprovider.xml.</FONT></DIV></DIV></BLOCKQUOTE>
<DIV>At first look this appears correct. You can make sure that the gateway is
up by typing "sofia status" at the fs_cli prompt. If you are having trouble
with making calls it is best to watch the debug output very carefully. It is a
lot of information to look at but eventually you will learn to focus on the
information that you need.<BR><BR>You're doing well! Just keep plugging away
at it and you will figure it all out and soon you will be helping others.
:)<BR>-MC<BR></DIV></DIV><BR>
<P>
<HR>
<P></P>
<DIV>_______________________________________________<BR>FreeSWITCH-users
mailing
list<BR>FreeSWITCH-users@lists.freeswitch.org<BR>http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<BR>UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<BR><A
href="http://www.freeswitch.org">http://www.freeswitch.org</A><BR></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV>Use a text editor that does syntax highlighting. :)</DIV>
<DIV> </DIV>
<DIV><FONT size=2>black an white on my putty ssh ;)</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Thanks for your help !</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Franck</FONT></DIV></BLOCKQUOTE></BODY></HTML>