Bye message for incoming calls

Im new to the Asterisk system. I looked over the other post with the same problem I am having but could not understand how to solve it. When I call in it responds with a “bye” message and then hangs up. Im using asterisk 1.8, Freepbx 2.10, and centos 5.8, and a tdm400 card with 2 fxo/2 fxs. Here is the log file in freepbx. I have seen everyone ask for the conf files but I dont know exactly how to get them or edit them. Thanks in advance…on a side note I have the outgoing calls working on one of the fxo ports but i cant seem to dial out on the second port.

2012-04-07 02:05:57] VERBOSE[5009] sig_analog.c: – Starting simple switch on ‘DAHDI/1-1’
[2012-04-07 02:06:03] VERBOSE[5009] pbx.c: == Starting DAHDI/1-1 at ,s,1 failed so falling back to exten ‘s’
[2012-04-07 02:06:03] VERBOSE[5009] pbx.c: == Starting DAHDI/1-1 at ,s,1 still failed so falling back to context ‘default’
[2012-04-07 02:06:03] VERBOSE[5009] pbx.c: – Executing [[email protected]:1] Playback(“DAHDI/1-1”, “vm-goodbye”) in new stack
[2012-04-07 02:06:03] VERBOSE[5009] file.c: – <DAHDI/1-1> Playing ‘vm-goodbye.ulaw’ (language ‘en’)
[2012-04-07 02:06:04] VERBOSE[5009] pbx.c: – Executing [[email protected]:2] NoOp(“DAHDI/1-1”, “ERROR: FreePBX Does not use the [default] context, confguration error”) in new stack
[2012-04-07 02:06:04] VERBOSE[5009] pbx.c: – Executing [[email protected]:3] Macro(“DAHDI/1-1”, “hangupcall”) in new stack
[2012-04-07 02:06:04] VERBOSE[5009] pbx.c: – Executing [[email protected]:1] GotoIf(“DAHDI/1-1”, “1?theend”) in new stack
[2012-04-07 02:06:04] VERBOSE[5009] pbx.c: – Goto (macro-hangupcall,s,3)
[2012-04-07 02:06:04] VERBOSE[5009] pbx.c: – Executing [[email protected]:3] Hangup(“DAHDI/1-1”, “”) in new stack
[2012-04-07 02:06:04] VERBOSE[5009] app_macro.c: == Spawn extension (macro-hangupcall, s, 3) exited non-zero on ‘DAHDI/1-1’ in macro ‘hangupcall’
[2012-04-07 02:06:04] VERBOSE[5009] pbx.c: == Spawn extension (default, s, 3) exited non-zero on ‘DAHDI/1-1’
[2012-04-07 02:06:04] VERBOSE[5009] pbx.c: – Executing [[email protected]:1] Macro(“DAHDI/1-1”, “hangupcall,”) in new stack
[2012-04-07 02:06:04] VERBOSE[5009] pbx.c: – Executing [[email protected]:1] GotoIf(“DAHDI/1-1”, “1?theend”) in new stack
[2012-04-07 02:06:04] VERBOSE[5009] pbx.c: – Goto (macro-hangupcall,s,3)
[2012-04-07 02:06:04] VERBOSE[5009] pbx.c: – Executing [[email protected]:3] Hangup(“DAHDI/1-1”, “”) in new stack
[2012-04-07 02:06:04] VERBOSE[5009] app_macro.c: == Spawn extension (macro-hangupcall, s, 3) exited non-zero on ‘DAHDI/1-1’ in macro ‘hangupcall’
[2012-04-07 02:06:04] VERBOSE[5009] pbx.c: == Spawn extension (default, h, 1) exited non-zero on ‘DAHDI/1-1’
[2012-04-07 02:06:04] VERBOSE[5009] sig_analog.c: – Hanging up on ‘DAHDI/1-1’
[2012-04-07 02:06:04] VERBOSE[5009] chan_dahdi.c: – Hungup ‘DAHDI/1-1’

You have your DAHDI channels in the default context instead of from-trunk

How do I change that?

I should also add that I dont know much when it comes to editing the files. I have been using the GUI to do the work.

You installed from scratch so you must have configured DAHDI yourself.

Change the context variable in your DAHDI files to context=from-trunk from context=default

I took the easy way of installing. I used the package ISO installer on the Asterisk website. It was pretty much plug and play…

How do I edit the file to make that change?

Go do the change to the file /etc/asterisk/chan_dahdi.conf and find also in /etc/asterisk or /etc/dahdi a file channel…
You need to connect to console as root.

I don’t see anywhere to make that change inside of the file. This is what it says.

[general]

#include chan_dahdi_general.conf

[channels]

; include dahdi groups defined by DAHDI module of FreePBX
#include chan_dahdi_groups.conf

; include dahdi extensions defined in FreePBX
#include chan_dahdi_additional.conf

Int’s in the included files, take a look inside them.

Ok I changed the context from-ptsn to from-trunk and I am still having the same problem. Incoming calls will not ring on the phones. It still registers as default in the logs so maybe I changed the wrong thing. I changed the one in chan_dahdi_conf.template

Your issue here is you are using the DAHDI module from Digium to configure the cards and that module does not work and not support by FreePBX. I would suggest removing the module and configuring the card by hand using configs files.

Calls can go out but not come in as it sits now. How do I go about doing a manual config for the card.

I don’t mean to be a jerk but does anyone Google anything anymore? I came by to answer a few questions and every question I have come upon I had to go Google myself. Everyone assumes that we know the answers off the top of our heads. Most of the time all we are doing is researching the questions that are posted.

In this case, the DAHDI docs are your friend, the first link was a mirror site:

http://docs.tzafrir.org.il/dahdi-linux/

Remember to use the FreePBX context from-trunk of from-pstn (they are the same), everything else applies.