Hunt Group setup

Hi All…

First my details:
FreePBX 2.11.0.10
1 x Sangoma B600
Asterisk 11.4

Question:
I am moving a customer to the new system from an older TalkSwitch. They have three (3) POTS lines in a hunt group currently setup and working. I have setup the Sangoma card and the DAHDI is showing “life” as is working. I have setup a inbound route with the DID of the first number being called in the hunt group. The issue is the number that seems to be coming in is NOT the primary number called. The system picks up and states that there is “no service” (error below). This MAY be due to the fact that the number being passed into the system is NOT the DID I have setup. I have set the incoming route to any/any but have not tested.

So, my general question, if I have a working hunt group from the Telco, is there anything I need to do to get the routing to work, i.e if they call out and line “one” is in use will it automatically use the next line? If the first line in in use for incoming will it just route the call to the next one and FreePBX will pick it up?

I have read and search all I can but there (as far as I can find) no specific instructions on setting up a analog card with multiple lines, there are some mentioning channels, hence this post.

Any info much appricated!

Thanks!

Brian

–ERROR–
[2013-08-27 09:16:10] VERBOSE[3268][C-0000000a] pbx.c: – Goto (from-pstn,s,1)
[2013-08-27 09:16:10] VERBOSE[3268][C-0000000a] pbx.c: – Executing [[email protected]:1] NoOp(“DAHDI/3-1”, “No DID or CID Match”) in new stack
[2013-08-27 09:16:10] VERBOSE[3268][C-0000000a] pbx.c: – Executing [[email protected]:2] Answer(“DAHDI/3-1”, “”) in new stack
[2013-08-27 09:16:10] VERBOSE[3268][C-0000000a] pbx.c: – Executing [[email protected]:3] Wait(“DAHDI/3-1”, “2”) in new stack
[2013-08-27 09:16:10] VERBOSE[3267][C-00000009] file.c: – <DAHDI/1-1> Playing ‘digits/6.ulaw’ (language ‘en’)
[2013-08-27 09:16:11] VERBOSE[3267][C-00000009] file.c: – <DAHDI/1-1> Playing ‘digits/7.ulaw’ (language ‘en’)
[2013-08-27 09:16:12] VERBOSE[3268][C-0000000a] pbx.c: – Executing [[email protected]:4] Playback(“DAHDI/3-1”, “ss-noservice”) in new stack
[2013-08-27 09:16:12] VERBOSE[3268][C-0000000a] file.c: – <DAHDI/3-1> Playing ‘ss-noservice.ulaw’ (language ‘en’)
[2013-08-27 09:16:12] VERBOSE[3267][C-00000009] file.c: – <DAHDI/1-1> Playing ‘digits/7.ulaw’ (language ‘en’)
[2013-08-27 09:16:12] VERBOSE[3267][C-00000009] file.c: – <DAHDI/1-1> Playing ‘digits/1.ulaw’ (language ‘en’)
[2013-08-27 09:16:13] VERBOSE[3267][C-00000009] file.c: – <DAHDI/1-1> Playing ‘digits/3.ulaw’ (language ‘en’)
[2013-08-27 09:16:14] VERBOSE[3267][C-00000009] file.c: – <DAHDI/1-1> Playing ‘digits/8.ulaw’ (language ‘en’)
[2013-08-27 09:16:14] VERBOSE[3267][C-00000009] file.c: – <DAHDI/1-1> Playing ‘digits/5.ulaw’ (language ‘en’)
[2013-08-27 09:16:15] VERBOSE[3267][C-00000009] file.c: – <DAHDI/1-1> Playing ‘digits/7.ulaw’ (language ‘en’)
[2013-08-27 09:16:16] VERBOSE[3267][C-00000009] pbx.c: – Executing [[email protected]:6] Hangup(“DAHDI/1-1”, “”) in new stack
[2013-08-27 09:16:16] VERBOSE[3267][C-00000009] pbx.c: == Spawn extension (from-trunk, s, 6) exited non-zero on ‘DAHDI/1-1’
[2013-08-27 09:16:16] VERBOSE[3267][C-00000009] pbx.c: – Executing [[email protected]:1] Macro(“DAHDI/1-1”, “hangupcall,”) in new stack
[2013-08-27 09:16:16] VERBOSE[3267][C-00000009] pbx.c: – Executing [[email protected]:1] GotoIf(“DAHDI/1-1”, “1?theend”) in new stack
[2013-08-27 09:16:16] VERBOSE[3267][C-00000009] pbx.c: – Goto (macro-hangupcall,s,3)
[2013-08-27 09:16:16] VERBOSE[3267][C-00000009] pbx.c: – Executing [[email protected]:3] ExecIf(“DAHDI/1-1”, “0?Set(CDR(recordingfile)=)”) in new stack
[2013-08-27 09:16:16] VERBOSE[3267][C-00000009] pbx.c: – Executing [[email protected]:4] Hangup(“DAHDI/1-1”, “”) in new stack
[2013-08-27 09:16:16] VERBOSE[3267][C-00000009] app_macro.c: == Spawn extension (macro-hangupcall, s, 4) exited non-zero on ‘DAHDI/1-1’ in macro ‘hangupcall’
[2013-08-27 09:16:16] VERBOSE[3267][C-00000009] pbx.c: == Spawn extension (from-trunk, h, 1) exited non-zero on ‘DAHDI/1-1’
[2013-08-27 09:16:16] VERBOSE[3267][C-00000009] sig_analog.c: – Hanging up on ‘DAHDI/1-1’
[2013-08-27 09:16:16] VERBOSE[3267][C-00000009] chan_dahdi.c: – Hungup ‘DAHDI/1-1’
[2013-08-27 09:16:17] VERBOSE[3268][C-0000000a] pbx.c: – Executing [[email protected]:5] SayAlpha(“DAHDI/3-1”, “”) in new stack
[2013-08-27 09:16:17] VERBOSE[3268][C-0000000a] pbx.c: – Executing [[email protected]:6] Hangup(“DAHDI/3-1”, “”) in new stack
[2013-08-27 09:16:17] VERBOSE[3268][C-0000000a] pbx.c: == Spawn extension (from-pstn, s, 6) exited non-zero on ‘DAHDI/3-1’
[2013-08-27 09:16:17] VERBOSE[3268][C-0000000a] pbx.c: – Executing [[email protected]:1] Macro(“DAHDI/3-1”, “hangupcall,”) in new stack
[2013-08-27 09:16:17] VERBOSE[3268][C-0000000a] pbx.c: – Executing [[email protected]:1] GotoIf(“DAHDI/3-1”, “1?theend”) in new stack
[2013-08-27 09:16:17] VERBOSE[3268][C-0000000a] pbx.c: – Goto (macro-hangupcall,s,3)
[2013-08-27 09:16:17] VERBOSE[3268][C-0000000a] pbx.c: – Executing [[email protected]:3] ExecIf(“DAHDI/3-1”, “0?Set(CDR(recordingfile)=)”) in new stack
[2013-08-27 09:16:17] VERBOSE[3268][C-0000000a] pbx.c: – Executing [[email protected]:4] Hangup(“DAHDI/3-1”, “”) in new stack
[2013-08-27 09:16:17] VERBOSE[3268][C-0000000a] app_macro.c: == Spawn extension (macro-hangupcall, s, 4) exited non-zero on ‘DAHDI/3-1’ in macro ‘hangupcall’
[2013-08-27 09:16:17] VERBOSE[3268][C-0000000a] pbx.c: == Spawn extension (from-pstn, h, 1) exited non-zero on ‘DAHDI/3-1’
[2013-08-27 09:16:17] VERBOSE[3268][C-0000000a] sig_analog.c: – Hanging up on ‘DAHDI/3-1’
[2013-08-27 09:16:17] VERBOSE[3268][C-0000000a] chan_dahdi.c: – Hungup ‘DAHDI/3-1’
[2013-08-27 09:16:31] VERBOSE[3269][C-0000000b] sig_analog.c: – Starting simple switch on ‘DAHDI/1-1’
[2013-08-27 09:16:36] VERBOSE[3270][C-0000000c] sig_analog.c: – Starting simple switch on ‘DAHDI/3-1’
[2013-08-27 09:16:37] VERBOSE[3270][C-0000000c] pbx.c: – Executing [[email protected]:1] NoOp(“DAHDI/3-1”, "Entering from-dahdi with DID == ") in new stack
[2013-08-27 09:16:37] VERBOSE[3270][C-0000000c] pbx.c: – Executing [[email protected]:2] Ringing(“DAHDI/3-1”, “”) in new stack
[2013-08-27 09:16:37] VERBOSE[3270][C-0000000c] pbx.c: – Executing [[email protected]:3] Set(“DAHDI/3-1”, “DID=s”) in new stack
[2013-08-27 09:16:37] VERBOSE[3270][C-0000000c] pbx.c: – Executing [[email protected]:4] NoOp(“DAHDI/3-1”, “DID is now s”) in new stack
[2013-08-27 09:16:37] VERBOSE[3270][C-0000000c] pbx.c: – Executing [[email protected]:5] GotoIf(“DAHDI/3-1”, “1?dahdiok:checkzap”) in new stack
[2013-08-27 09:16:37] VERBOSE[3270][C-0000000c] pbx.c: – Goto (from-analog,s,9)
[2013-08-27 09:16:37] VERBOSE[3270][C-0000000c] pbx.c: – Executing [[email protected]:9] NoOp(“DAHDI/3-1”, “Is a DAHDi Channel”) in new stack
[2013-08-27 09:16:37] VERBOSE[3270][C-0000000c] pbx.c: – Executing [[email protected]:10] Set(“DAHDI/3-1”, “CHAN=3-1”) in new stack
[2013-08-27 09:16:37] VERBOSE[3270][C-0000000c] pbx.c: – Executing [[email protected]:11] Set(“DAHDI/3-1”, “CHAN=3”) in new stack
[2013-08-27 09:16:37] VERBOSE[3270][C-0000000c] pbx.c: – Executing [[email protected]:12] Macro(“DAHDI/3-1”, “from-dahdi-3,s,1”) in new stack
[2013-08-27 09:16:37] WARNING[3270][C-0000000c] app_macro.c: No such context ‘macro-from-dahdi-3’ for macro ‘from-dahdi-3’. Was called by [email protected]
[2013-08-27 09:16:37] VERBOSE[3270][C-0000000c] pbx.c: – Executing [[email protected]:13] NoOp(“DAHDI/3-1”, “Returned from Macro from-dahdi-3”) in new stack
[2013-08-27 09:16:37] VERBOSE[3270][C-0000000c] pbx.c: – Executing [[email protected]:14] Goto(“DAHDI/3-1”, “from-pstn,s,1”) in new stack
[2013-08-27 09:16:37] VERBOSE[3270][C-0000000c] pbx.c: – Goto (from-pstn,s,1)
[2013-08-27 09:16:37] VERBOSE[3270][C-0000000c] pbx.c: – Executing [[email protected]:1] NoOp(“DAHDI/3-1”, “No DID or CID Match”) in new stack
[2013-08-27 09:16:37] VERBOSE[3270][C-0000000c] pbx.c: – Executing [[email protected]:2] Answer(“DAHDI/3-1”, “”) in new stack
[2013-08-27 09:16:37] VERBOSE[3270][C-0000000c] pbx.c: – Executing [[email protected]:3] Wait(“DAHDI/3-1”, “2”) in new stack
[2013-08-27 09:16:37] VERBOSE[3271][C-0000000d] sig_analog.c: – Starting simple switch on ‘DAHDI/2-1’
[2013-08-27 09:16:39] VERBOSE[3270][C-0000000c] pbx.c: – Executing [[email protected]:4] Playback(“DAHDI/3-1”, “ss-noservice”) in new stack
[2013-08-27 09:16:39] VERBOSE[3270][C-0000000c] file.c: – <DAHDI/3-1> Playing ‘ss-noservice.ulaw’ (language ‘en’)
[2013-08-27 09:16:41] VERBOSE[3269][C-0000000b] pbx.c: – Executing [[email protected]:1] NoOp(“DAHDI/1-1”, "Entering from-dahdi with DID == ") in new stack
[2013-08-27 09:16:41] VERBOSE[3269][C-0000000b] pbx.c: – Executing [[email protected]:2] Ringing(“DAHDI/1-1”, “”) in new stack
[2013-08-27 09:16:41] VERBOSE[3269][C-0000000b] pbx.c: – Executing [[email protected]:3] Set(“DAHDI/1-1”, “DID=s”) in new stack
[2013-08-27 09:16:41] VERBOSE[3269][C-0000000b] pbx.c: – Executing [[email protected]:4] NoOp(“DAHDI/1-1”, “DID is now s”) in new stack
[2013-08-27 09:16:41] VERBOSE[3269][C-0000000b] pbx.c: – Executing [[email protected]:5] GotoIf(“DAHDI/1-1”, “1?dahdiok:checkzap”) in new stack

For Analog lines you will need to use a pseudo-did to map the line to a route, use

from-dahdi

as the trunk context and use FreePBX to set up the DID.
(I believe all that is already covered in the wiki)

As a note, if you are using those trunks for both in and out, arrange the wiring/dahdi group to minimize “glare”

I forgot to mention that normal analog lines do not present any DID, it is obviously deduced by the fact it is called :wink:

Will I need any other out going routing. I noticed the TalkSwitch has all the DID’s listed. I understand that that may just be some “data” as you said the DID is not really there. Im hoping my setup of a incoming DID on the incoming route setup is why I was getting the error. My concern is the pickup on the multiple lines and the ability to use all lines like the TalkSwitch does. Seems like I need to do more. I have one group setup (g0) with all four ports in the group. Context is from-analog on all of them…

THANK YOU for the fast reply!

Brian

Oh well, You can lead a horse to water . . . .

http://wiki.freepbx.org/display/PC/PSTN+Cards+Home