when an outgoing call hangs up i get a fast busy

Posted on 2009-02-23
Last Modified: 2013-11-12
I am just learing how to use this stuff and have been following a book on setting up a dial plan.
My goal is to via a sip phone conntact to the asterisk, dial 9 and dial to an outside pots line.
I have all that working, except one part.
When the person that i dialed hangs up, i get a fast busy

in the code section is the dialplans in question.

I assume i am missing just the last step





include => outbound-local

include => outbound-long-distance

exten => 1234,1,Dial(${RANDY},,r)

exten => t,1,Hangup


;this is to setup to local calls outbound



;${EXTEN:1} strips off the 9

;attempt to dial the number on the channel signified by the global OUTBOUNDTRUNK

exten => _9NXXXXXX,1,DIAL(${OUTBOUND}/${EXTEN:1})

;if the call is unsuccessfull, Congestion plays fast busy

exten=> _9NXXXXXX,3,Congestion();

;if the call is busy (priority 1 + 101) then Congestion plays fast busy

exten=> _9NXXXXXX,102,Congestion();

Open in new window

Question by:paries
    LVL 36

    Expert Comment

    Connect to asterisk using 'asterisk -r -vvv' and paste here what is displayed when you make the call and the other party hangs up.

    Author Comment

    when i place the call i see on the console
        -- Executing [95410000@internal:1] Dial("SIP/RandySip-b7604ed8", "Zap/1/5410000") in new stack
        -- Called 1/5410000
        -- Zap/1-1 answered SIP/RandySip-b7604ed8
        -- Hungup 'Zap/1-1'

    then it is connected

    when i hang up the the phone that was called, nothing is on the console, and i hear a fast busy in the softphone.

    so then i hang up the soft phone and this displays on the console

    == Spawn extension (internal, 95410000, 1) exited non-zero on 'SIP/RandySip-b7604ed8'

    LVL 36

    Expert Comment

    It looks like a fault with the SIP softphone you are using. Asterisk is detecting the hangup at one end and will signal that through to the SIP phone which should then hang up itself and either go quiet or play a dial tone.

    Author Comment

    I am a little confused.

    and it may be how i cut and pasted below.

    when i hang up my cell phone (the number that is being called), nothing appears on the console..

    the asterisk does not seem to know i have hung up

    the console entry
    -- Hungup 'Zap/1-1'
    == Spawn extension (internal, 95410864, 1) exited non-zero on 'SIP/RandySip-b7604ed8'

    only gets displayed after the sip phone gets the fast busy and then i manually hang it up

    in error i put the -- Hungup 'Zap/1-1' in the wrong place in my message above

    LVL 36

    Expert Comment

    If you dial a regular number instead of a cell phone I assume it does the same?

    What sort of zap interface are you using? I assume its an analogue phone line?

    Check /etc/zaptel.conf and make sure the loadzone= and defaultzone= are correct for the country you are in. This is important in order to be able to detect various tones such as the dialtone heard when someone hangs up.

    Author Comment

    when i call my home land line it behavies a little differently

    when i hangup the phone still nothing on the console, but then 15,20 seconds later
    i get on the console
        -- Hungup 'Zap/1-1'
      == Spawn extension (internal, 97229251, 1) exited non-zero on 'SIP/RandySip-b7604ed8'

    this is my /etc/zaptel.conf
    # Autogenerated by /usr/sbin/genzaptelconf -- do not hand edit
    # Zaptel Configuration File
    # This file is parsed by the Zaptel Configurator, ztcfg

    # It must be in the module loading order

    # Span 1: WCTDM/0 "Wildcard TDM410P Board 1" (MASTER)
    # channel 2, WCTDM, no module.
    # channel 3, WCTDM, no module.
    # channel 4, WCTDM, no module.

    # Global data

    loadzone        = us
    defaultzone     = us
    LVL 36

    Expert Comment

    I assume you are in the US?

    What make and model of telephone card do you have?

    Author Comment

    yes i am in the US.
    well kindof, i am in the south :-)
    the card is a TM410P with one FXO module that is connected to a POTS line.

    LVL 36

    Accepted Solution

    It is something which is probably the most difficult to get working properly of analogue lines.

    For an overview of a few disconnection techniques have a look at :-

    You can change from using kewlstart signalling to groundstart by editing /etc/zaptel.conf and /etc/asterisk/zapata.conf and changing fxs_ks/fxsks to fxs_gs/fxsgs respectivly. You will have to restart asterisk and zaptel so better off rebooting the box to make sure.

    If your telco does battery (polarity) reversal on hangup then you can set 'hanguponpolarityswitch=yes' in zapata.conf.

    If all that fails you can try a few different values of rxwink= in zapata.conf.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    So you think no one can listen in on your VOIP conversations, eh? Well... if you haven't setup Secure Real Time Transport (SRTP), your voice communications can be hacked into by just about anyone! First, let's talk about the intended audience for…
    Almost all Internet protocol telephones have built-in switches at the back that allow you to connect your personal computer to one port and use the other port to connect your phone to to a Cisco switch.   Why we need to connect the PC to the pho…
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    794 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now