Your call cannot be completed as dialed but trunk line is on?

I am using voipo.com for my lines I connected freepbx to voipo and on there website it says the PBX is online but when I try to make or receive any calls it does not work what am I doing wrong ?

PEER Details outgoing:
username=goes here
type=peer
secret=goes here
qualify=2000
nat=no
insecure=port,invite
host=sip.voipwelcome.com
dtmfmode=auto
context=from-trunk
canreinvite=no


incoming:

USER Details is blank

Register String : phonenumber:[email protected]:5060/phonenuber ?

Any chance you could post the log file of you attempting to make a call out? If you can call in, and you get some log activity, post that as well.
(make sure you change any passwords or confidential phone numbers before you do)

can you please tell me where do I go about finding the log files ? Thanks.

found the log I am going to post it now.

Click on REPORTS -> Asterisk LogFiles
You SHOULD see a bunch of text in a black window.

Make a note of the time you make the call, then copy the text from that log file to the forum for that time frame (usually about 100 lines of codes)

BUT please use a text editor first and do a find/replace to substitute any sensitive information like phone numbers or passwords before pasting it onto the internet! This is an easy way to get hacked by posting passwords, or your personal phone number. Its all in clear text so you should be able to easily change it in Notepad or something similar to your computer.

[2017-02-03 00:15:22] NOTICE[9096] res_fax.c: Configuration file 'res_fax.conf' not found, not changing options.
[2017-02-03 00:15:22] VERBOSE[9096] loader.c: Reloading module 'res_config_mysql.so' (MySQL RealTime Configuration Driver)
[2017-02-03 00:15:22] VERBOSE[9096] res_config_mysql.c: MySQL RealTime reloaded.
[2017-02-03 00:15:22] VERBOSE[9096] loader.c: Reloading module 'res_config_curl.so' (Realtime Curl configuration)
[2017-02-03 00:15:22] VERBOSE[9096] loader.c: Reloading module 'res_rtp_asterisk.so' (Asterisk RTP Stack)
[2017-02-03 00:15:22] VERBOSE[9096] config.c: Parsing '/etc/asterisk/rtp.conf': Found
[2017-02-03 00:15:22] VERBOSE[9096] config.c: Parsing '/etc/asterisk/rtp_additional.conf': Found
[2017-02-03 00:15:22] VERBOSE[9096] config.c: Parsing '/etc/asterisk/rtp_custom.conf': Found
[2017-02-03 00:15:22] VERBOSE[9096] res_rtp_asterisk.c: RTP Allocating from port range 10000 -> 20000
[2017-02-03 00:15:22] VERBOSE[9096] loader.c: Reloading module 'res_musiconhold.so' (Music On Hold Resource)
[2017-02-03 00:15:22] VERBOSE[9096] config.c: Parsing '/etc/asterisk/musiconhold.conf': Found
[2017-02-03 00:15:22] VERBOSE[9096] config.c: Parsing '/etc/asterisk/musiconhold_custom.conf': Found
[2017-02-03 00:15:22] VERBOSE[9096] config.c: Parsing '/etc/asterisk/musiconhold_additional.conf': Found
[2017-02-03 00:15:22] VERBOSE[9096] loader.c: Reloading module 'chan_motif.so' (Motif Jingle Channel Driver)
[2017-02-03 00:15:22] VERBOSE[9096] config.c: Parsing '/etc/asterisk/motif.conf': Found
[2017-02-03 00:15:22] VERBOSE[9096] config.c: Parsing '/etc/asterisk/motif_custom.conf': Found
[2017-02-03 00:15:22] VERBOSE[9096] loader.c: Reloading module 'chan_iax2.so' (Inter Asterisk eXchange (Ver 2))
[2017-02-03 00:15:22] VERBOSE[9096] config.c: Parsing '/etc/asterisk/iax.conf': Found
[2017-02-03 00:15:22] VERBOSE[9096] config.c: Parsing '/etc/asterisk/iax_general_additional.conf': Found
[2017-02-03 00:15:22] VERBOSE[9096] config.c: Parsing '/etc/asterisk/iax_general_custom.conf': Found
[2017-02-03 00:15:22] VERBOSE[9096] config.c: Parsing '/etc/asterisk/iax_registrations_custom.conf': Found
[2017-02-03 00:15:22] VERBOSE[9096] config.c: Parsing '/etc/asterisk/iax_registrations.conf': Found
[2017-02-03 00:15:22] VERBOSE[9096] config.c: Parsing '/etc/asterisk/iax_custom.conf': Found
[2017-02-03 00:15:22] VERBOSE[9096] config.c: Parsing '/etc/asterisk/iax_additional.conf': Found
[2017-02-03 00:15:22] VERBOSE[9096] config.c: Parsing '/etc/asterisk/iax_custom_post.conf': Found
[2017-02-03 00:15:22] NOTICE[9096] iax2/provision.c: No IAX provisioning configuration found, IAX provisioning disabled.
[2017-02-03 00:15:22] VERBOSE[9096] loader.c: Reloading module 'chan_sip.so' (Session Initiation Protocol (SIP))
[2017-02-03 00:15:22] VERBOSE[2013] chan_sip.c: Reloading SIP
[2017-02-03 00:15:22] VERBOSE[2013] config.c: Parsing '/etc/asterisk/sip.conf': Found
[2017-02-03 00:15:22] VERBOSE[2013] config.c: Parsing '/etc/asterisk/sip_general_additional.conf': Found
[2017-02-03 00:15:22] VERBOSE[2013] config.c: Parsing '/etc/asterisk/sip_general_custom.conf': Found
[2017-02-03 00:15:22] VERBOSE[2013] config.c: Parsing '/etc/asterisk/sip_nat.conf': Found
[2017-02-03 00:15:22] VERBOSE[2013] config.c: Parsing '/etc/asterisk/sip_registrations_custom.conf': Found
[2017-02-03 00:15:22] VERBOSE[2013] config.c: Parsing '/etc/asterisk/sip_registrations.conf': Found
[2017-02-03 00:15:22] VERBOSE[2013] config.c: Parsing '/etc/asterisk/sip_custom.conf': Found
[2017-02-03 00:15:22] VERBOSE[2013] config.c: Parsing '/etc/asterisk/sip_additional.conf': Found
[2017-02-03 00:15:22] VERBOSE[2013] config.c: Parsing '/etc/asterisk/sip_custom_post.conf': Found
[2017-02-03 00:15:22] VERBOSE[2013] netsock2.c: Using SIP TOS bits 96
[2017-02-03 00:15:22] VERBOSE[2013] netsock2.c: Using SIP CoS mark 4
[2017-02-03 00:15:22] VERBOSE[9096] loader.c: Reloading module 'res_adsi.so' (ADSI Resource)
[2017-02-03 00:15:22] VERBOSE[9096] loader.c: Reloading module 'app_confbridge.so' (Conference Bridge Application)
[2017-02-03 00:15:22] VERBOSE[9096] config.c: Parsing '/etc/asterisk/confbridge.conf': Found
[2017-02-03 00:15:22] VERBOSE[9096] config.c: Parsing '/etc/asterisk/confbridge_additional.conf': Found
[2017-02-03 00:15:22] VERBOSE[9096] config.c: Parsing '/etc/asterisk/confbridge_custom.conf': Found
[2017-02-03 00:15:22] NOTICE[9096] confbridge/conf_config_parser.c: Adding default_menu menu to app_confbridge
[2017-02-03 00:15:22] VERBOSE[9096] loader.c: Reloading module 'cel_odbc.so' (ODBC CEL backend)
[2017-02-03 00:15:22] VERBOSE[9096] config.c: Parsing '/etc/asterisk/cel_odbc.conf': Found
[2017-02-03 00:15:22] VERBOSE[9096] config.c: Parsing '/etc/asterisk/cel_odbc_custom.conf': Found
[2017-02-03 00:15:23] VERBOSE[9096] cel_odbc.c: Found CEL table [email protected]
[2017-02-03 00:15:23] VERBOSE[9096] loader.c: Reloading module 'cel_manager.so' (Asterisk Manager Interface CEL Backend)
[2017-02-03 00:15:23] VERBOSE[9096] config.c: Parsing '/etc/asterisk/cel.conf': Found
[2017-02-03 00:15:23] VERBOSE[9096] config.c: Parsing '/etc/asterisk/cel_general_additional.conf': Found
[2017-02-03 00:15:23] VERBOSE[9096] config.c: Parsing '/etc/asterisk/cel_general_custom.conf': Found
[2017-02-03 00:15:23] WARNING[2013] chan_sip.c: Section '' lacks type
[2017-02-03 00:15:23] WARNING[2013] chan_sip.c: Section '' lacks type
[2017-02-03 00:15:23] VERBOSE[9096] config.c: Parsing '/etc/asterisk/cel_custom_post.conf': Found
[2017-02-03 00:15:23] VERBOSE[9096] loader.c: Reloading module 'app_voicemail.so' (Comedian Mail (Voicemail System))
[2017-02-03 00:15:23] VERBOSE[9096] config.c: Parsing '/etc/asterisk/voicemail.conf': Found
[2017-02-03 00:15:23] WARNING[9096] app_voicemail.c: maxsilence should be less than minsecs or you may get empty messages
[2017-02-03 00:15:23] VERBOSE[9096] loader.c: Reloading module 'app_playback.so' (Sound File Playback Application)
[2017-02-03 00:15:23] VERBOSE[9096] loader.c: Reloading module 'codec_speex.so' (Speex Coder/Decoder)
[2017-02-03 00:15:23] VERBOSE[9096] loader.c: Reloading module 'app_queue.so' (True Call Queueing)
[2017-02-03 00:15:23] NOTICE[9096] app_queue.c: No queuerules.conf file found, queues will not follow penalty rules
[2017-02-03 00:15:23] VERBOSE[9096] config.c: Parsing '/etc/asterisk/queues.conf': Found
[2017-02-03 00:15:23] VERBOSE[9096] config.c: Parsing '/etc/asterisk/queues_general_additional.conf': Found
[2017-02-03 00:15:23] VERBOSE[9096] config.c: Parsing '/etc/asterisk/queues_custom_general.conf': Found
[2017-02-03 00:15:23] VERBOSE[9096] config.c: Parsing '/etc/asterisk/queues_custom.conf': Found
[2017-02-03 00:15:23] VERBOSE[9096] config.c: Parsing '/etc/asterisk/queues_additional.conf': Found
[2017-02-03 00:15:23] VERBOSE[2013] config.c: Parsing '/etc/asterisk/sip_notify.conf': Found
[2017-02-03 00:15:23] VERBOSE[2013] config.c: Parsing '/etc/asterisk/sip_notify_custom.conf': Found
[2017-02-03 00:15:23] VERBOSE[2013] config.c: Parsing '/etc/asterisk/sip_notify_additional.conf': Found
[2017-02-03 00:15:23] VERBOSE[9096] config.c: Parsing '/etc/asterisk/queues_post_custom.conf': Found
[2017-02-03 00:15:23] VERBOSE[9096] asterisk.c: Remote UNIX connection disconnected
[2017-02-03 00:16:31] VERBOSE[2013] chan_sip.c: Unregistered SIP '1001'
[2017-02-03 00:17:21] VERBOSE[2013] chan_sip.c: Registered SIP '1001' at 192.168.1.11:5060
[2017-02-03 00:17:22] VERBOSE[2013] chan_sip.c: Registered SIP '1002' at 192.168.1.11:5062
[2017-02-03 00:17:22] NOTICE[2013] chan_sip.c: Peer '1002' is now Reachable. (8ms / 2000ms)
[2017-02-03 00:17:52] VERBOSE[2013] chan_sip.c: Unregistered SIP '1001'
[2017-02-03 00:17:52] VERBOSE[2013] chan_sip.c: Unregistered SIP '1002'
[2017-02-03 00:18:42] VERBOSE[2013] chan_sip.c: Registered SIP '1001' at 192.168.1.11:5060
[2017-02-03 00:18:42] VERBOSE[2013] chan_sip.c: Registered SIP '1002' at 192.168.1.11:5062
[2017-02-03 00:18:42] NOTICE[2013] chan_sip.c: Peer '1001' is now Reachable. (30ms / 2000ms)
[2017-02-03 00:18:42] NOTICE[2013] chan_sip.c: Peer '1002' is now Reachable. (8ms / 2000ms)
[2017-02-03 00:19:08] VERBOSE[2013][C-00000008] netsock2.c: Using SIP RTP TOS bits 184
[2017-02-03 00:19:08] VERBOSE[2013][C-00000008] netsock2.c: Using SIP RTP CoS mark 5
[2017-02-03 00:19:08] VERBOSE[9328][C-00000008] pbx.c: Executing [@from-internal:1] ResetCDR("SIP/1002-00000007", "") in new stack
[2017-02-03 00:19:08] VERBOSE[9328][C-00000008] pbx.c: Executing [@from-internal:2] NoCDR("SIP/1002-00000007", "") in new stack
[2017-02-03 00:19:08] VERBOSE[9328][C-00000008] pbx.c: Executing [@from-internal:3] Progress("SIP/1002-00000007", "") in new stack
[2017-02-03 00:19:08] VERBOSE[9328][C-00000008] pbx.c: Executing [@from-internal:4] Wait("SIP/1002-00000007", "1") in new stack
[2017-02-03 00:19:09] VERBOSE[9328][C-00000008] pbx.c: Executing [@from-internal:5] Playback("SIP/1002-00000007", "silence/1&cannot-complete-as-dialed&check-number-dial-again,noanswer") in new stack
[2017-02-03 00:19:09] VERBOSE[9328][C-00000008] file.c: <SIP/1002-00000007> Playing 'silence/1.ulaw' (language 'en')
[2017-02-03 00:19:10] VERBOSE[9328][C-00000008] file.c: <SIP/1002-00000007> Playing 'cannot-complete-as-dialed.ulaw' (language 'en')
[2017-02-03 00:19:11] VERBOSE[9328][C-00000008] file.c: <SIP/1002-00000007> Playing 'check-number-dial-again.ulaw' (language 'en')
[2017-02-03 00:19:11] VERBOSE[9328][C-00000008] pbx.c: Executing [[email protected]:1] Macro("SIP/1002-00000007", "hangupcall") in new stack
[2017-02-03 00:19:11] VERBOSE[9328][C-00000008] pbx.c: Executing [[email protected]:1] GotoIf("SIP/1002-00000007", "1?theend") in new stack
[2017-02-03 00:19:11] VERBOSE[9328][C-00000008] pbx_builtins.c: Goto (macro-hangupcall,s,3)
[2017-02-03 00:19:11] VERBOSE[9328][C-00000008] pbx.c: Executing [[email protected]:3] ExecIf("SIP/1002-00000007", "0?Set(CDR(recordingfile)=)") in new stack
[2017-02-03 00:19:11] VERBOSE[9328][C-00000008] pbx.c: Executing [[email protected]:4] Hangup("SIP/1002-00000007", "") in new stack
[2017-02-03 00:19:11] VERBOSE[9328][C-00000008] app_macro.c: Spawn extension (macro-hangupcall, s, 4) exited non-zero on 'SIP/1002-00000007' in macro 'hangupcall'
[2017-02-03 00:19:11] VERBOSE[9328][C-00000008] pbx.c: Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/1002-00000007'

I hope this was not to long .

The log isn’t showing me a lot, i see the call failing.
I assume you 1001 can call 1002 and vice versa?

Have you setup an outbound route that points to your trunk?

I setup an outbound route I also setup 2 ext 1001 and 1002.

outbound route

outbound route

so extensions call each other ok?

Let me try to call ext to ext

That worked only to call ext to ext.

any ideas?

When I call out from the PBX it was your call can not be completed please check the number and try again
when I call from a cell from to the PBX all I get is a busy tone.

Hi!

You are in New York (the state)?

Your dialing patterns of your outbound route are wrong…

Assuming you want to always dial out a number on your trunk in the form 15165551212, where you put the “1516” put the “1” and where you put the “1” put the “1516”…

Currently, you told your system to add “1516” to a number which already has an area code and to add a “1” to a number which doesn’t have an area code…

You might also want to add entries for numbers which already have “1” in front of them…

Good luck and have a nice day!

Nick

Hi Marbled,

I am in New York.

The way your dialing patterns currently are you end up calling

15165165551212 when you call 5165551212

and you end up calling

15551212 when you call 5551212…

Put the “1” in the place where the “1516” is and vice versa…

Add a “1NXXNXXXXXX” too in case someone dials 15165551212 (which is perfectly acceptable)…

Your 911 entries are “interesting” but I guess you want to make sure that people who don’t know they can simply call “911” and might try to precede it with a “9” for an outside line (or something similar) are going to reach the emergency services…

Good luck and have a nice day!

Nick

Thanks still not working