Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] Asterisk using 100% of CPU


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
Chris at PinsonConsult...
Guest





PostPosted: Fri Apr 25, 2008 3:23 pm    Post subject: [asterisk-users] Asterisk using 100% of CPU Reply with quote

When I initiate a call from the console (Console/dsp) to a local SIP
extension, asterisk uses up 100% of the CPU until the extension
answers. It happens when using .call files or the manager API. My
examples are for the manager API, but .call files perform the same way.
Here is the 100% CPU example:

Action: Originate
Channel: Console/dsp
Context: internal
Extension: 20
Priority: 1

If I reverse the situation it gets a little better. Asterisk doesn't
use 100% of the CPU, but until SIP/exten-20 answers, the manager
interface doesn't respond. So I can't hangup the line using the manager
API if SIP/exten-20 doesn't answer. SIP/exten-20 is a SPA3102 FXS.
Here is that example:

Action: Originate
Channel: SIP/exten-20
Context: internal
Extension: 0
Priority: 1
If I initiate a call from Console/dsp to the FXO port of a SPA3102, that
works fine. Example:

Action: Originate
Channel: Console/dsp
Context: internal
Extension: 98005551212
Priority: 1

I am using asterisk is version 1.2.24. Basically I would like to be
able to use the manager API to externally initiate calls from the
console and hang them up. Any ideas here?

Here are the relevant parts of extensions.conf:

[general]
static=yes
writeprotect=no
autofallthrough=yes
clearglobalvars=no
priorityjumping=no

[globals]
CONSOLE=Console/dsp
TRUNKMSD=1

[macro-stdexten]
exten => s,1,Dial(${ARG1})
exten => s,n,Playtones(busy)
exten => s,n,Busy

[internal]
include => trunkout
exten => 0,1,Dial(${CONSOLE})
exten => 20,1,Macro(stdexten,SIP/exten-20)
exten => 21,1,Macro(stdexten,SIP/exten-21)

[trunkout]
exten => _9.,1,Dial(SIP/pstn-01/${EXTEN:1})
exten => _9.,n,Dial(SIP/pstn-02/${EXTEN:1})
exten => _9.,n,Playtones(congestion)
exten => _9.,n,Congestion
exten => _9.,n,Hangup
Back to top
tilghman at mail.jeffa...
Guest





PostPosted: Fri Apr 25, 2008 3:42 pm    Post subject: [asterisk-users] Asterisk using 100% of CPU Reply with quote

On Friday 25 April 2008 15:23:05 Chris Elliott wrote:
Quote:
If I reverse the situation it gets a little better. Asterisk doesn't
use 100% of the CPU, but until SIP/exten-20 answers, the manager
interface doesn't respond. So I can't hangup the line using the manager
API if SIP/exten-20 doesn't answer. SIP/exten-20 is a SPA3102 FXS.
Here is that example:

Action: Originate
Channel: SIP/exten-20
Context: internal
Extension: 0
Priority: 1

The reason Manager doesn't respond is that it's waiting for a result code to
give you. If you don't care, use the "Async: yes" option to the Originate
action to get AMI to continue past that point.

--
Tilghman
Back to top
anthonyf at rockynet.com
Guest





PostPosted: Fri Apr 25, 2008 5:11 pm    Post subject: [asterisk-users] Asterisk using 100% of CPU Reply with quote

Plus that originate is going to call the sip device, and upon answer
connect it to extension 0 in the internal context, is that what you wanted?

Tilghman Lesher wrote:
Quote:
On Friday 25 April 2008 15:23:05 Chris Elliott wrote:

Quote:
If I reverse the situation it gets a little better. Asterisk doesn't
use 100% of the CPU, but until SIP/exten-20 answers, the manager
interface doesn't respond. So I can't hangup the line using the manager
API if SIP/exten-20 doesn't answer. SIP/exten-20 is a SPA3102 FXS.
Here is that example:

Action: Originate
Channel: SIP/exten-20
Context: internal
Extension: 0
Priority: 1


The reason Manager doesn't respond is that it's waiting for a result code to
give you. If you don't care, use the "Async: yes" option to the Originate
action to get AMI to continue past that point.



--
Thank you and have any kind of day you want,

Anthony Francis
Rockynet VOIP
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services