[Asterisk-bsd] BRI call's not hungup
Hans Petter Selasky
hselasky at c2i.net
Thu Nov 30 07:41:37 MST 2006
On Thursday 30 November 2006 10:03, Pim van Stam wrote:
> Hi all,
>
> I have a QuadBRI ISDN interface with Asterisk (bristuff 1.2.13). I have
> FreeBSD 6.1 and installed asterisk-bristuff, zaptel, libpri-bristuff
> from ports.
>
> Situation: A SIP phone calls another party over ISDN (Zap channel). The
> called party OR the calling party hang's up. The problem is that the
> ISDN line is not hungup at the Asterisk side. Only when both sides
> hangup the isdn channel is hungup.
>
> Eg: someone in a car is called by me at a SIP phone via Asterisk and
> ISDN channel. When I hangup, the other person driving presumes the GSM
> mobile phone is hungup. It is NOT the case.
>
> With "bri debug span 2" (in my case) I see a difference when calling or
> called via ISDN.
> When called the line is hungup with the event PRI_EVENT_HANGUP. When
> calling via ISDN, I see "Zap x/x hungup ACK", after the event
> PRI_EVENT_HANGUP_ACK. There is no action on the event PRI_EVENT_HANGUP.
>
> I have the Dial command with the 'g' option, like Dial(Zap/g1,120,rg).
>
> Have someone encountered this problem? Is there a solutions?
Maybe you want to try ISDN4BSD? It has better guarding against ghost-calls
than libpri. Actually ISDN4BSD will check the state of the call every 8
seconds, and if you hungup and it was not detected it will hangup the call,
when it finds out that the call is no longer there.
The QuadBRI ISDN card is supported by ISDN4BSD, if you download the SVN
version. See:
http://www.selasky.org/hans_petter/isdn4bsd/
Quick download:
If one has got Subversion installed, the latest sources can easily be obtained
by running the following command:
svn --username anonsvn --password anonsvn \
checkout svn://svn.turbocat.net/i4b
#
# The following commands will
# install the driver on FreeBSD:
#
cd i4b/trunk/i4b/FreeBSD.i4b
make S=../src package
make install
Then you install the new version of "chan_capi". See:
http://www.selasky.org/hans_petter/capi4pbx/index.html
svn --username anonsvn --password anonsvn checkout \
svn://svn.turbocat.net/i4b/trunk/chan_capi
There are example configuration files coming with "chan_capi", namely
"capi.conf" and "extensions.conf".
--HPS
More information about the Asterisk-BSD
mailing list