call from an internal extension to external number
Hi, day after I undertand a littlee more all these xml hell files (not friendly to read ;)), but to be a PERl developer since 1999 understand regex and PERL language make life more easy... However, I don't understand yet the concept of internal exterenal. is it for phone registration AND outbound calls ? for now I try to make an external call from 1000 ext (registered on port 5060) so I added an extension in dialplan/default.xml <extension name="outbound_europe"> <condition field="destination_number" expression="^00?(\d+)$"> <action application="bridge" data="sofia/gateway/myprovider_europe/00$1"/> </condition> </extension> so if call starts with "00" it redirects to my provider that manage outbound calls, is it correct ? I put the myprovider.xml account into sip_profiles/external/myprovider.xml. Thanks for your help Franck
On Mon, Feb 22, 2010 at 7:29 PM, Madovsky <infos@madovsky.org> wrote:
Hi,
day after I undertand a littlee more all these xml hell files (not friendly to read ;)),
Use a text editor that does syntax highlighting. :)
but to be a PERl developer since 1999 understand regex and PERL language make life more easy...
Hint: don't say PERL, say Perl or perl instead. People who say PERL are considered uneducated.
However, I don't understand yet the concept of internal exterenal. is it for phone registration AND outbound calls ?
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 http://en.wikipedia.org/wiki/User_agent 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.
for now I try to make an external call from 1000 ext (registered on port 5060) so I added an extension in dialplan/default.xml
<extension name="outbound_europe"> <condition field="destination_number" expression="^00?(\d+)$"> <action application="bridge" data="sofia/gateway/myprovider_europe/00$1"/> </condition> </extension> so if call starts with "00" it redirects to my provider that manage outbound calls, is it correct ? I put the myprovider.xml account into sip_profiles/external/myprovider.xml.
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. You're doing well! Just keep plugging away at it and you will figure it all out and soon you will be helping others. :) -MC
----- Original Message ----- From: Michael Collins To: freeswitch-users@lists.freeswitch.org Sent: Tuesday, February 23, 2010 4:47 PM Subject: Re: [Freeswitch-users] call from an internal extension to externalnumber On Mon, Feb 22, 2010 at 7:29 PM, Madovsky <infos@madovsky.org> wrote: Hi, day after I undertand a littlee more all these xml hell files (not friendly to read ;)), Use a text editor that does syntax highlighting. :) but to be a PERl developer since 1999 understand regex and PERL language make life more easy... Hint: don't say PERL, say Perl or perl instead. People who say PERL are considered uneducated. However, I don't understand yet the concept of internal exterenal. is it for phone registration AND outbound calls ? 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 http://en.wikipedia.org/wiki/User_agent 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. for now I try to make an external call from 1000 ext (registered on port 5060) so I added an extension in dialplan/default.xml <extension name="outbound_europe"> <condition field="destination_number" expression="^00?(\d+)$"> <action application="bridge" data="sofia/gateway/myprovider_europe/00$1"/> </condition> </extension> so if call starts with "00" it redirects to my provider that manage outbound calls, is it correct ? I put the myprovider.xml account into sip_profiles/external/myprovider.xml. 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. You're doing well! Just keep plugging away at it and you will figure it all out and soon you will be helping others. :) -MC ------------------------------------------------------------------------------ _______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org Use a text editor that does syntax highlighting. :) black an white on my putty ssh ;) Thanks for your help ! Franck
day after I undertand a littlee more all these xml hell files (not friendly to read ;)), Use a text editor that does syntax highlighting. :) but to be a PERl developer since 1999 understand regex and PERL language make life more easy... Hint: don't say PERL, say Perl or perl instead. People who say PERL are considered uneducated. mmhmm, I said PERL as you say SIP, ti's an acronysm....
Madovsky said:
mmhmm, I said PERL as you say SIP, ti's an acronysm....
No, it is not an acronym. See the following. http://en.wikipedia.org/wiki/Perl " When referring to the language, the name is normally capitalized (Perl) as a proper noun, as you would a spoken language (e.g. English or French). When referring to the interpreter program itself, the name is often uncapitalized (perl) because most Unix-like file systems are case-sensitive. Before the release of the first edition of Programming Perl, it was common to refer to the language as perl; Randal L. Schwartz, however, capitalized the language's name in the book to make it stand out better when typeset. This case distinction was subsequently documented as canonical." " There is some contention about the all-caps spelling "PERL," which the documentation declares incorrect and which some core community members consider a sign of outsiders. Although the name is occasionally taken as an acronym for Practical Extraction and Report Language (which appears at the top of the documentation and in some printed literature), this expansion actually came after the name; several others have been suggested as equally canonical, including Wall's own humorous Pathologically Eclectic Rubbish Lister. Indeed, Wall claims that the name was intended to inspire many different expansions." -- Russell Mosemann
----- Original Message ----- From: "Russell Mosemann" <Russell.Mosemann@cune.org> To: <freeswitch-users@lists.freeswitch.org> Sent: Tuesday, February 23, 2010 10:07 PM Subject: Re: [Freeswitch-users] call from an internal extensiontoexternalnumber
Madovsky said:
mmhmm, I said PERL as you say SIP, ti's an acronysm....
No, it is not an acronym. See the following.
http://en.wikipedia.org/wiki/Perl
" When referring to the language, the name is normally capitalized (Perl) as a proper noun, as you would a spoken language (e.g. English or French). When referring to the interpreter program itself, the name is often uncapitalized (perl) because most Unix-like file systems are case-sensitive. Before the release of the first edition of Programming Perl, it was common to refer to the language as perl; Randal L. Schwartz, however, capitalized the language's name in the book to make it stand out better when typeset. This case distinction was subsequently documented as canonical."
" There is some contention about the all-caps spelling "PERL," which the documentation declares incorrect and which some core community members consider a sign of outsiders. Although the name is occasionally taken as an acronym for Practical Extraction and Report Language (which appears at the top of the documentation and in some printed literature), this expansion actually came after the name; several others have been suggested as equally canonical, including Wall's own humorous Pathologically Eclectic Rubbish Lister. Indeed, Wall claims that the name was intended to inspire many different expansions."
-- Russell Mosemann
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
They Changed definition since they changed thei website... old website it said PERL - Practical Extraction Report Language Thanks Franck
participants (3)
-
Madovsky
-
Michael Collins
-
Russell Mosemann