Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

when an outgoing call hangs up i get a fast busy

Posted on 2009-02-23
9
Medium Priority
?
406 Views
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

[globals]
RANDY=SIP/RandySip
OUTBOUND=Zap/1
 
[internal]
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
;-----------------------------------------
[outbound-local]
 
;${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

0
Comment
Question by:paries
  • 5
  • 4
9 Comments
 
LVL 36

Expert Comment

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

Author Comment

by:paries
ID: 23721754
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'

Thanks
0
 
LVL 36

Expert Comment

by:grblades
ID: 23721971
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.
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

Author Comment

by:paries
ID: 23722189
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

RP
0
 
LVL 36

Expert Comment

by:grblades
ID: 23722841
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.
0
 

Author Comment

by:paries
ID: 23723115
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)
fxsks=1
# channel 2, WCTDM, no module.
# channel 3, WCTDM, no module.
# channel 4, WCTDM, no module.

# Global data

loadzone        = us
defaultzone     = us
0
 
LVL 36

Expert Comment

by:grblades
ID: 23723169
I assume you are in the US?

What make and model of telephone card do you have?
0
 

Author Comment

by:paries
ID: 23723307
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.

0
 
LVL 36

Accepted Solution

by:
grblades earned 2000 total points
ID: 23724413
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 :-
http://www.cisco.com/en/US/tech/tk652/tk653/technologies_tech_note09186a00800ae2d1.shtml

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.
0

Featured Post

Meet the Family that is Made for Collaboration

The TeamConnect Family product group as part of the Sennheiser for Business Portfolio comprising high-quality, technically well-conceived meeting solutions for business communication – designed for any meeting room and any meeting situation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The point of this post is to give you a copy/paste installation solution to setting up Asterisk 1.6 on Ubuntu 9.04 (or similar) server. # Setup the system apt-get install subversion apt-get install make apt-get install linux-source kernel-p…
There are no good configuration guides for HP-H3C router to LYNC on the web. :( Big statement, but we havent been able to find one yet. We did find the following document useful, but the information was not enough to use H3C router for use as a L…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…
Suggested Courses

810 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