[Asterisk-Users] What's with Indications/SetLanguage/Zaptel/RingBack ?

Frederic Jean fjean at sunnetgroup.net
Fri Feb 24 04:35:00 MST 2006


Good morning everybody,

Can someone explain to me the interconnection between
these four things:  indications.conf, SetLanguage(), zaptel.conf 
and ring-back ? If there is any !!  :- )

I am having this case where some users cannot hear ring back
from a DeadAGI script and it seems to be interconnected to these items.

These users are from the iaxfriends table, they _can_ hear ring-back from
a Dial command directly in extensions.conf, but _not_ from a DeadAGI
that performs the same Dial.

SIP users, directly defined in sip.conf, don't have any problem.

Both dial the same IAX route.

At some point I had no indications.conf and Eric Wieling suggested
to add it, which is what I did, and from there SIP users in sip.conf started
to have the ring-back, but still, my users from the iaxfriend table still
can't hear it.

I use asterisk 1.0.9

Should I add "language=br" in the iaxfriend source code to make it work ?
I tried to add SetLanguage in extensions.conf but without real success.

I included the concerned files here, if anybody could give me a hint, it would
be really appreciated !

Thanks in advance,
Frederic



------------------------------ extensions.conf ---------------------------

Calling this one does not give me ring back from the script:
exten => _0XX32316200,1,DeadAGI(fred.agi)
exten => _0XX32316200,2,Hangup

;Dialing this one directly gives me the ring back
exten => _10XX32316200,1,Dial(IAX2/provider/559132316200,60);
exten => _10XX32316200,2,Hangup


------------------------------- fred.agi -----------------------------------
#!/usr/bin/perl

use DBI;
use Asterisk::AGI;
$AGI = new Asterisk::AGI;

$AGI->answer();
$dialstr = "IAX2/provider/559132316200|60";
$res = $AGI->exec("DIAL $dialstr");
 
-------------------------------- zaptel.conf  -------------------------------
 loadzone = us
 defaultzone=us
 
--------------------------------  indications.conf  ---------------------------
 [general]
 country=br
 
[us]
 description = United States / North America
 ringcadance = 2000,4000
 dial = 350+440
 busy = 480+620/500,0/500
 ring = 440+480/2000,0/4000
 congestion = 480+620/250,0/250
 callwaiting = 440/300,0/10000
 dialrecall = 
!350+440/100,!0/100,!350+440/100,!0/100,!350+440/100,!0/100,350+440
 record = 1400/500,0/15000
 info = !950/330,!1400/330,!1800/330,0
 
[br]
 description = Brazil
 ringcadance = 1000,4000
 dial = 425
 busy = 425/250,0/250
 ring = 425/1000,0/4000
 congestion = 425/250,0/250,425/750,0/250
 callwaiting = 425/50,0/1000
 ; Dialrecall not used in Brazil standard (using UK standard)
 dialrecall = 350+440
 ; Record tone is not used in Brazil, use busy tone
 record = 425/250,0/250
 ; Info not used in Brazil standard (using UK standard)
 info = 950/330,1400/330,1800/330
 
---------------------------------- sip.conf: sip friends that hears ring-back
 
[general]
 .....
 language=en
 .....
 
[382762]
 type=friend
 username=382762
 context=something
 secret=secret
 nat=yes
 canreinvite=no
 qualify=no
 host=dynamic
 language=br
 incominglimit=1
 
-------------------------------- iax.conf
 
[general]
 ....
 language=en
 .....
;all users are in iaxfriends and they don't hear ringback in deadagi but
;here it from Dial in extensions.conf

------------------------------- iaxfriends table ----------------------------------------
mysql> show columns from iaxfriends;

+-------------+-------------+------+-----+---------+-------+
| Field       | Type        | Null | Key | Default | Extra |
+-------------+-------------+------+-----+---------+-------+
| accountcode | varchar(20) |      |     |         |       |
| name        | varchar(40) |      | PRI |         |       |
| secret      | varchar(40) | YES  |     |         |       |
| context     | varchar(40) | YES  |     |         |       |
| ipaddr      | varchar(20) | YES  |     |         |       |
| port        | int(6)      | YES  |     | 0       |       |
| regseconds  | int(11)     | YES  |     | 0       |       |
+-------------+-------------+------+-----+---------+-------+


 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060224/eee8f616/attachment.htm


More information about the asterisk-users mailing list