Add Taiwan support (bug #1599)
authorMark Spencer <markster@digium.com>
Sat, 15 May 2004 23:32:07 +0000 (23:32 +0000)
committerMark Spencer <markster@digium.com>
Sat, 15 May 2004 23:32:07 +0000 (23:32 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2974 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c
configs/indications.conf.sample

index 706b2ae..b35c998 100755 (executable)
@@ -877,6 +877,7 @@ static struct sip_peer *mysql_peer(char *peer, struct sockaddr_in *sin)
                                numfields = mysql_num_fields(result);
                                fields = mysql_fetch_fields(result);
                                success = 1;
+                               p->addr.sin_family = AF_INET;
                                for (x=0;x<numfields;x++) {
                                        if (rowval[x]) {
                                                if (!strcasecmp(fields[x].name, "secret")) {
index 4508970..6896b20 100755 (executable)
@@ -8,7 +8,7 @@
 ; Please note that there are NOT spaces allowed in lists!
 ;
 [general]
-country=us
+country=tw
 
 ; [example]
 ; description = string
@@ -46,6 +46,33 @@ country=us
 ;   tonelist = element[,element]*
 ;   element = [!]freq[+freq2][/duration]
 
+[tw]
+; °Ñ¦Ò¸ê®Æ :
+; http://nemesis.lonestar.org/reference/telecom/signaling/dialtone.html
+; http://nemesis.lonestar.org/reference/telecom/signaling/busy.html
+; http://www.iproducts.com.tw/ee/kylink/06ky-1000a.htm
+; http://www.pbx-manufacturer.com/ky120dx.htm
+; http://www.nettwerked.net/tones.txt
+; http://www.cisco.com/univercd/cc/td/doc/product/tel_pswt/vco_prod/taiw_sup/taiw2.htm
+;
+; ¸ß°Ý¤¤µØ¹q«H«á±o¨ìªº¦^ÂР:
+; dial tone 350+440Hz continuous
+; busy tone 480+620Hz 0.5 sec. on ,0.5 sec. off
+; reorder tone 480+620Hz 0.25 sec. on,0.25 sec. off
+; ringing tone 440+480Hz 1 sec. on ,2 sec. off
+;
+description = Taiwan
+alias = tw
+ringcadance = 1000,4000
+dial = 350+440
+busy = 480+620/500,0/500
+ring = 440+480/1000,0/2000
+congestion = 480+620/250,0/250
+callwaiting = 350+440/250,0/250,350+440/250,0/3250
+dialrecall = 300/1500,0/500
+record = 1400/500,0/15000
+info = !950/330,!1400/330,!1800/330,0
+
 [us]
 description = United States / North America
 ringcadance = 2000,4000