> > Hi every body, > > Please if some one could help me with this: > I'm writing an AGU Perl Script which basically makes a call using an extension provided by other asterisk box to an E1. The asterisk version is 1.6.0.28, so it hasn't the Wellington know AGI class. The code is as follows: > > ============================> #!/usr/bin/perl > use strict; > > my %AGI; > : > print "EXEC Dial(DAHDI/g2/$AGI{dnid},,W)"; > ============================> > When dialplan executes the AGI, asterisk throw the following error: "Dropping incompatible voice fraile on SIP/INCONCERT-00004796 of formar ulaw since our native format has changed to 0x8 (alaw)." > > And connection is never make. > > It's the code OK?, I'm newbie on asterisk, and really don't know what is going wrong. > > Regards, > > Gustavo
Might be a codec issue, try allow=all in your sip.conf Sent from my iPhone On 6 mrt. 2013, at 17:49, Gustavo Salvador <gustavo.salvador.69 at gmail.com> wrote:>> >> Hi every body, >> >> Please if some one could help me with this: >> I'm writing an AGU Perl Script which basically makes a call using an extension provided by other asterisk box to an E1. The asterisk version is 1.6.0.28, so it hasn't the Wellington know AGI class. The code is as follows: >> >> ============================>> #!/usr/bin/perl >> use strict; >> >> my %AGI; >> : >> print "EXEC Dial(DAHDI/g2/$AGI{dnid},,W)"; >> ============================>> >> When dialplan executes the AGI, asterisk throw the following error: "Dropping incompatible voice fraile on SIP/INCONCERT-00004796 of formar ulaw since our native format has changed to 0x8 (alaw)." >> >> And connection is never make. >> >> It's the code OK?, I'm newbie on asterisk, and really don't know what is going wrong. >> >> Regards, >> >> Gustavo > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users
On Wed, 6 Mar 2013, Gustavo Salvador wrote:>> I'm writing an AGI Perl Script...>> ============================>> #!/usr/bin/perl >> use strict; >> >> my %AGI; >> : >> print "EXEC Dial(DAHDI/g2/$AGI{dnid},,W)"; >> ============================Is this your entire script or just a snippet? If this is all, this is not an AGI. An AGI is an executable that follows the AGI protocol. At a minimum, this means: 1) Read the AGI variables from STDIN. 2) Write an AGI request to STDOUT. 3) Read the AGI response from STDIN. 4) Repeat steps 2 & 3 as needed. Asterisk creates the process executing your AGI and sends a bunch of cruft to it via the process's STDIN. If you don't read this, even if you don't need to use the variables, your AGI will not execute correctly and reliably. If you do not read the response after every request, your AGI will not execute correctly and reliably. Most people use an established AGI library since nobody understands the implications of the protocol correctly the first time. Can you enable AGI debugging on the Asterisk console and see if that yields any clues?>> When dialplan executes the AGI, asterisk throw the following error: >> "Dropping incompatible voice fraile on SIP/INCONCERT-00004796 of formar >> ulaw since our native format has changed to 0x8 (alaw)."(Actual 'cut-n-paste' is better than 'retyping' console output.) I think if you take another look, this is a warning, not an error. No big deal, it means just what it says, just ignore it. -- Thanks in advance, ------------------------------------------------------------------------- Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST Newline Fax: +1-760-731-3000