Can't make calls

hello everybody, i’m new on asterisk
i installed Elastix FreePBX and i make some’s config, but i have problems on make calls

sorry for my anglais :slight_smile:

that what out :

– Called SIP/bitcall/916215515
== Everyone is busy/congested at this time (1:0/0/1)
– Executing [s@macro-dialout-trunk:23] NoOp(“SIP/1000-0000001a”, “Dial failed for some reason with DIALSTATUS = CHANUNAVAIL and HANGUPCAUSE = 58”) in new stack
– Executing [s@macro-dialout-trunk:24] GotoIf(“SIP/1000-0000001a”, “0?continue,1:s-CHANUNAVAIL,1”) in new stack
– Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
– Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] Set(“SIP/1000-0000001a”, “RC=58”) in new stack
– Executing [s-CHANUNAVAIL@macro-dialout-trunk:2] Goto(“SIP/1000-0000001a”, “58,1”) in new stack
– Goto (macro-dialout-trunk,58,1)
– Executing [58@macro-dialout-trunk:1] Goto(“SIP/1000-0000001a”, “continue,1”) in new stack
– Goto (macro-dialout-trunk,continue,1)
– Executing [continue@macro-dialout-trunk:1] NoOp(“SIP/1000-0000001a”, “TRUNK Dial failed due to CHANUNAVAIL HANGUPCAUSE: 58 - failing through to other trunks”) in new stack
– Executing [continue@macro-dialout-trunk:2] Set(“SIP/1000-0000001a”, “CALLERID(number)=1000”) in new stack
– Executing [0916215515@from-internal:6] Macro(“SIP/1000-0000001a”, “outisbusy,”) in new stack
– Executing [s@macro-outisbusy:1] Progress(“SIP/1000-0000001a”, “”) in new stack
– Executing [s@macro-outisbusy:2] GotoIf(“SIP/1000-0000001a”, “0?emergency,1”) in new stack
– Executing [s@macro-outisbusy:3] GotoIf(“SIP/1000-0000001a”, “0?intracompany,1”) in new stack
– Executing [s@macro-outisbusy:4] Playback(“SIP/1000-0000001a”, “all-circuits-busy-now&pls-try-call-later, noanswer”) in new stack
– <SIP/1000-0000001a> Playing ‘all-circuits-busy-now.gsm’ (language ‘au’)
> 0x99a8478 – Probation passed - setting RTP source address to 192.168.1.249:12592
== Spawn extension (macro-outisbusy, s, 4) exited non-zero on ‘SIP/1000-0000001a’ in macro ‘outisbusy’
== Spawn extension (from-internal, 0916215515, 6) exited non-zero on ‘SIP/1000-0000001a’
– Executing [h@from-internal:1] Hangup(“SIP/1000-0000001a”, “”) in new stack
== Spawn extension (from-internal, h, 1) exited non-zero on ‘SIP/1000-0000001a’

not enough data to help you. all i can say is that there is something wrong with your trunk. it looks like you are sending 916215515 as the number you want to dial and your sip provider is rejecting it.

if the number is correct, then talk to your sip provider and ask them why they are rejecting the call

thank u for responding :slight_smile:
i resolving that error ,
but now i found another erro its about media codec

any idea ?

[2016-08-03 17:55:51] WARNING[5041][C-0000001e]: chan_sip.c:10105 process_sdp: Ignoring video stream offer because port number is zero
– SIP/bitcall-00000033 answered SIP/1000-00000032
> 0xb6ec5e88 – Probation passed - setting RTP source address to 176.32.51.18:10054
[2016-08-03 17:55:51] WARNING[6018][C-0000001e]: channel.c:5355 set_format: Unable to find a codec translation path from (g729) to (alaw)
[2016-08-03 17:55:51] WARNING[6018][C-0000001e]: channel.c:5355 set_format: Unable to find a codec translation path from (g729) to (alaw)
[2016-08-03 17:55:51] WARNING[6018][C-0000001e]: codec_gsm.c:104 gsmtolin_framein: Invalid GSM data (1)
[2016-08-03 17:55:51] WARNING[6018][C-0000001e]: translate.c:362 framein: gsmtolin did not update samples 0
[2016-08-03 17:55:51] WARNING[6018][C-0000001e]: codec_gsm.c:104 gsmtolin_framein: Invalid GSM data (1)
[2016-08-03 17:55:51] WARNING[6018][C-0000001e]: translate.c:362 framein: gsmtolin did not update samples 0
> 0x98d5340 – Probation passed - setting RTP source address to 192.168.1.249:10426
[2016-08-03 17:55:51] WARNING[6018][C-0000001e]: chan_sip.c:7158 sip_write: Asked to transmit frame type gsm, while native formats is (g729) read/write = alaw/alaw
[2016-08-03 17:55:51] WARNING[6018][C-0000001e]: codec_gsm.c:104 gsmtolin_framein: Invalid GSM data (1)
[2016-08-03 17:55:51] WARNING[6018][C-0000001e]: translate.c:362 framein: gsmtolin did not update samples 0
[2016-08-03 17:55:51] WARNING[6018][C-0000001e]: chan_sip.c:7158 sip_write: Asked to transmit frame type gsm, while native formats is (g729) read/write = alaw/alaw
[2016-08-03 17:55:51] WARNING[6018][C-0000001e]: codec_gsm.c:104 gsmtolin_framein: Invalid GSM data (1)
[2016-08-03 17:55:51] WARNING[6018][C-0000001e]: translate.c:362 framein: gsmtolin did not update samples 0
[2016-08-03 17:55:51] WARNING[6018][C-0000001e]: chan_sip.c:7158 sip_write: Asked to transmit frame type gsm, while native formats is (g729) read/write = alaw/alaw
[2016-08-03 17:55:51] WARNING[6018][C-0000001e]: codec_gsm.c:104 gsmtolin_framein: Invalid GSM data (1)
[2016-08-03 17:55:51] WARNING[6018][C-0000001e]: translate.c:362 framein: gsmtolin did not update samples 0
[2016-08-03 17:55:51] WARNING[6018][C-0000001e]: chan_sip.c:7158 sip_write: Asked to transmit frame type gsm, while native formats is (g729) read/write = alaw/alaw
[2016-08-03 17:55:51] WARNING[6018][C-0000001e]: chan_sip.c:7158 sip_write: Asked to transmit frame type gsm, while native formats is (g729) read/write = alaw/alaw
[2016-08-03 17:55:51] WARNING[6018][C-0000001e]: codec_gsm.c:104 gsmtolin_framein: Invalid GSM data (1)
[2016-08-03 17:55:51] WARNING[6018][C-0000001e]: translate.c:362 framein: gsmtolin did not update samples 0
[2016-08-03 17:55:51] WARNING[6018][C-0000001e]: chan_sip.c:7158 sip_write: Asked to transmit frame type gsm, while native formats is (g729) read/write = alaw/alaw
[2016-08-03 17:55:51] WARNING[6018][C-0000001e]: codec_gsm.c:104 gsmtolin_framein: Invalid GSM data (1)
[2016-08-03 17:55:51] WARNING[6018][C-0000001e]: translate.c:362 framein: gsmtolin did not update samples 0
[2016-08-03 17:55:51] WARNING[6018][C-0000001e]: codec_gsm.c:104 gsmtolin_framein: Invalid GSM data (1)
[2016-08-03 17:55:51] WARNING[6018][C-0000001e]: translate.c:362 framein: gsmtolin did not update samples 0
[2016-08-03 17:55:51] WARNING[6018][C-0000001e]: chan_sip.c:7158 sip_write: Asked to transmit frame type gsm, while native formats is (g729) read/write = alaw/alaw
[2016-08-03 17:55:51] WARNING[6018][C-0000001e]: codec_gsm.c:104 gsmtolin_framein: Invalid GSM data (1)
[2016-08-03 17:55:51] WARNING[6018][C-0000001e]: translate.c:362 framein: gsmtolin did not update samples 0
[2016-08-03 17:55:51] WARNING[6018][C-0000001e]: chan_sip.c:7158 sip_write: Asked to transmit frame type gsm, while native formats is (g729) read/write = alaw/alaw
[2016-08-03 17:55:51] WARNING[6018][C-0000001e]: codec_gsm.c:104 gsmtolin_framein: Invalid GSM data (1)
[2016-08-03 17:55:51] WARNING[6018][C-0000001e]: translate.c:362 framein: gsmtolin did not update samples 0
[2016-08-03 17:55:51] WARNING[6018][C-0000001e]: chan_sip.c:7158 sip_write: Asked to transmit frame type gsm, while native formats is (g729) read/write = alaw/alaw
[2016-08-03 17:55:51] WARNING[6018][C-0000001e]: codec_gsm.c:104 gsmtolin_framein: Invalid GSM data (1)
[2016-08-03 17:55:51] WARNING[6018][C-0000001e]: translate.c:362 framein: gsmtolin did not update samples 0
[2016-08-03 17:55:51] WARNING[6018][C-0000001e]: chan_sip.c:7158 sip_write: Asked to transmit frame type gsm, while native formats is (g729) read/write = alaw/alaw
[2016-08-03 17:55:51] WARNING[6018][C-0000001e]: codec_gsm.c:104 gsmtolin_framein: Invalid GSM data (1)
[2016-08-03 17:55:51] WARNING[6018][C-0000001e]: translate.c:362 framein: gsmtolin did not update samples 0
[2016-08-03 17:55:51] WARNING[6018][C-0000001e]: chan_sip.c:7158 sip_write: Asked to transmit frame type gsm, while native formats is (g729) read/write = alaw/alaw
[2016-08-03 17:55:51] WARNING[6018][C-0000001e]: codec_gsm.c:104 gsmtolin_framein: Invalid GSM data (1)
[2016-08-03 17:55:51] WARNING[6018][C-0000001e]: translate.c:362 framein: gsmtolin did not update samples 0
[2016-08-03 17:55:51] WARNING[6018][C-0000001e]: chan_sip.c:7158 sip_write: Asked to transmit frame type gsm, while native formats is (g729) read/write = alaw/alaw
[2016-08-03 17:55:51] WARNING[6018][C-0000001e]: codec_gsm.c:104 gsmtolin_framein: Invalid GSM data (1)
[2016-08-03 17:55:51] WARNING[6018][C-0000001e]: translate.c:362 framein: gsmtolin did not update samples 0
[2016-08-03 17:55:51] WARNING[6018][C-0000001e]: chan_sip.c:7158 sip_write: Asked to transmit frame type gsm, while native formats is (g729) read/write = alaw/alaw
[2016-08-03 17:55:51] WARNING[6018][C-0000001e]: codec_gsm.c:104 gsmtolin_framein: Invalid GSM data (1)
[2016-08-03 17:55:51] WARNING[6018][C-0000001e]: translate.c:362 framein: gsmtolin did not update samples 0
[2016-08-03 17:55:51] WARNING[6018][C-0000001e]: chan_sip.c:7158 sip_write: Asked to transmit frame type gsm, while native formats is (g729) read/write = alaw/alaw
[2016-08-03 17:55:51] WARNING[6018][C-0000001e]: codec_gsm.c:104 gsmtolin_framein: Invalid GSM data (1)
[2016-08-03 17:55:51] WARNING[6018][C-0000001e]: translate.c:362 framein: gsmtolin did not update samples 0
[2016-08-03 17:55:51] WARNING[6018][C-0000001e]: chan_sip.c:7158 sip_write: Asked to transmit frame type gsm, while native formats is (g729) read/write = alaw/alaw
[2016-08-03 17:55:51] WARNING[6018][C-0000001e]: codec_gsm.c:104 gsmtolin_framein: Invalid GSM data (1)
[2016-08-03 17:55:51] WARNING[6018][C-0000001e]: translate.c:362 framein: gsmtolin did not update samples 0
[2016-08-03 17:55:51] WARNING[6018][C-0000001e]: chan_sip.c:7158 sip_write: Asked to transmit frame type gsm, while native formats is (g729) read/write = alaw/alaw
[2016-08-03 17:55:51] WARNING[6018][C-0000001e]: codec_gsm.c:104 gsmtolin_framein: Invalid GSM data (1)

tnk u so mush :slight_smile:

that my PEER Details

username=sipusr
useragent=portasipfriendly
type=peer
secret=pw
qualify=yes
host=sipxxxxxxxxxxxxxxxxx.com
fromuser=sipusr
context=from-trunk

add the codec stuff

disallow=all
allow= list the codecs that your provider will allow - probably you could list ulaw,alaw and it would work but again check with your provider

now the call’s dont work

that what show on ssh

== Everyone is busy/congested at this time (1:0/0/1)
– Executing [s@macro-dialout-trunk:23] NoOp(“SIP/1000-00000050”, “Dial failed for some reason with DIALSTATUS = CHANUNAVAIL and HANGUPCAUSE = 58”) in new stack
– Executing [s@macro-dialout-trunk:24] GotoIf(“SIP/1000-00000050”, “0?continue,1:s-CHANUNAVAIL,1”) in new stack
– Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
– Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] Set(“SIP/1000-00000050”, “RC=58”) in new stack
– Executing [s-CHANUNAVAIL@macro-dialout-trunk:2] Goto(“SIP/1000-00000050”, “58,1”) in new stack
– Goto (macro-dialout-trunk,58,1)
– Executing [58@macro-dialout-trunk:1] Goto(“SIP/1000-00000050”, “continue,1”) in new stack
– Goto (macro-dialout-trunk,continue,1)
– Executing [continue@macro-dialout-trunk:1] NoOp(“SIP/1000-00000050”, “TRUNK Dial failed due to CHANUNAVAIL HANGUPCAUSE: 58 - failing through to other trunks”) in new stack
– Executing [continue@macro-dialout-trunk:2] Set(“SIP/1000-00000050”, “CALLERID(number)=1000”) in new stack
– Executing [0918372779@from-internal:6] Macro(“SIP/1000-00000050”, “outisbusy,”) in new stack
– Executing [s@macro-outisbusy:1] Progress(“SIP/1000-00000050”, “”) in new stack
– Executing [s@macro-outisbusy:2] GotoIf(“SIP/1000-00000050”, “0?emergency,1”) in new stack
– Executing [s@macro-outisbusy:3] GotoIf(“SIP/1000-00000050”, “0?intracompany,1”) in new stack
– Executing [s@macro-outisbusy:4] Playback(“SIP/1000-00000050”, “all-circuits-busy-now&pls-try-call-later, noanswer”) in new stack
– <SIP/1000-00000050> Playing ‘all-circuits-busy-now.gsm’ (language ‘au’)
> 0x9964420 – Probation passed - setting RTP source address to 192.168.1.249:30042
– <SIP/1000-00000050> Playing ‘pls-try-call-later.gsm’ (language ‘au’)
== Spawn extension (macro-outisbusy, s, 4) exited non-zero on ‘SIP/1000-00000050’ in macro ‘outisbusy’
== Spawn extension (from-internal, 0918372779, 6) exited non-zero on ‘SIP/1000-00000050’
– Executing [h@from-internal:1] Hangup(“SIP/1000-00000050”, “”) in new stack

Bksales , thank u a lot
now evry things its ok i add
disallow=all
allow=ulaw,alaw,gsm
tnk u for ur time :slight_smile: :slight_smile: