List Info

Thread: DTMF tones upon FXS pickup




DTMF tones upon FXS pickup
user name
2007-11-22 10:01:19
Hey everyone,

I'm hearing several DTMF tones each time I answer an analog
phone
attached to my Asterisk install. After these tones are
played, the
call is connected. I'm running 1.4.13 on FreeBSD 6.2 and
zaptel 1.4
trunk.

The verbose=100 log of when this happens:
- Starting simple switch on 'Zap/4-1'
- Executing [sT-Com-incoming:1]
NoOp("Zap/4-1", "") in new stack
- Executing [sT-Com-incoming:2]
Ringing("Zap/4-1", "") in new stack
- Executing [sT-Com-incoming:3]
Wait("Zap/4-1", "1") in new stack
- Executing [sT-Com-incoming:4]
Set("Zap/4-1",
"SENDNOTIFICATIONS="michaelaskozia.com"") in
new stack
- Executing [sT-Com-incoming:5]
Macro("Zap/4-1",
"vm|ZAP/3/211|211|05331901858|to") in new stack
- Executing [smacro-vm:1] Dial("Zap/4-1",
"ZAP/3/211|20|to") in new stack
chan_zap.c:1840 in zt_call: Unable to reset default ring on
'Zap/3-1'
- Called 3/211
- Zap/3-1 is ringing
- Zap/3-1 is ringing
- Zap/3-1 answered Zap/4-1
- parse_srv: SRV mapped to host fwd.pulver.com, port 5060
- Hungup 'Zap/3-1'
= Spawn extension (macro-vm, s, 1) exited non-zero on
'Zap/4-1' in macro 'vm'
= Spawn extension (macro-vm, s, 1) exited non-zero on
'Zap/4-1'
- Executing [hmacro-vm:1] GosubIf("Zap/4-1",
"1?reallyhungup") in new stack
- Executing [hmacro-vm:4] Set("Zap/4-1",
"MISSEDCAUSE=hungup") in new stack
- Executing [hmacro-vm:5] Return("Zap/4-1",
"") in new stack
- Executing [hmacro-vm:2] GosubIf("Zap/4-1",
"1?notify") in new stack
- Executing [hmacro-vm:6] Macro("Zap/4-1",
"email") in new stack



The only "error" message in here is "Unable
to reset default ring
on...". That piece of chan_zap is pasted below as well
as the
appropriate bits of zapata.conf and zaptel.conf. Has anyone
seen this
behavior before? I googled but wasn't too successful.

Any help is greatly appreciated.
-Michael



chan_zap.c:1833
/* Choose proper cadence */
if ((p->distinctivering > 0) &&
(p->distinctivering <= num_cadence)) {
	if (ioctl(p->subs[SUB_REAL].zfd, ZT_SETCADENCE,
&cadences[p->distinctivering - 1]))
		ast_log(LOG_WARNING, "Unable to set distinctive ring
cadence %d on
'%s'n", p->distinctivering, ast->name);
	p->cidrings = cidrings[p->distinctivering - 1];
} else {
	if (ioctl(p->subs[SUB_REAL].zfd, ZT_SETCADENCE, NULL))
		ast_log(LOG_WARNING, "Unable to reset default ring on
'%s'n", ast->name);
	p->cidrings = p->sendcalleridafter;
}


callerid="DECTy" <211>
signalling=fxo_ks
echocancel=32
echocancelwhenbridged=no
busydetect=yes
busycount=3
language=en-gb
context=ANALOG-PHONE-211
channel => 3


fxsks=4
fxoks=3
loadzone=nl
loadzone=us
defaultzone=nl

_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.c
om--

Asterisk-BSD mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-bsd

Re: DTMF tones upon FXS pickup
user name
2007-11-28 03:44:09
On 11/22/07, Michael Iedema <michaelaskozia.com> wrote:
> Hey everyone,
>
> I'm hearing several DTMF tones each time I answer an
analog phone
> attached to my Asterisk install. After these tones are
played, the
> call is connected. I'm running 1.4.13 on FreeBSD 6.2
and zaptel 1.4
> trunk.
>

After some more listening, these tones are the phone's
extension
number defined in Asterisk.

Anyone else experiencing this?

Regards,
-Michael

_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.c
om--

Asterisk-BSD mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-bsd

Re: DTMF tones upon FXS pickup
user name
2008-02-05 08:24:56
On 11/28/07, Michael Iedema <michaelaskozia.com> wrote:
> On 11/22/07, Michael Iedema <michaelaskozia.com> wrote:
> > Hey everyone,
> >
> > I'm hearing several DTMF tones each time I answer
an analog phone
> > attached to my Asterisk install. After these tones
are played, the
> > call is connected. I'm running 1.4.13 on FreeBSD
6.2 and zaptel 1.4
> > trunk.
> >
>
> After some more listening, these tones are the phone's
extension
> number defined in Asterisk.
>
> Anyone else experiencing this?
>


This problem persists with:
 - FreeBSD 6.2-p10
 - Asterisk 1.4.17
 - Zaptel 1.4 revision 169

I really want to track this down but am having trouble
understanding
chan_zap.c's caller-id spill and cadence code.

Any feedback at all on this would be great,
-Michael

_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.c
om--

Asterisk-BSD mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-bsd

Re: DTMF tones upon FXS pickup
user name
2008-02-05 18:15:12
> On 11/28/07, Michael Iedema <michaelaskozia.com> wrote:
> > On 11/22/07, Michael Iedema <michaelaskozia.com> wrote:
> > > Hey everyone,
> > >
> > > I'm hearing several DTMF tones each time I
answer an analog phone
> > > attached to my Asterisk install. After these
tones are played, the
> > > call is connected. I'm running 1.4.13 on
FreeBSD 6.2 and zaptel 1.4
> > > trunk.
> > >
> >
> > After some more listening, these tones are the
phone's extension
> > number defined in Asterisk.
> >
> > Anyone else experiencing this?
> >
> 
> 
> This problem persists with:
>  - FreeBSD 6.2-p10
>  - Asterisk 1.4.17
>  - Zaptel 1.4 revision 169
> 
> I really want to track this down but am having trouble
understanding
> chan_zap.c's caller-id spill and cadence code.
> 
> Any feedback at all on this would be great,
> -Michael

   What you're describing is analog DID. You likely have a
configuration
error.

-DG

Dr. David G. Lawrence
President
Download Technologies, Inc. - http://www.downloadtech.c
om - (866) 399 8500
The FreeBSD Project - http://www.freebsd.org
Pave the road of life with opportunities.

_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.c
om--

Asterisk-BSD mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-bsd

Re: DTMF tones upon FXS pickup
user name
2008-02-06 04:47:59
On 2/6/08, David G Lawrence <dg228dglawrence.com> wrote:
> > On 11/28/07, Michael Iedema <michaelaskozia.com> wrote:
> > > On 11/22/07, Michael Iedema <michaelaskozia.com> wrote:
> > > > Hey everyone,
> > > >
> > > > I'm hearing several DTMF tones each time
I answer an analog phone
> > > > attached to my Asterisk install. After
these tones are played, the
> > > > call is connected. I'm running 1.4.13 on
FreeBSD 6.2 and zaptel 1.4
> > > > trunk.
> > > >
> > >
> > > After some more listening, these tones are
the phone's extension
> > > number defined in Asterisk.
> > >
> > > Anyone else experiencing this?
> > >
> >
> >
> > This problem persists with:
> >  - FreeBSD 6.2-p10
> >  - Asterisk 1.4.17
> >  - Zaptel 1.4 revision 169
> >
> > I really want to track this down but am having
trouble understanding
> > chan_zap.c's caller-id spill and cadence code.
> >
> > Any feedback at all on this would be great,
> > -Michael
>
>    What you're describing is analog DID. You likely
have a configuration
> error.
>

Thanks for the response, it's the only one I've ever
received regarding this.

I did some googling for others experiencing this problem but
came up
empty. If someone has time, could they peek at the included
configuration files? If anything else is needed for
debugging I'll
gladly provide it. I'm sick of getting beeped at when I
answer my
phone!

Regards,
-Michael



zaptel.conf
---------------
fxsks=4
fxoks=2,3
loadzone=us
defaultzone=us



zapata.conf
----------------
[trunkgroups]

[channels]
callerid="Analog 1" <1111>
signalling=fxo_ks
echocancel=256
echocancelwhenbridged=no
busydetect=yes
busycount=3
language=en
context=ANALOG-PHONE-83201952447a8391f2c970
channel => 2


extensions.conf (only appropriate sections)
---------------------
[internal]
; internal phone : Analog 1 - <1111>
exten => 1111,1,NoOp()
exten => 1111,n,Set(SENDNOTIFICATIONS="no")
exten => 1111,n,Macro(vm|ZAP/2/1111|1111|1111|tTo)

[macro-vm];
exten => s,1,Dial($,20,$)
exten => s,n,NoOp($)
exten => s,n,Goto(s-$,1)

exten => s-NOANSWER,1,Wait(1)
exten => s-NOANSWER,n,Set(MISSEDCAUSE=no-answer)
exten => s-NOANSWER,n,VoiceMail($,u,$)
exten => s-NOANSWER,n,Goto(exit-$,1)

exten => s-BUSY,1,Wait(1)
exten => s-BUSY,n,Set(MISSEDCAUSE=busy)
exten => s-BUSY,n,VoiceMail($,b,$)
exten => s-BUSY,n,Goto(exit-$,1)

exten => s-ANSWER,1,Set(MISSEDCAUSE=didntmiss)
exten => s-ANSWER,n,Hangup()

exten => _s-.,1,Goto(s-NOANSWER,1)

exten => h,1,NoOp($)
exten => h,n,GosubIf($["$" =
""]?reallyhungup)
exten => h,n,GosubIf($["$"
!= "no"]?notify)
exten => h,n,Hangup()
exten => h,n(reallyhungup),Set(MISSEDCAUSE=hungup)
exten => h,n,Return()
exten => h,n(notify),Macro(email)
exten => h,n,Return()

exten => exit-FAILED,1,Answer()
exten => exit-FAILED,n,Wait(1)
exten => exit-FAILED,n,Playback(vm-theperson)
exten => exit-FAILED,n,SayDigits($)
exten => exit-FAILED,n,Playback(vm-isunavail)
exten =>
exit-FAILED,n,GosubIf($["$" !=
"no"]?notify)
exten => exit-FAILED,n,Hangup()
exten => exit-FAILED,n(notify),Macro(email)
exten => exit-FAILED,n,Return()

exten => exit-SUCCESS,1,Playback(vm-goodbye)
exten =>
exit-SUCCESS,n,GosubIf($["$" !=
"no"]?notify)
exten => exit-SUCCESS,n,Hangup()
exten => exit-SUCCESS,n(notify),Macro(email)
exten => exit-SUCCESS,n,Return()

exten => exit-USEREXIT,1,Playback(vm-goodbye)
exten =>
exit-USEREXIT,n,GosubIf($["$"
!= "no"]?notify)
exten => exit-USEREXIT,n,Hangup()
exten => exit-USEREXIT,n(notify),Macro(email)
exten => exit-USEREXIT,n,Return()

_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.c
om--

Asterisk-BSD mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-bsd

Re: DTMF tones upon FXS pickup
user name
2008-02-06 05:59:43
> >    What you're describing is analog DID. You
likely have a configuration
> > error.
> >
> 
> Thanks for the response, it's the only one I've ever
received regarding this.

   I actually saved your email from last November and had
intended to
follow up, but I got busy and forgot.
 
> I did some googling for others experiencing this
problem but came up
> empty. If someone has time, could they peek at the
included
> configuration files? If anything else is needed for
debugging I'll
> gladly provide it. I'm sick of getting beeped at when I
answer my
> phone!

   It looks like you chopped a bit too much from your config
file excerpts.
For one thing, where is the
"ANALOG-PHONE-83201952447a8391f2c970" context
in extensions.conf? In zaptel.conf, where is the assignment
for channel 1?
...and where is the rest of zapata.conf - the parts that
define the behavior
for channels 1, 3, and 4? If you don't want to post this
publically, then
could you just email the full config files to me directly?
   I will also need more information on your setup - which
physical port(s)
your phone(s) is/are connected to and which port(s) your CO
line(s) is/are
connected to (and I don't mean for you to look at your
config files to get
this - actually go and look at your card and trace the
wires). The output
of dmesg would also be useful to see how the card is
physically configured
for FXS/FXO.


 
> zaptel.conf
> ---------------
> fxsks=4
> fxoks=2,3
> loadzone=us
> defaultzone=us
> 
> 
> 
> zapata.conf
> ----------------
> [trunkgroups]
> 
> [channels]
> callerid="Analog 1" <1111>
> signalling=fxo_ks
> echocancel=256
> echocancelwhenbridged=no
> busydetect=yes
> busycount=3
> language=en
> context=ANALOG-PHONE-83201952447a8391f2c970
> channel => 2
> 
> 
> extensions.conf (only appropriate sections)
> ---------------------
> [internal]
> ; internal phone : Analog 1 - <1111>
> exten => 1111,1,NoOp()
> exten =>
1111,n,Set(SENDNOTIFICATIONS="no")
> exten => 1111,n,Macro(vm|ZAP/2/1111|1111|1111|tTo)
> 
> [macro-vm];
> exten => s,1,Dial($,20,$)
> exten => s,n,NoOp($)
> exten => s,n,Goto(s-$,1)
> 
> exten => s-NOANSWER,1,Wait(1)
> exten => s-NOANSWER,n,Set(MISSEDCAUSE=no-answer)
> exten => s-NOANSWER,n,VoiceMail($,u,$)
> exten => s-NOANSWER,n,Goto(exit-$,1)
> 
> exten => s-BUSY,1,Wait(1)
> exten => s-BUSY,n,Set(MISSEDCAUSE=busy)
> exten => s-BUSY,n,VoiceMail($,b,$)
> exten => s-BUSY,n,Goto(exit-$,1)
> 
> exten => s-ANSWER,1,Set(MISSEDCAUSE=didntmiss)
> exten => s-ANSWER,n,Hangup()
> 
> exten => _s-.,1,Goto(s-NOANSWER,1)
> 
> exten => h,1,NoOp($)
> exten => h,n,GosubIf($["$" =
""]?reallyhungup)
> exten =>
h,n,GosubIf($["$" !=
"no"]?notify)
> exten => h,n,Hangup()
> exten => h,n(reallyhungup),Set(MISSEDCAUSE=hungup)
> exten => h,n,Return()
> exten => h,n(notify),Macro(email)
> exten => h,n,Return()
> 
> exten => exit-FAILED,1,Answer()
> exten => exit-FAILED,n,Wait(1)
> exten => exit-FAILED,n,Playback(vm-theperson)
> exten => exit-FAILED,n,SayDigits($)
> exten => exit-FAILED,n,Playback(vm-isunavail)
> exten =>
exit-FAILED,n,GosubIf($["$" !=
"no"]?notify)
> exten => exit-FAILED,n,Hangup()
> exten => exit-FAILED,n(notify),Macro(email)
> exten => exit-FAILED,n,Return()
> 
> exten => exit-SUCCESS,1,Playback(vm-goodbye)
> exten =>
exit-SUCCESS,n,GosubIf($["$" !=
"no"]?notify)
> exten => exit-SUCCESS,n,Hangup()
> exten => exit-SUCCESS,n(notify),Macro(email)
> exten => exit-SUCCESS,n,Return()
> 
> exten => exit-USEREXIT,1,Playback(vm-goodbye)
> exten =>
exit-USEREXIT,n,GosubIf($["$"
!= "no"]?notify)
> exten => exit-USEREXIT,n,Hangup()
> exten => exit-USEREXIT,n(notify),Macro(email)
> exten => exit-USEREXIT,n,Return()
> 
> _______________________________________________
> --Bandwidth and Colocation Provided by http://www.api-digital.c
om--
> 
> Asterisk-BSD mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-bsd

-DG

Dr. David G. Lawrence
President
Download Technologies, Inc. - http://www.downloadtech.c
om - (866) 399 8500
The FreeBSD Project - http://www.freebsd.org
Pave the road of life with opportunities.

_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.c
om--

Asterisk-BSD mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-bsd

[1-6]

about | contact  Other archives ( Real Estate discussion Medical topics )