Incoming calls show as answered, but the caller is dropped - asterisk

Using Asterisk 16 and a local SIP trunk provider, we can make outgoing calls, but incoming calls do not work.
If I call from my mobile, I see the call Invite on the server, and I see the call being answered. On my mobile, however, the call remains unanswered, and is then rejected.
These exact settings worked, when working on a different server (hosted locally instead of at the data center).
EXTENSIONS.CONF
[IncomingContext]
exten=>[NumberRemoved],1,NoOp(Incoming)
same=>n,Answer()
same=>n,Playback(tt-monkeys)
same=>n,HangUp()
PJSIP.CONF
[transport-udp-main]
type=transport
protocol=udp
bind=0.0.0.0:5060
;DEVICES
;TEMPLATES
[gEndpoint](!)
type=endpoint
transport=transport-udp-main
context=from-internal
disallow=all
allow=alaw
;allow=opus
;allow=alaw
[gAors](!)
type=aor
max_contacts=2
[gAuth](!)
type=auth
auth_type=userpass
[LOCAL1040](gEndpoint)
aors=LOCAL1040
auth=LOCAL1040
[LOCAL1040](gAors)
[LOCAL1040](gAuth)
username=LOCAL1040
password=#1040*
;--------TRUNK PROVIDER
[siptrunk]
type=auth
auth_type=userpass
username=USERNAME
password=PASSWORD
[siptrunk]
type=aor
contact=sip:sip.PROVIDER.co.za:5060
[siptrunk]
type=registration
outbound_auth=siptrunk
server_uri=sip:USERNAME#sip.PROVIDER.co.za:5060
client_uri=sip:USERNAME#sip.PROVIDER.co.za
contact_user=9999
[siptrunk]
type=identify
endpoint=siptrunk
match=sip.PROVIDER.co.za
[siptrunk]
type=endpoint
transport=transport-udp-main
context=IncomingContext
direct_media=yes
disallow=all
allow=ulaw,iLBC,opus,GSM
outbound_auth=siptrunk
aors=siptrunk
Logs:
[Oct 7 14:02:41] Asterisk 16.5.1 built by root # asterisk on a x86_64 running Linux on 2019-09-20 09:48:51 UTC
[Oct 7 14:02:41] NOTICE[1498] loader.c: 304 modules will be loaded.
[Oct 7 14:02:47] NOTICE[1498] cdr.c: CDR logging disabled.
[Oct 7 14:02:49] NOTICE[1498] res_smdi.c: No SMDI interfaces are available to listen on, not starting SMDI listener.
[Oct 7 14:02:49] WARNING[1498] res_phoneprov.c: Unable to find a valid server address or name.
[Oct 7 14:02:49] NOTICE[1498] chan_skinny.c: Configuring skinny from skinny.conf
[Oct 7 14:02:49] ERROR[1498] ari/config.c: No configured users for ARI
[Oct 7 14:02:49] NOTICE[1498] confbridge/conf_config_parser.c: Adding default_menu menu to app_confbridge
[Oct 7 14:02:49] WARNING[1498] config.c: parse error: No category context for line 33 of /etc/asterisk/cdr_adaptive_odbc.conf
[Oct 7 14:02:49] WARNING[1498] cdr_adaptive_odbc.c: Unable to load cdr_adaptive_odbc.conf. No adaptive ODBC CDRs.
[Oct 7 14:02:49] NOTICE[1498] cel_custom.c: No mappings found in cel_custom.conf. Not logging CEL to custom CSVs.
[Oct 7 14:02:50] WARNING[1498] res_hep_pjsip.c: res_hep is disabled; declining module load
[Oct 7 14:02:50] WARNING[1498] loader.c: Some non-required modules failed to load.
[Oct 7 14:02:50] ERROR[1498] loader.c: Error loading module 'cdr_addon_odbc.so': /usr/lib/asterisk/modules/cdr_addon_odbc.so: cannot open shared object file: No such file or directory
[Oct 7 14:02:50] ERROR[1498] loader.c: cel_sqlite3_custom declined to load.
[Oct 7 14:02:50] ERROR[1498] loader.c: cdr_sqlite3_custom declined to load.
[Oct 7 14:02:50] ERROR[1498] loader.c: res_hep_pjsip declined to load.
[Oct 7 14:02:50] VERBOSE[1498] asterisk.c: Asterisk Ready.
[Oct 7 14:03:38] WARNING[1708] res_pjsip_pubsub.c: No registered publish handler for event presence
[Oct 7 14:04:48] VERBOSE[2253] pbx_variables.c: Setting global variable 'SIPDOMAIN' to '192.168.26.11'
[Oct 7 14:04:48] VERBOSE[2258][C-00000001] pbx.c: Executing [[Number Removed]#IncomingContext:1] NoOp("PJSIP/siptrunk-00000000", "Incoming [Number Removed]") in new stack
[Oct 7 14:04:48] VERBOSE[2258][C-00000001] pbx.c: Executing [[Number Removed]#IncomingContext:2] Answer("PJSIP/siptrunk-00000000", "") in new stack
[Oct 7 14:04:48] VERBOSE[2253] res_rtp_asterisk.c: 0x7f17400122e0 -- Strict RTP learning after remote address set to: XXX.XXX.XXX.XXX:40570
[Oct 7 14:04:49] VERBOSE[2258][C-00000001] pbx.c: Executing [[Number Removed]#IncomingContext:3] Playback("PJSIP/siptrunk-00000000", "tt-monkeys") in new stack
[Oct 7 14:04:49] VERBOSE[2258][C-00000001] file.c: <PJSIP/siptrunk-00000000> Playing 'tt-monkeys.gsm' (language 'en')
[Oct 7 14:05:05] VERBOSE[2258][C-00000001] pbx.c: Executing [[Number Removed]#IncomingContext:4] Hangup("PJSIP/siptrunk-00000000", "") in new stack
[Oct 7 14:05:05] VERBOSE[2258][C-00000001] pbx.c: Spawn extension (IncomingContext, [Number Removed], 4) exited non-zero on 'PJSIP/siptrunk-00000000'

May be your server behind the nat. In pjsip configuration analogue net=yes is below.
Add this three line into siptrunk endpoint.
rtp_symmetric=yes
force_rport=yes
rewrite_contact=yes
Note: Don't forget reload Asterisk.

Check that your firewall not block rtp ports
Default ports are 10000-20000. For more info see rtp.conf

Related

Asterisk one way audio

Got a strange problem.
Trying to call from a sip client to a normal phone or exetension.
This results always in a one way audio connenction.
I use the odbc database, and can't really find the problem.
Can anybody help me in the right direction.
There seems to be no errors at all.
[general]
context=public
allowguest=no
allowoverlap=no
udpbindaddr=0.0.0.0:15060
tcpenable=no
tcpbindaddr=0.0.0.0
transport=udp
srvlookup=yes
language=ja
externaddr=x.x.x.x
localnet=x.x.x.x/255.255.240.0
nat=force_rport,comedia
rtcachefriends=yes
disallow=all
allow=ulaw
allow=alaw
allow=gsm
/var/log/asterisk/messages
[Apr 12 10:44:36] VERBOSE[23055][C-00000001] netsock2.c: Using SIP RTP CoS mark 5
[Apr 12 10:44:36] VERBOSE[25771][C-00000001] pbx.c: Executing [52431824#context_tok:1] NoOp("SIP/inbound_1_1-00000003", "inbound") in new stack
[Apr 12 10:44:36] VERBOSE[25771][C-00000001] pbx.c: Executing [52431824#context_tok:2] Dial("SIP/inbound_1_1-00000003", "SIP/1_1_1_1/1_1_1_1&SIP/1_1_1_2/1_1_1_2&SIP/1_1_1_3/1_1_1_3&SIP/1_1_1_4/1_1_1_4") in new stack
[Apr 12 10:44:36] VERBOSE[25771][C-00000001] netsock2.c: Using SIP RTP CoS mark 5
[Apr 12 10:44:36] WARNING[25771][C-00000001] app_dial.c: Unable to create channel of type 'SIP' (cause 20 - Subscriber absent)
[Apr 12 10:44:36] VERBOSE[25771][C-00000001] netsock2.c: Using SIP RTP CoS mark 5
[Apr 12 10:44:36] WARNING[25771][C-00000001] app_dial.c: Unable to create channel of type 'SIP' (cause 20 - Subscriber absent)
[Apr 12 10:44:36] VERBOSE[25771][C-00000001] app_dial.c: Called SIP/1_1_1_1/1_1_1_1
[Apr 12 10:44:36] VERBOSE[25771][C-00000001] app_dial.c: Called SIP/1_1_1_3/1_1_1_3
[Apr 12 10:44:36] VERBOSE[25771][C-00000001] app_dial.c: SIP/1_1_1_1-00000004 is ringing
[Apr 12 10:44:36] VERBOSE[25771][C-00000001] app_dial.c: SIP/1_1_1_3-00000005 is ringing
[Apr 12 10:44:44] VERBOSE[25771][C-00000001] app_dial.c: SIP/1_1_1_3-00000005 answered SIP/inbound_1_1-00000003
[Apr 12 10:44:44] VERBOSE[25846][C-00000001] bridge_channel.c: Channel SIP/1_1_1_3-00000005 joined 'simple_bridge' basic-bridge <16f760ce-43f9-4f36-8aa3-865c4f2e8151>
[Apr 12 10:44:44] VERBOSE[25771][C-00000001] bridge_channel.c: Channel SIP/inbound_1_1-00000003 joined 'simple_bridge' basic-bridge <16f760ce-43f9-4f36-8aa3-865c4f2e8151>
[Apr 12 10:44:52] VERBOSE[25846][C-00000001] bridge_channel.c: Channel SIP/1_1_1_3-00000005 left 'simple_bridge' basic-bridge <16f760ce-43f9-4f36-8aa3-865c4f2e8151>
[Apr 12 10:44:52] VERBOSE[25771][C-00000001] bridge_channel.c: Channel SIP/inbound_1_1-00000003 left 'simple_bridge' basic-bridge <16f760ce-43f9-4f36-8aa3-865c4f2e8151>
[Apr 12 10:44:52] VERBOSE[25771][C-00000001] pbx.c: Spawn extension (context_tok, 52431824, 2) exited non-zero on 'SIP/inbound_1_1-00000003'
Have tried several things, and searched on the net, coudn't find the correct solution.
To help people in the future with the same problem.
In the odbc database we had the standard data on null.
Setting qualify to yes for the users in the database fixed the problem.

Kamailio - WebSocket - Setup

I am an web developer and want to create a WEBRTC application. My knowledge level in SIP is beginner. I want my application to talk to kamailio and in process of setting up kamailio by following the below articles.
http://nil.uniza.sk/sip/kamailio/configuring-kamailio-4x-websocket
http://kamailio.org/docs/modules/4.3.x/modules/websocket.html
I was able to connect (using try.jssp.net) to kamailio as multiple clients for initial setup but unable to call from one browser client to another client. Below is the log message that I see in the kamailio server.
I see this error message multiple times logged
Aug 9 20:27:10 ip-10-94-99-80 /usr/sbin/kamailio[25063]: INFO: <core> [parser/parse_fline.c:146]: parse_first_line(): ERROR:parse_first_line: method not followed by SP
Aug 9 20:27:10 ip-10-94-99-80 /usr/sbin/kamailio[25063]: ERROR: <core> [parser/parse_fline.c:243]: parse_first_line(): parse_first_line: bad message (offset: 0)
Aug 9 20:27:10 ip-10-94-99-80 /usr/sbin/kamailio[25063]: DEBUG: <core> [parser/msg_parser.c:619]: parse_msg(): parse_msg: invalid message
Aug 9 20:27:10 ip-10-94-99-80 /usr/sbin/kamailio[25063]: ERROR: <core> [parser/msg_parser.c:705]: parse_msg(): ERROR: parse_msg: message=<#001#020#002#021#037?#037?#012^cP#012^cP#001#020#002#026?A#037?H#0229w>
Aug 9 20:27:10 ip-10-94-99-80 /usr/sbin/kamailio[25063]: ERROR: <core> [receive.c:149]: receive_msg(): core parsing of SIP message failed (10.94.99.80:8088/1)
and also found this in the log
DEBUG: <core> [dset.c:774]: uri_add_rcv_alias(): encoded <sip:d63im5st#avltu6trdhg0.invalid;transport=ws;ob> => [sip:d63im5st#avltu6trdhg0.invalid;transport=ws;ob;alias=172.18.57.119~60481~5]
Aug 9 20:27:33 ip-10-94-99-80 /usr/sbin/kamailio[25074]: DEBUG: nathelper [nathelper.c:965]: add_contact_alias_0_f(): contact uri host is not an ip address
Aug 9 20:27:33 ip-10-94-99-80 /usr/sbin/kamailio[25074]: ERROR: nathelper [nathelper.c:977]: add_contact_alias_0_f(): you can't call add_contact_alias twice, check your config!
Aug 9 20:27:33 ip-10-94-99-80 /usr/sbin/kamailio[25074]: ERROR: <script>: Error aliasing contact <<sip:d63im5st#avltu6trdhg0.invalid;transport=ws;ob>>
Additional log info
Aug 9 20:27:10 ip-10-94-99-80 /usr/sbin/kamailio[25072]: DEBUG: websocket [ws_frame.c:661]: ws_frame_receive(): Rx SIP message:#012REGISTER sip:ip-10-94-99-80.customdomain.com SIP/2.0#015#012Via: SIP/2.0/WS avltu6trdhg0.invalid;branch=z9hG4bK6572200#015#012Max-Forwards: 69#015#012To: <sip:agent01#ip-10-94-99-80.customdomain.com>#015#012From: "agent01" <sip:agent01#ip-10-94-99-80.customdomain.com>;tag=68gqn060sb#015#012Call-ID: 22oik6ujj2bfjuuauasgdq#015#012CSeq: 1 REGISTER#015#012Contact: <sip:d63im5st#avltu6trdhg0.invalid;transport=ws>;+sip.ice;reg-id=1;+sip.instance="<urn:uuid:74809558-6d30-42c3-afbd-072d5d0ad5ab>";expires=600#015#012Expires: 600#015#012Allow: INVITE,ACK,CANCEL,BYE,UPDATE,MESSAGE,OPTIONS,REFER#015#012Supported: path,gruu,outbound#015#012User-Agent: JsSIP 0.7.3#015#012Content-Length: 0#015#012#015#012
Aug 9 20:27:15 ip-10-94-99-80 /usr/sbin/kamailio[25073]: DEBUG: websocket [ws_frame.c:661]: ws_frame_receive(): Rx SIP message:#012REGISTER sip:ip-10-94-99-80.customdomain.com SIP/2.0#015#012Via: SIP/2.0/WS egvf3nqhdl35.invalid;branch=z9hG4bK4737687#015#012Max-Forwards: 69#015#012To: <sip:agent02#ip-10-94-99-80.customdomain.com>#015#012From: "agent02" <sip:agent02#ip-10-94-99-80.customdomain.com>;tag=8dldgic783#015#012Call-ID: v4rim0ku5dtqrtqkcgv0an#015#012CSeq: 1 REGISTER#015#012Contact: <sip:bh9ao5ab#egvf3nqhdl35.invalid;transport=ws>;+sip.ice;reg-id=1;+sip.instance="<urn:uuid:f593c0a4-0984-46a0-8f3e-a231fb4d1713>";expires=600#015#012Expires: 600#015#012Allow: INVITE,ACK,CANCEL,BYE,UPDATE,MESSAGE,OPTIONS,REFER#015#012Supported: path,gruu,outbound#015#012User-Agent: JsSIP 0.7.3#015#012Content-Length: 0#015#012#015#012
Aug 9 20:27:33 ip-10-94-99-80 /usr/sbin/kamailio[25074]: DEBUG: websocket [ws_frame.c:661]: ws_frame_receive(): Rx SIP message:#012INVITE sip:agent02#ip-10-94-99-80.customdomain.com SIP/2.0#015#012Via: SIP/2.0/WS avltu6trdhg0.invalid;branch=z9hG4bK9231290#015#012Max-Forwards: 69#015#012To: <sip:agent02#ip-10-94-99-80.customdomain.com>#015#012From: "agent01" <sip:agent01#ip-10-94-99-80.customdomain.com>;tag=jngmrtvvec#015#012Call-ID: s1fdqticqc31ru6p5cfs#015#012CSeq: 9973 INVITE#015#012X-Can-Renegotiate: true#015#012Contact: <sip:d63im5st#avltu6trdhg0.invalid;transport=ws;ob>#015#012Content-Type: application/sdp#015#012Session-Expires: 90#015#012Allow: INVITE,ACK,CANCEL,BYE,UPDATE,MESSAGE,OPTIONS,REFER#015#012Supported: timer,ice,replaces,outbound#015#012User-Agent: JsSIP 0.7.3#015#012Content-Length: 3876#015#012#015#012v=0#015#012o=- 7098982196661734965 2 IN IP4 127.0.0.1#015#012s=-#015#012t=0 0#015#012a=group:BUNDLE audio video#015#012a=msid-semantic: WMS XynF2020ZZYtShWgfoYkS23q5sgbtcquUl0s#015#012m=audio 56249 RTP/SAVPF 111 103 104 9 0 8 106 105 13 126#015#012c=IN IP4 172.18.57.119#015#012a=rtcp:54672 IN IP4 172.18.57.119#015#012a=candidate:2390899093 1 udp 2122260223 172.18.57.119 56249 typ host generation 0#015#012a=candidate:1221703924 1 udp 2122194687 192.168.0.105 60197 typ host generation 0#015#012a=candidate:2390899093 2 udp 2122260222 172.18.57.119 54672 typ host generation 0#015#012a=candidate:1221703924 2 udp 2122194686 192.168.0.105 54423 typ host generation 0#015#012a=candidate:3221341541 1 tcp 1518280447 172.18.57.119 0 typ host tcptype active generation 0#015#012a=candidate:106054660 1 tcp 1518214911 192.168.0.105 0 typ host tcptype active generation 0#015#012a=candidate:3221341541 2 tcp 1518280446 172.18.57.119 0 typ host tcptype active generation 0#015#012a=candidate:106054660 2 tcp 1518214910 192.168.0.105 0 typ host tcptype active generation 0#015#012a=ice-ufrag:Las7oILW40BIM8zF#015#012a=ice-pwd:A3ewod5vG57HcA/JvnAaRGWV#015#012a=fingerprint:sha-256 31:22:C5:67:B6:CB:D0:66:7D:E4
Aug 9 20:27:33 ip-10-94-99-80 /usr/sbin/kamailio[25074]: DEBUG: websocket [ws_frame.c:661]: ws_frame_receive(): Rx SIP message:#012ACK sip:agent02#ip-10-94-99-80.customdomain.com SIP/2.0#015#012Via: SIP/2.0/WS avltu6trdhg0.invalid;branch=z9hG4bK9231290#015#012To: <sip:agent02#ip-10-94-99-80.customdomain.com>;tag=5f994d94abde79a17171e171202b0e42.d13e#015#012From: "agent01" <sip:agent01#ip-10-94-99-80.customdomain.com>;tag=jngmrtvvec#015#012Call-ID: s1fdqticqc31ru6p5cfs#015#012CSeq: 9973 ACK#015#012Content-Length: 0#015#012#015#012
Any help is appreciated
So you should check your kamailio.cfg, I think config is broken.
And maybe you want to use Asterisk or Freeswitch for WebRTC and PBX. You can find the Kamailio and Freeswitch integration tutorial here:
http://kb.asipto.com/freeswitch:kamailio-3.1.x-freeswitch-1.0.6d-sbc
It will be good choice using Kamailio as routing and registar server. Generally we use Freeswitch or Asterisk as media server for these kind of operations.
Please feel free ask me any questions.

Not able to access asterisk even using gc

I have already asterisk in my system then I have install freepbx.
Now I got following when try to start asterisk using -gc.
[May 26 01:10:09] NOTICE[31812]: loader.c:1170 load_modules: 2 modules will be loaded.
..[May 26 01:10:09] NOTICE[31812]: cdr.c:1607 do_reload: CDR simple logging enabled.
[May 26 01:10:09] NOTICE[31812]: loader.c:1170 load_modules: 198 modules will be loaded.
.[May 26 01:10:09] NOTICE[31812]: res_smdi.c:1418 load_module: No SMDI interfaces are available to listen on, not starting SMDI listener.
...........[May 26 01:10:09] NOTICE[31812]: config.c:2338 ast_config_engine_register: Registered Config Engine sqlite3
.[May 26 01:10:09] NOTICE[31812]: config.c:2338 ast_config_engine_register: Registered Config Engine curl
[May 26 01:10:09] WARNING[31812]: res_config_mysql.c:1487 load_mysql_config: MySQL RealTime: No database host found, using localhost via socket.
[May 26 01:10:09] WARNING[31812]: res_config_mysql.c:1499 load_mysql_config: MySQL RealTime: No database port found, using 3306 as default.
.[May 26 01:10:09] WARNING[31812]: res_config_mysql.c:1528 load_mysql_config: MySQL realtime: no requirements setting found, using 'warn' as default.
[May 26 01:10:09] NOTICE[31812]: config.c:2338 ast_config_engine_register: Registered Config Engine mysql
asterisk: src/hostapi/alsa/pa_linux_alsa.c:863: BuildDeviceList: Assertion `devIdx < numDeviceNames' failed.
........Aborted (core dumped)
When using asterisk -vr I got following error.
Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?)
When using asterisk -vvvvc I got following error.
Asterisk Dynamic Loader Starting:
[May 26 02:10:56] NOTICE[23425]: loader.c:1170 load_modules: 2 modules will be loaded.
chan_local.so => (Local Proxy Channel (Note: used internally by other modules))
pbx_config.so => (Text Extension Configuration)
[May 26 02:10:56] NOTICE[23425]: cdr.c:1607 do_reload: CDR simple logging enabled.
Asterisk PBX Core Initializing
Registering builtin applications:
[Answer]
[BackGround]
[Busy]
[Congestion]
[ExecIfTime]
[Goto]
[GotoIf]
[GotoIfTime]
[ImportVar]
[Hangup]
[Incomplete]
[NoOp]
[Proceeding]
[Progress]
[RaiseException]
[ResetCDR]
[Ringing]
[SayAlpha]
[SayDigits]
[SayNumber]
[SayPhonetic]
[Set]
[MSet]
[SetAMAFlags]
[Wait]
[WaitExten]
Asterisk Dynamic Loader Starting:
[May 26 02:10:56] NOTICE[23425]: loader.c:1170 load_modules: 198 modules will be loaded.
res_monitor.so => (Call Monitoring Resource)
[May 26 02:10:56] NOTICE[23425]: res_smdi.c:1418 load_module: No SMDI interfaces are available to listen on, not starting SMDI listener.
res_http_websocket.so => (HTTP WebSocket Support)
res_crypto.so => (Cryptographic Digital Signatures)
res_stun_monitor.so => (STUN Network Monitor)
res_agi.so => (Asterisk Gateway Interface (AGI))
res_speech.so => (Generic Speech Recognition API)
res_fax.so => (Generic FAX Applications)
res_calendar.so => (Asterisk Calendar integration)
res_ael_share.so => (share-able code for AEL)
res_curl.so => (cURL Resource Module)
func_curl.so => (Load external URL)
[May 26 02:10:56] NOTICE[23425]: config.c:2338 ast_config_engine_register: Registered Config Engine sqlite3
res_config_sqlite3.so => (SQLite 3 realtime config engine)
[May 26 02:10:56] NOTICE[23425]: config.c:2338 ast_config_engine_register: Registered Config Engine curl
res_config_curl loaded.
res_config_curl.so => (Realtime Curl configuration)
[May 26 02:10:56] WARNING[23425]: res_config_mysql.c:1487 load_mysql_config: MySQL RealTime: No database host found, using localhost via socket.
[May 26 02:10:56] WARNING[23425]: res_config_mysql.c:1499 load_mysql_config: MySQL RealTime: No database port found, using 3306 as default.
[May 26 02:10:56] WARNING[23425]: res_config_mysql.c:1528 load_mysql_config: MySQL realtime: no requirements setting found, using 'warn' as default.
[May 26 02:10:56] NOTICE[23425]: config.c:2338 ast_config_engine_register: Registered Config Engine mysql
res_config_mysql.so => (MySQL RealTime Configuration Driver)
res_timing_pthread.so => (pthread Timing Interface)
res_timing_timerfd.so => (Timerfd Timing Interface)
res_format_attr_silk.so => (SILK Format Attribute Module)
res_format_attr_celt.so => (CELT Format Attribute Module)
res_musiconhold.so => (Music On Hold Resource)
res_rtp_asterisk.so => (Asterisk RTP Stack)
res_rtp_multicast.so => (Multicast RTP Engine)
chan_bridge.so => (Bridge Interaction Channel)
asterisk: src/hostapi/alsa/pa_linux_alsa.c:863: BuildDeviceList: Assertion `devIdx < numDeviceNames' failed.
Aborted
When I start asterisk service at that time asterisk shutdown is failed.
Can any one help me to fix this issue?
Any help/suggestion would be appreciable.
Also please check your ip tables is stop or not.
Try disable selinux or change to permissed mode.
Check owner of ctl file and compare with user in /etc/asterisk/asterisk.conf
The logs / CLI you posted clearly show that it is core-dumping on trying to load the ALSA module. That's likely a problem with the sound-card driver. In the short term, you can just delete that offending module and see if Asterisk will properly load without it.
Further Reading
Why are core dump files generated?
Please Note:
If this answer helped you solve your problem, please 'accept' it so that others with the same issue can find the solution more easily.

Asterisk thinks outbound call is to fax machine

A user recently notified me that whenever they attempt to dial into a conference call at another company, the phone call would get dropped after 5 seconds or so. They also indicated that when the same number is called using a cell phone, there were no issues. I found the following entries in log file.
[May 4 11:58:20] VERBOSE[24063] app_dial.c: -- DAHDI/1-1 is ringing
[May 4 11:58:20] VERBOSE[24063] app_dial.c: -- DAHDI/1-1 answered SIP/145-00000005
[May 4 11:58:24] WARNING[24063] rtp.c: Don't know how to represent 'f'
[May 4 11:58:24] VERBOSE[24063] chan_dahdi.c: -- Redirecting DAHDI/1-1 to fax extension
[May 4 11:58:24] VERBOSE[24063] pbx.c: -- Executing [h#macro-dialout-trunk:1] Macro("SIP/145-00000005", "hangupcall,") in new stack
[May 4 11:58:24] VERBOSE[24063] pbx.c: -- Executing [s#macro-hangupcall:1] GotoIf("SIP/145-00000005", "1?theend") in new stack
I have not been able to determine a solution. Any insight or suggestions on solving this problem are appreciated.
(Using FreePBX v2.9; Asterisk v1.6.2.15.1; CentOS 5.5 (Final); Sangoma A102)
Try add into file
/etc/asterisk/sip_general_custom.conf
faxdetect=no
Also tried modiying chan_dahdi.conf, but that did not work.
Final solution was to modify these settings (changing from YES to NO) in /etc/wanrouter/wanpipe1.conf
TDMV_HW_DTMF = NO # YES: receive dtmf events from hardware
TDMV_HW_FAX_DETECT = NO # YES: receive fax 1100hz events from hardware

Cannot start Plone production instances normally with plone.app.async enabled

After adding plone.app.async, I cannot start my production instances normally using 'bin/instance start'. However, the instances run fine using 'foreground' and I can start the production instances on my development machine just fine. (The machines have almost identical configurations but the production machine has almost 100GB of data in blob storage.)
Additionally, I can start the instances normally if I remove support for plane.app.async, specifically the zcml-additions section, from my buildout. And I can start the worker instance for plone.app.async just fine. It uses almost all the same sections as the regular instances except for 'zcml-additional' being for worker instead of instance.
This happens with both single and multi db for plone.app.async.
The instance log shows that it gets trapped in some sort of cycle during startup. Here is the log of what happens:
....
2012-02-09T18:31:27 INFO ZServer HTTP server started at Thu Feb 9 18:31:27 2012
Hostname: 0.0.0.0
Port: 8081
2012-02-09T18:31:32 INFO ZServer WebDAV server started at Thu Feb 9 18:31:32 2012
Hostname: 0.0.0.0
Port: 1980
2012-02-09T18:31:32 INFO Zope Set effective user to "plone"
2012-02-09T18:31:34 INFO ZEO.ClientStorage zeostorage ClientStorage (pid=16331) created RW/normal for storage: '1'
2012-02-09T18:31:34 INFO ZEO.cache created temporary cache file '<fdopen>'
2012-02-09T18:31:34 INFO ZEO.ClientStorage zeostorage Testing connection <ManagedClientConnection ('127.0.0.1', 8100)>
2012-02-09T18:31:34 INFO ZEO.zrpc.Connection(C) (127.0.0.1:8100) received handshake 'Z3101'
2012-02-09T18:31:34 INFO ZEO.ClientStorage zeostorage Server authentication protocol None
2012-02-09T18:31:34 INFO ZEO.ClientStorage zeostorage Connected to storage: ('localhost', 8100)
2012-02-09T18:31:34 INFO ZEO.ClientStorage zeostorage No verification necessary -- empty cache
2012-02-09T18:31:45 INFO ZServer HTTP server started at Thu Feb 9 18:31:45 2012
Hostname: 0.0.0.0
Port: 8081
2012-02-09T18:31:50 INFO ZServer WebDAV server started at Thu Feb 9 18:31:50 2012
Hostname: 0.0.0.0
Port: 1980
....
This repeats forever.
With a logging level of debug, I receive the following output: http://pastebin.com/nnyekuRA
Around line 58 is what I think is the culprit:
2012-02-09T17:18:22 DEBUG ZEO.ClientStorage pickled inval None '\x03\x94X\x8a\xa8\xe9\xf6\xee'
------
2012-02-09T17:18:22 BLATHER ZEO.zrpc (15892) CM.connect_done(preferred=1)
------
2012-02-09T17:18:22 BLATHER ZEO.zrpc (15892) CT: exiting thread: Connect([(2, ('127.0.0.1', 8100))])
But I have no idea why this is happening or even if this is correct.
Here is the buildout for deployment:
http://pastebin.com/u8D7swJs
The permissions were set incorrectly on the Plone 'parts' directory. This prevented 'uuid.txt' from being written in 'parts/instance/' . There were no error messages to indicate this problem.

Resources