[Asterisk-Dev] Re:Asterisk X100p can not hangup
dev2003
dev2003 at mail.ustc.edu.cn
Sat Nov 6 19:01:05 MST 2004
how to modify code to detect that the pstn phone hangup when PBX NOT support disconnect supervision ?
modify chan_zap.c
-----Original Message-----
From: asterisk-dev-bounces at lists.digium.com
[mailto:asterisk-dev-bounces at lists.digium.com] On Behalf Of
dev2003 at mail.ustc.edu.cn
Sent: Saturday, November 06, 2004 12:53 AM
To: Asterisk-Dev at lists.digium.com
Subject: [Asterisk-Dev] Asterisk X100p can not hangup
Zaptel zapata asterisk from cvs
use x100p card
When pstn fisrt hangup, asterisk can not find that the phone has hungup.
Asterisk Ready.
*CLI> -- Starting simple switch on 'Zap/1-1'
Nov 6 16:42:07 NOTICE[4868]: chan_zap.c:5430 ss_thread: Got event 2
(Ring/Answered)...
Nov 6 16:42:09 ERROR[4868]: callerid.c:261 callerid_feed: fsk_serie made
mylen < 0 (-16) Nov 6 16:42:09 WARNING[4868]: chan_zap.c:5459 ss_thread:
CallerID feed
failed:
Success
Nov 6 16:42:09 WARNING[4868]: chan_zap.c:5501 ss_thread: CallerID returned
with error on channel 'Zap/1-1'
-- Executing Dial("Zap/1-1", "SIP/24800027 at sip_proxy-out|20") in new
stack
-- Called 24800027 at sip_proxy-out
-- SIP/sip_proxy-out-2fc3 is ringing
-- SIP/sip_proxy-out-2fc3 answered Zap/1-1
when I hangup the phone ,there is no respond.
How to do?
from google ,
http://www.marko.net/asterisk/archives/0208/0329.html
This has been covered in many other messages, but in order for the X100P
to detect hangup, you must have disconnect supervision on the phone line.
If the line you are providing is from another PBX, then it is highly
unlikely that it supplies the disconnect supervision. Most telephone
switches do support disconnect supervision, but it's not always on by
default. You can tell by using a lighted keypad which receives its power
only from the phone line, and then calling it and hanging up on it. If
the lighted keypad blinks off for a moment then your line has the
disconnect supervision, otherwise it doesn't.
http://www.marko.net/asterisk/archives/0206/0419.html
Modify chan_zap.c ???
How to modify code to find pstn first hangup?
thank a lot.
zaptel.conf
fxsks=1
# X100P
zapata.conf
signalling=fxs_ks
;context=from-sip
context =default
channel => 1
_______________________________________________
Asterisk-Dev mailing list
Asterisk-Dev at lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-dev
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-dev
dev2003
dev2003 at mail.ustc.edu.cn
2004-11-07
More information about the asterisk-dev
mailing list