[Asterisk-Dev] how to add data to zaptel/wcfxo.c static struct fxo_mode China data?

dev2003 at mail.ustc.edu.cn dev2003 at mail.ustc.edu.cn
Tue Nov 30 01:01:43 MST 2004


I have a X100P connected to my analog PBX. I can′t

detect hangups on this line

While the line is connected to the PBX, I can never detect busy and the

line hangs at the end of every call.
before set modprobe wcfxo opermode=1,
it never can not hangup.

after set  modprobe wcfxo opermode=1,
it takes about  3-5 mins to hangup


let see:
2004-11-30 14:43:43 pstn hungup

2004-11-30 14:46:43 DEBUG[21263]: dsp.c:1494 ast_dsp_busydetect: TEST6
FROM DEV
@SICT dsp->busycount - 1:3,hittone:3 , avgtone 435
2004-11-30 14:46:43 DEBUG[21263]: dsp.c:1689 ast_dsp_process: Requesting
Hangup
because the busy tone was detected on channel Zap/1-1
2004-11-30 14:46:43 DEBUG[21263]: channel.c:2704 ast_channel_bridge:
Didn't get
a frame from channel: Zap/1-1
2004-11-30 14:46:43 DEBUG[21263]: channel.c:2774 ast_channel_bridge:
Bridge stops bridging channels Zap/1-1 and SIP/sip_proxy-out-ec37
2004-11-30 14:46:43 DEBUG[21263]: chan_sip.c:1718 sip_hangup:
update_user_counter(24800029) - decrement outUse counter



static struct fxo_mode {
	char *name;
	int ohs;
	int act;
	int dct;
	int rz;
	int rt;
	int lim;
	int vol;
} fxo_modes[] =
{
	{ "FCC", 0, 0, 2, 0, 0, 0, 0 }, 	/* US */
	{ "CTR21", 0, 0, 3, 0, 0, 3, 0 },	/* Austria, Belgium, Denmark, Finland,
France, Germany,
										   Greece, Iceland, Ireland, Italy, Luxembourg, Netherlands,
										   Norway, Portugal, Spain, Sweden, Switzerland, and UK */
};


// what means of fxo_mode ? data means? I do not understand.
thanks
how can I add china data??

http://lists.digium.com/pipermail/asterisk-users/2004-June/052263.html
> +static struct fxo_mode {
> +       char *name;
> +       int ohs;
> +       int ohs2;
> +       int rz;
> +       int rt;
> +       int ilim;
> +       int dcv;
> +       int mini;
> +       int acim;
> +} fxo_modes[] =
> +{
> +       { "FCC", 0, 0, 0, 0, 0, 0x3, 0, 0 },    /* US, Canada */
> +       { "TBR21", 0, 0, 0, 0, 1, 0x3, 0, 0x2 },/* Austria, Belgium,
> Denmark, Finland, France, Germany,
> +
Greece, Iceland, Ireland, Italy, Luxembourg, Netherlands,
> +
Norway, Portugal, Spain, Sweden, Switzerland, and UK */
> +       { "ARGENTINA", 0, 0, 0, 0, 0, 0x3, 0, 0 },
> +       { "AUSTRALIA", 1, 0, 0, 0, 0, 0, 0x3, 0x3 },
> +       { "AUSTRIA", 0, 1, 0, 0, 1, 0x3, 0, 0x3 },
> +       { "BAHRAIN", 0, 0, 0, 0, 1, 0x3, 0, 0x2 },
> +       { "BELGIUM", 0, 1, 0, 0, 1, 0x3, 0, 0x2 },
> +       { "BRAZIL", 0, 0, 0, 0, 0, 0, 0x3, 0 },
> +       { "BULGARIA", 0, 0, 0, 0, 1, 0x3, 0x0, 0x3 },
> +       { "CANADA", 0, 0, 0, 0, 0, 0x3, 0, 0 },
> <super big snip>



More information about the asterisk-dev mailing list