Everyone is busy/congested at this time (1:0/1/0)

Hi,
I have an Asterisk 1.8 server connected to OpenIP via a Trunk SIP , the problem is that usersoften suffer from not being able to affectionately calls to mobile or fixed numbers , Asterisk on the console I get the following display:


== Using SIP RTP CoS mark 5
– Called xxxxxxxxxx@OpenIP
– SIP/OpenIP-0000069e is circuit-busy
== Everyone is busy/congested at this time (1:0/1/0)
– Executing [xxxxxxxxxx@fromme:3] Hangup(“SIP/1900-0000069d”, “”) in new stack
== Spawn extension (default, xxxxxxxxxx, 3) exited non-zero on ‘SIP/1900-0000069d’
– Executing [h@fromme:1] Hangup(“SIP/1900-0000069d”, “”) in new stack

sip.conf

[general]
localnet=xx.xx.0.0/255.255.0.0
nat=yes
qualify=yes
CONSOLE=/dev/dsp
register => yyyyy:*********@OpenIP
dtmfmode=rfc2833
canreinvite=no
bindport=5060
bindaddr=0.0.0.0
notifyringing=yes
notifyhold=yes

[OpenIP]
fromuser=xxxxxxxxxx
user=yyyyy
username=yyyyy
secret=*********
context=from-OpenIP
deny=0.0.0.0/0.0.0.0
host=xxx.xx.xx.xxx
nat=yes
permit=xxx.xx.xx.xxx/255.255.255.255
qualify=yes
canreinvite=no
type=peer
call-limit=100
insecure=port,invite
disallow=all
allow=ulaw
allow=alaw

Pleaaase help me

Why do you think that you didn’t get a busy response.

You don’t have enough verbosity enabled to see what the actual SIP result code was, and without that, the problem could be almost anything.

The numbers are total: busy / congested / unavailable.

congested is the catch all for almost everything except the a positive confirmation that the called party is busy.

thank you for the reply,

I can confirm that the number called is not busy, I’m testing on my own mobile phone. as the message is displayed almost all the time. in order to make a call one must try again to call so many times.

Here is a more detailed log: ( xxxxxxxxxx means the dialled number, yyyyyyyyyy means the callerid number)


– Executing [xxxxxxxxxx @default:1] Set(“SIP/1016-0000050f”, “CALLERID(all)=yyyyyyyyyy”) in new stack
– Executing [xxxxxxxxxx @default:2] Dial(“SIP/1016-0000050f”, "SIP/OpenIP/xxxxxxxxxx ") in new stack
== Using SIP RTP CoS mark 5
– Called OpenIP/0479885578
– SIP/OpenIP-00000510 is circuit-busy
== Everyone is busy/congested at this time (1:0/1/0)
– Executing [0479885578@default:3] Hangup(“SIP/1016-0000050f”, “”) in new stack
== Spawn extension (default, xxxxxxxxxx , 3) exited non-zero on ‘SIP/1016-0000050f’
– Executing [h@default:1] Hangup(“SIP/1016-0000050f”, “”) in new stack
== Spawn extension (default, h, 1) exited non-zero on ‘SIP/1016-0000050f’

You probably need debug level 4 or you need sip set debug on. You need to see the status code from the SIP response.

The SIP history feature will also provide enough detail, at least initially.

The value of ${HANGUPCAUSE} after the failure will give some information, but some information will have been lost.

When I turn sip debug on, I have displaying messages like this, without any active call.
what does il mean ?


<— Transmitting (NAT) to 172.23.140.227:5060 —>
SIP/2.0 200 OK
Via: SIP/2.0/UDP 172.23.140.227;branch=z9hG4bK82b75a5f431e7609c;received=172.23.140.227;rport=5060
From: “Pascal Bauge” sip:1005@172.23.129.130:5060;tag=c44d8c8b16
To: “Pascal Bauge” sip:1005@172.23.129.130:5060;tag=as57e95221
Call-ID: 31dc788d4267435f
CSeq: 29115 REGISTER
Server: Asterisk PBX 1.8.3.2
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Expires: 120
Contact: sip:1005@172.23.140.227:5060;transport=udp;expires=120
Date: Fri, 30 Sep 2011 08:23:02 GMT
Content-Length: 0

<------------>
Scheduling destruction of SIP dialog ‘31dc788d4267435f’ in 32000 ms (Method: REGISTER)

<— SIP read from UDP:172.23.140.227:5060 —>
SIP/2.0 200 OK
Via: SIP/2.0/UDP 172.23.129.130:5060;branch=z9hG4bK762452fb;rport=5060;received=172.23.129.130
From: “asterisk” sip:asterisk@172.23.129.130;tag=as38eb2279
To: sip:1005@172.23.140.227:5060;transport=udp;tag=2984145064
Call-ID: 3da96ab65832670210fe3cd17bdf751d@172.23.129.130:5060
CSeq: 102 OPTIONS
Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, OPTIONS, UPDATE, PRACK, SUBSCRIBE, INFO
Server: Aastra 53i/3.2.0.1011
Supported: path
Content-Length: 0


That’s correct. These are for registrations and for qualify (or the other side’s equivalent). Ignore them and look for the 4xx and 5xx responses to INVITEs.

Can you expalin to me what should I do to look for the 4xx and 5xx responses to INVITEs ?

I want to draw your attention to this message in Asterisk Logs (yyyyyyyyy: username of the Trunk SIP):


[Sep 30 11:25:54] NOTICE[1476] chan_sip.c: – Re-registration for yyyyyyyyy@OpenIP
[Sep 30 11:25:54] NOTICE[1476] chan_sip.c: Outbound Registration: Expiry for OpenIP is 120 sec (Scheduling reregistration in 105 s)

Any 4xx or 5xx response is a failure. Most of those will be mapped to congestion.

You need to look at them and decide:

  1. whether they are a correct reason for the call failing;
  2. whether there are any that are unreasonable, and where they suggest the problem lies.

The list of standard SIP status codes is in the SIP RFC. Googling “SIP RFC” should find that.

Until you identify the unexplained failure codes, there is rather little that one can do to suggest solutions.

This is where they are decoded into ${HANGUPCAUSE} values, which will give you some idea of the possibilities:

switch(cause) { case 401: /* Unauthorized */ return AST_CAUSE_CALL_REJECTED; case 403: /* Not found */ return AST_CAUSE_CALL_REJECTED; case 404: /* Not found */ return AST_CAUSE_UNALLOCATED; case 405: /* Method not allowed */ return AST_CAUSE_INTERWORKING; case 407: /* Proxy authentication required */ return AST_CAUSE_CALL_REJECTED; case 408: /* No reaction */ return AST_CAUSE_NO_USER_RESPONSE; case 409: /* Conflict */ return AST_CAUSE_NORMAL_TEMPORARY_FAILURE; case 410: /* Gone */ return AST_CAUSE_UNALLOCATED; case 411: /* Length required */ return AST_CAUSE_INTERWORKING; case 413: /* Request entity too large */ return AST_CAUSE_INTERWORKING; case 414: /* Request URI too large */ return AST_CAUSE_INTERWORKING; case 415: /* Unsupported media type */ return AST_CAUSE_INTERWORKING; case 420: /* Bad extension */ return AST_CAUSE_NO_ROUTE_DESTINATION; case 480: /* No answer */ return AST_CAUSE_NO_ANSWER; case 481: /* No answer */ return AST_CAUSE_INTERWORKING; case 482: /* Loop detected */ return AST_CAUSE_INTERWORKING; case 483: /* Too many hops */ return AST_CAUSE_NO_ANSWER; case 484: /* Address incomplete */ return AST_CAUSE_INVALID_NUMBER_FORMAT; case 485: /* Ambiguous */ return AST_CAUSE_UNALLOCATED; case 486: /* Busy everywhere */ return AST_CAUSE_BUSY; case 487: /* Request terminated */ return AST_CAUSE_INTERWORKING; case 488: /* No codecs approved */ return AST_CAUSE_BEARERCAPABILITY_NOTAVAIL; case 491: /* Request pending */ return AST_CAUSE_INTERWORKING; case 493: /* Undecipherable */ return AST_CAUSE_INTERWORKING; case 500: /* Server internal failure */ return AST_CAUSE_FAILURE; case 501: /* Call rejected */ return AST_CAUSE_FACILITY_REJECTED; case 502: return AST_CAUSE_DESTINATION_OUT_OF_ORDER; case 503: /* Service unavailable */ return AST_CAUSE_CONGESTION; case 504: /* Gateway timeout */ return AST_CAUSE_RECOVERY_ON_TIMER_EXPIRE; case 505: /* SIP version not supported */ return AST_CAUSE_INTERWORKING; case 600: /* Busy everywhere */ return AST_CAUSE_USER_BUSY; case 603: /* Decline */ return AST_CAUSE_CALL_REJECTED; case 604: /* Does not exist anywhere */ return AST_CAUSE_UNALLOCATED; case 606: /* Not acceptable */ return AST_CAUSE_BEARERCAPABILITY_NOTAVAIL; default: return AST_CAUSE_NORMAL;

Hi,
Thank you very much for your reply
I have not noticed anything unreasonable :frowning:
I don’t Know what to do …

If there is nothing unreasonable, there is nothing wrong and you don’t need to do anything!

The message is normal for a failed call. You now seem to say all the failures are explainable, so there is no problem.

we have 10 channels for inbound and outbound calls simultaneously with the operator OpenIP.
are they sufficient?

How does this relate to the thread?

How do you define a channel (you are using SIP, where hard limits are commercial impositions, not technical constraints)?

What is the offered traffic?

What do you consider to be an acceptable grade of service?

Hi,

My problem is solved :smile:
I told you that we use 10 channels for inbound and outbound calls simultaneously with the operator OpenIP, So We have updated the number of channels and increase up to 30 and the problem is solved :smile:

—channels is the number of incoming and outgoing calls simultaneously—

Thank you for your support,

Was monitoring this as it went on and one thing that I can suggest for anyone in the future reading this is to ask for a utilization report anytime you feel you may be reaching maximum sessions. Often your sip provider should be able to provide this for you.