<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.3790.2577" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff background="">
<DIV><FONT face=Arial size=2>Good morning everybody,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Can someone explain to me the interconnection
between</FONT></DIV>
<DIV><FONT face=Arial size=2>these four things: indications.conf,
SetLanguage(), zaptel.conf </FONT></DIV>
<DIV><FONT face=Arial size=2>and ring-back ? </FONT><FONT face=Arial size=2>If
there is any !! :- )</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I am having this case where some users cannot hear
ring back</FONT></DIV>
<DIV><FONT face=Arial size=2>from a DeadAGI script and it seems to be
interconnected to these items.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>These users are from the iaxfriends table,
they _can_ hear ring-back from</FONT></DIV>
<DIV><FONT face=Arial size=2>a Dial command directly in extensions.conf, but
_not_ from a DeadAGI</FONT></DIV>
<DIV><FONT face=Arial size=2>that performs the same Dial.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>SIP users, directly defined in sip.conf, don't have
any problem.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Both dial the same IAX route.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>At some point I had no indications.conf and Eric
Wieling suggested</FONT></DIV>
<DIV><FONT face=Arial size=2>to add it, which is what I did, and from there SIP
users in sip.conf started</FONT></DIV>
<DIV><FONT face=Arial size=2>to have the ring-back, but still, my users from the
iaxfriend table still</FONT></DIV>
<DIV><FONT face=Arial size=2>can't hear it.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I use asterisk 1.0.9</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Should I add "language=br" in the iaxfriend source
code to make it work ?</FONT></DIV>
<DIV><FONT face=Arial size=2>I tried to add SetLanguage in extensions.conf but
without real success.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I included the concerned files here, if anybody
could give me a hint, it would</FONT></DIV>
<DIV><FONT face=Arial size=2>be really appreciated !</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thanks in advance,</FONT></DIV>
<DIV><FONT face=Arial size=2>Frederic</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>------------------------------ extensions.conf
---------------------------</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Calling this one does not give me ring back from
the script:<BR>exten => _0XX32316200,1,DeadAGI(fred.agi)<BR>exten =>
_0XX32316200,2,Hangup<BR><BR>;Dialing this one directly gives me the ring
back<BR>exten =>
_10XX32316200,1,Dial(IAX2/provider/559132316200,60);<BR>exten =>
_10XX32316200,2,Hangup</FONT></DIV>
<DIV><FONT face=Arial size=2><BR> </DIV></FONT>
<DIV><FONT face=Arial size=2>------------------------------- fred.agi
-----------------------------------<BR>#!/usr/bin/perl<BR><BR>use DBI;<BR>use
Asterisk::AGI;<BR>$AGI = new
Asterisk::AGI;<BR><BR>$AGI->answer();<BR>$dialstr =
"IAX2/provider/559132316200|60";<BR>$res = $AGI->exec("DIAL
$dialstr");<BR> <BR>-------------------------------- zaptel.conf
-------------------------------<BR> loadzone =
us<BR> defaultzone=us<BR> <BR>--------------------------------
indications.conf
---------------------------<BR> [general]<BR> country=br<BR> <BR>[us]<BR> description
= United States / North America<BR> ringcadance = 2000,4000<BR> dial =
350+440<BR> busy = 480+620/500,0/500<BR> ring =
440+480/2000,0/4000<BR> congestion = 480+620/250,0/250<BR> callwaiting
= 440/300,0/10000<BR> dialrecall
= <BR>!350+440/100,!0/100,!350+440/100,!0/100,!350+440/100,!0/100,350+440<BR> record
= 1400/500,0/15000<BR> info =
!950/330,!1400/330,!1800/330,0<BR> <BR>[br]<BR> description =
Brazil<BR> ringcadance = 1000,4000<BR> dial = 425<BR> busy =
425/250,0/250<BR> ring = 425/1000,0/4000<BR> congestion =
425/250,0/250,425/750,0/250<BR> callwaiting = 425/50,0/1000<BR> ;
Dialrecall not used in Brazil standard (using UK standard)<BR> dialrecall =
350+440<BR> ; Record tone is not used in Brazil, use busy
tone<BR> record = 425/250,0/250<BR> ; Info not used in Brazil standard
(using UK standard)<BR> info =
950/330,1400/330,1800/330<BR> <BR>----------------------------------
sip.conf: sip friends that hears
ring-back<BR> <BR>[general]<BR> .....<BR> language=en<BR> .....<BR> <BR>[382762]<BR> type=friend<BR> username=382762<BR> context=something<BR> secret=secret<BR> nat=yes<BR> canreinvite=no<BR> qualify=no<BR> host=dynamic<BR> language=br<BR> incominglimit=1<BR> <BR>--------------------------------
iax.conf<BR> <BR>[general]<BR> ....<BR> language=en<BR> .....<BR>;all
users are in iaxfriends and they don't hear ringback in deadagi but</FONT></DIV>
<DIV><FONT face=Arial size=2>;here it from Dial in extensions.conf</FONT></DIV>
<DIV><FONT face=Arial size=2><BR>------------------------------- iaxfriends
table ----------------------------------------</FONT></DIV>
<DIV><FONT face=Arial size=2>mysql> show columns from
iaxfriends;</FONT></DIV>
<DIV><FONT face=Arial size=2><BR><FONT
face=Terminal>+-------------+-------------+------+-----+---------+-------+<BR>|
Field |
Type | Null | Key | Default | Extra
|<BR>+-------------+-------------+------+-----+---------+-------+<BR>|
accountcode | varchar(20) |
| |
| |<BR>|
name | varchar(40)
| | PRI
|
| |<BR>|
secret | varchar(40) | YES
| |
| |<BR>| context |
varchar(40) | YES |
|
| |<BR>|
ipaddr | varchar(20) | YES
| |
| |<BR>|
port |
int(6) | YES | |
0 |
|<BR>| regseconds | int(11) | YES
| | 0
|
|<BR>+-------------+-------------+------+-----+---------+-------+<BR></DIV></FONT></FONT>
<DIV><FONT face=Arial><BR><FONT size=2></FONT></FONT> </DIV></BODY></HTML>