Problem in Dahdi trunk [Solved]

Any and all non-support discussions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Problem in Dahdi trunk [Solved]

Postby tux » Mon Nov 26, 2012 1:07 pm

Hello
i am new to goautodialer & i have tried many times to configure dahdi but no way :(
under carrier menu i added a zap with Globals String : TRUNK=DAHDI/g0
and dialplan :
Code: Select all
exten => _906XXXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _906XXXXXXXX,2,Dial(${TRUNKX}/${EXTEN:1},,To)
exten => _906XXXXXXXX,3,Hangup

i got this logs in CLI
Code: Select all
Executing [8600051@default:1] MeetMe("Local/8600051@default-6ae4,2", "8600051|F") in new stack
  == Starting Local/8600051@default-6ae4,1 at default,910674977163,1 failed so falling back to exten 's'
-- Executing [i@default:1] Playback("Local/8600051@default-6ae4,1", "invalid") in new stack
Executing [h@default:1] DeadAGI("Local/8600051@default-6ae4,1", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0---------------") in new stack


My Extensions.conf Headers :
Code: Select all
[general]
static=yes
writeprotect=no

[globals]
CONSOLE=Console/dsp                             ; Console interface for demo
TRUNK=DAHDI/g0                      ; Trunk interface
TRUNKX=Zap/r2                                   ; 2nd trunk interface
TRUNKIAX=IAX2/ASTtest1:test@10.10.10.16:4569    ; IAX trunk interface
TRUNKIAX1=IAX2/ASTtest1:test@10.10.10.16:4569   ; IAX trunk interface
;TRUNKBINFONE=IAX2/1112223333:PASSWORD@iax.xxx.xxx  ; IAX trunk interface
;SIPtrunk=SIP/1234:PASSWORD@sip.xx.yy; SIP trunk

Any help would be greatly appreciated.
Thanks.
Last edited by tux on Wed Nov 28, 2012 9:09 am, edited 1 time in total.
GoAutoDial CE 2.1 2.6.18-238.9.1.el5.goPAE 2011 i686
Asterisk 1.4.39.1-vici RPM
Card :WCTDM/4 Wildcard TDM400P REV I Board 5 (MASTER)/Communication controller: Tiger Jet Network Inc. Tiger3XX Modem/ISDN interface
Test Machine : Intel P4 2.80GHz
tux
 
Posts: 14
Joined: Mon Nov 26, 2012 12:45 pm

Re: Problem in Dahdi trunk

Postby tux » Mon Nov 26, 2012 1:23 pm

On the other hand lsdahdi output :
[root@go ~]# lsdahdi
### Span 1: WCTDM/4 "Wildcard TDM400P REV I Board 5" (MASTER)
1 FXO FXSKS (SWEC: MG2)
2 FXO FXSKS (SWEC: MG2) RED
3 FXO FXSKS (SWEC: MG2) RED
4 FXO FXSKS (SWEC: MG2)
with 2 lines and
go*CLI> dahdi show channels
Chan Extension Context Language MOH Interpret

Thanks again.
GoAutoDial CE 2.1 2.6.18-238.9.1.el5.goPAE 2011 i686
Asterisk 1.4.39.1-vici RPM
Card :WCTDM/4 Wildcard TDM400P REV I Board 5 (MASTER)/Communication controller: Tiger Jet Network Inc. Tiger3XX Modem/ISDN interface
Test Machine : Intel P4 2.80GHz
tux
 
Posts: 14
Joined: Mon Nov 26, 2012 12:45 pm

Re: Problem in Dahdi trunk

Postby williamconley » Mon Nov 26, 2012 8:26 pm

exten => _906XXXXXXXX

default,910674977163

The number you dialed does not match the pattern you created for your trunk. 906 is not the same as 9106.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: Problem in Dahdi trunk

Postby tux » Tue Nov 27, 2012 8:07 am

Yes i see , i replaced 1 with my country code but still same problem.
is it possible to install freepbx with goautodialer ?
GoAutoDial CE 2.1 2.6.18-238.9.1.el5.goPAE 2011 i686
Asterisk 1.4.39.1-vici RPM
Card :WCTDM/4 Wildcard TDM400P REV I Board 5 (MASTER)/Communication controller: Tiger Jet Network Inc. Tiger3XX Modem/ISDN interface
Test Machine : Intel P4 2.80GHz
tux
 
Posts: 14
Joined: Mon Nov 26, 2012 12:45 pm

Re: Problem in Dahdi trunk

Postby rsaaris » Tue Nov 27, 2012 9:13 am

Have you tried using TRUNK instead of TRUNKX in the extensions.conf dialplan when calling out? Now it seems to call from TRUNKX ( ZAP/r2) and if you have configured your lines to use group 0 the calls won't work because the TRUNKX using group 2. You can check your SPAN groups from /etc/asterisk/dahdi-channels.conf.

Vicibox 3.1.15 / .iso
VERSION: 2.6-393a
BUILD: 130124-1721
Asterisk version: 1.4.38-vici
IBM System X3550/X3650
Sangoma E1 -card
rsaaris
 
Posts: 50
Joined: Wed Dec 07, 2011 6:40 am

Re: Problem in Dahdi trunk

Postby tux » Tue Nov 27, 2012 10:08 am

Thanks rsaaris.
I have tried TRUNK and TRUNKX , i can't find the chan_dahdi.conf file in /etc/asterisk where i can include dahdi-channels.conf .
i have found a sample file & copied it to /etc/asterisk !
For SPAN group in dahdi-channels.conf

Code: Select all
 Span 1: WCTDM/4 "Wildcard TDM400P REV I Board 5" (MASTER)
;;; line="1 WCTDM/4/0 FXSKS"
signalling=fxs_ks
callerid=asreceived
group=0
context=from-pstn
;
it means DAHDI/g0 ?
GoAutoDial CE 2.1 2.6.18-238.9.1.el5.goPAE 2011 i686
Asterisk 1.4.39.1-vici RPM
Card :WCTDM/4 Wildcard TDM400P REV I Board 5 (MASTER)/Communication controller: Tiger Jet Network Inc. Tiger3XX Modem/ISDN interface
Test Machine : Intel P4 2.80GHz
tux
 
Posts: 14
Joined: Mon Nov 26, 2012 12:45 pm

Re: Problem in Dahdi trunk

Postby tux » Tue Nov 27, 2012 12:26 pm

Now Dahdi channels are configured correctly.
Code: Select all
go*CLI> dahdi show channels
   Chan Extension  Context         Language   MOH Interpret
 pseudo            default                    default
      1            from-pstn                  default
      2            from-pstn                  default
      3            from-pstn                  default
      4            from-pstn                  default

The main problem is the dial plan because when i make a manual call :
Code: Select all
[Nov 27 12:21:41] NOTICE[27493]: chan_sip.c:15566 handle_request_invite: Call from '100' to extension '9067977163' rejected because extension not found.

like im trying to call a local extension.
GoAutoDial CE 2.1 2.6.18-238.9.1.el5.goPAE 2011 i686
Asterisk 1.4.39.1-vici RPM
Card :WCTDM/4 Wildcard TDM400P REV I Board 5 (MASTER)/Communication controller: Tiger Jet Network Inc. Tiger3XX Modem/ISDN interface
Test Machine : Intel P4 2.80GHz
tux
 
Posts: 14
Joined: Mon Nov 26, 2012 12:45 pm

Re: Problem in Dahdi trunk

Postby williamconley » Tue Nov 27, 2012 12:36 pm

extension not found ... show your dialplan.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: Problem in Dahdi trunk

Postby tux » Tue Nov 27, 2012 1:36 pm

Dialplan Entry in carriers. Protocol ZAP
Code: Select all
exten => _9XXXXXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _9XXXXXXXXXX,2,Dial(${TRUNK}/${EXTEN:1},,To)
exten => _9XXXXXXXXXX,3,Hangup
GoAutoDial CE 2.1 2.6.18-238.9.1.el5.goPAE 2011 i686
Asterisk 1.4.39.1-vici RPM
Card :WCTDM/4 Wildcard TDM400P REV I Board 5 (MASTER)/Communication controller: Tiger Jet Network Inc. Tiger3XX Modem/ISDN interface
Test Machine : Intel P4 2.80GHz
tux
 
Posts: 14
Joined: Mon Nov 26, 2012 12:45 pm

Re: Problem in Dahdi trunk

Postby williamconley » Tue Nov 27, 2012 1:59 pm

No match
9067977163
9XXXXXXXXXX
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: Problem in Dahdi trunk

Postby tux » Wed Nov 28, 2012 5:45 am

I tried all dialplan possibilities even exten => _9X.,2,Dial(${TRUNK}/${EXTEN:1},,To)
Really Don't know what the problem is.
GoAutoDial CE 2.1 2.6.18-238.9.1.el5.goPAE 2011 i686
Asterisk 1.4.39.1-vici RPM
Card :WCTDM/4 Wildcard TDM400P REV I Board 5 (MASTER)/Communication controller: Tiger Jet Network Inc. Tiger3XX Modem/ISDN interface
Test Machine : Intel P4 2.80GHz
tux
 
Posts: 14
Joined: Mon Nov 26, 2012 12:45 pm

Re: Problem in Dahdi trunk

Postby DomeDan » Wed Nov 28, 2012 5:54 am

Post the output from CLI when using that dialplan
Vicidial Partner. Region: Sweden/Norway.
Does Vicidial installation, configuration, customization, add-ons, CRM implementation, support, upgrading, network-related, pentesting etc. Remote and onsite assistance.
Email: domedan (at) gmail.com
DomeDan
 
Posts: 1226
Joined: Tue Jan 04, 2011 9:17 am
Location: Sweden

Re: Problem in Dahdi trunk

Postby tux » Wed Nov 28, 2012 6:23 am

can't post all logs , they said my post look too spammy !
Code: Select all
Exec 8600052 @default:1 MeetMe   in new stack
 Starting Local  ****** 90674977162,1 failed so falling back to exten 's'
 Starting  at default,s,1 still failed so falling back to context 'default'
Sent into invalid extension 's' in context 'default' on Local  8600052 A-T default 562f 1
Executing h@default   DeadAGI NODEBUG in new stack
GoAutoDial CE 2.1 2.6.18-238.9.1.el5.goPAE 2011 i686
Asterisk 1.4.39.1-vici RPM
Card :WCTDM/4 Wildcard TDM400P REV I Board 5 (MASTER)/Communication controller: Tiger Jet Network Inc. Tiger3XX Modem/ISDN interface
Test Machine : Intel P4 2.80GHz
tux
 
Posts: 14
Joined: Mon Nov 26, 2012 12:45 pm

Re: Problem in Dahdi trunk

Postby striker » Wed Nov 28, 2012 7:14 am

try the below
[globals]
CONSOLE=Console/dsp ; Console interface for demo
TRUNKXYZ=DAHDI/G0 ; Trunk interface
TRUNKX=Zap/r2


[default]

exten => _9X.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _9X.,2,Dial(${TRUNKYZ}/${EXTEN:1},,TtoR)
exten => _9X.,3,Hangup

Note :

after entering the above in extension.conf
go to asterisk cli and type > reload

you need to dial any number with 9 as prefix foreg:to dia 9876543210 you need to dial as 99876543210
www.striker24x7.com www.youtube.com/c/striker24x7 Telegram/skype id : striker24x7
striker
 
Posts: 962
Joined: Sun Jun 06, 2010 10:25 am

Re: Problem in Dahdi trunk

Postby tux » Wed Nov 28, 2012 7:29 am

Thanks striker for the support.
Here i get a different/new CLI output
Dialing 0674977163 > 90674977163

Code: Select all
  -- Executing [90674977163@default:1] AGI("SIP/100-00000004", "agi://127.0.0.1:4577/call_log") in new stack
    -- AGI Script agi://127.0.0.1:4577/call_log completed, returning 0
    -- Executing [90674977163@default:2] Dial("SIP/100-00000004", "/0674977163||TtoR") in new stack
[Nov 28 07:27:02] WARNING[7914]: channel.c:3765 ast_request: No channel type registered for ''
[Nov 28 07:27:02] WARNING[7914]: app_dial.c:1310 dial_exec_full: Unable to create channel of type '' (cause 66 - Channel not implemented)
  == Everyone is busy/congested at this time (1:0/0/1)
    -- Executing [90674977163@default:3] Hangup("SIP/100-00000004", "") in new stack
  == Spawn extension (default, 90674977163, 3) exited non-zero on 'SIP/100-00000004'
    -- Executing [h@default:1] DeadAGI("SIP/100-00000004", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----66-----CHANUNAVAIL----------") in new stack
GoAutoDial CE 2.1 2.6.18-238.9.1.el5.goPAE 2011 i686
Asterisk 1.4.39.1-vici RPM
Card :WCTDM/4 Wildcard TDM400P REV I Board 5 (MASTER)/Communication controller: Tiger Jet Network Inc. Tiger3XX Modem/ISDN interface
Test Machine : Intel P4 2.80GHz
tux
 
Posts: 14
Joined: Mon Nov 26, 2012 12:45 pm

Re: Problem in Dahdi trunk

Postby tux » Wed Nov 28, 2012 7:40 am

When i start calls from agentweb client i get :
Code: Select all
Warning 13914 app_meetme dot c 2463 conf run  Unable to write frame to channel Local 8600051 default

and
DIAL ALERT:
Call Rejected: CHANUNAVAIL
Cause: 66 - Channel type not implemented.
Close Message
GoAutoDial CE 2.1 2.6.18-238.9.1.el5.goPAE 2011 i686
Asterisk 1.4.39.1-vici RPM
Card :WCTDM/4 Wildcard TDM400P REV I Board 5 (MASTER)/Communication controller: Tiger Jet Network Inc. Tiger3XX Modem/ISDN interface
Test Machine : Intel P4 2.80GHz
tux
 
Posts: 14
Joined: Mon Nov 26, 2012 12:45 pm

Re: Problem in Dahdi trunk

Postby striker » Wed Nov 28, 2012 8:26 am

post your extension.conf

use pastebin.com to upload a large file data

or
go to asterisk cli and type

>dialplan show 90674977163@default
www.striker24x7.com www.youtube.com/c/striker24x7 Telegram/skype id : striker24x7
striker
 
Posts: 962
Joined: Sun Jun 06, 2010 10:25 am

Re: Problem in Dahdi trunk

Postby tux » Wed Nov 28, 2012 8:49 am

Sorry i can't post URL for now "still new user"
pastebin / 93duAemK

Code: Select all
go*CLI> dialplan show 90674977163@default
[ Context 'default' created by 'pbx_config' ]
  '_9X.' =>         1. AGI(agi://127.0.0.1:4577/call_log)         [pbx_config]
                    2. Dial(${TRUNKYZ}/${EXTEN:1}||TtoR)          [pbx_config]
                    3. Hangup()                                   [pbx_config]
GoAutoDial CE 2.1 2.6.18-238.9.1.el5.goPAE 2011 i686
Asterisk 1.4.39.1-vici RPM
Card :WCTDM/4 Wildcard TDM400P REV I Board 5 (MASTER)/Communication controller: Tiger Jet Network Inc. Tiger3XX Modem/ISDN interface
Test Machine : Intel P4 2.80GHz
tux
 
Posts: 14
Joined: Mon Nov 26, 2012 12:45 pm

Re: Problem in Dahdi trunk

Postby tux » Wed Nov 28, 2012 8:54 am

My extensions.conf :
pastebin;com/93duAemK
GoAutoDial CE 2.1 2.6.18-238.9.1.el5.goPAE 2011 i686
Asterisk 1.4.39.1-vici RPM
Card :WCTDM/4 Wildcard TDM400P REV I Board 5 (MASTER)/Communication controller: Tiger Jet Network Inc. Tiger3XX Modem/ISDN interface
Test Machine : Intel P4 2.80GHz
tux
 
Posts: 14
Joined: Mon Nov 26, 2012 12:45 pm

Re: Problem in Dahdi trunk

Postby tux » Wed Nov 28, 2012 9:01 am

oops i get it :)
Code: Select all
[Nov 28 08:59:31]     -- Executing [90674977163@default:1] AGI("SIP/100-00000002", "agi://127.0.0.1:4577/call_log") in new stack
[Nov 28 08:59:31]     -- AGI Script agi://127.0.0.1:4577/call_log completed, returning 0
[Nov 28 08:59:31]     -- Executing [90674977163@default:2] Dial("SIP/100-00000002", "DAHDI/g0/0674977163||To") in new stack
[Nov 28 08:59:31]     -- Called g0/0674977163
[Nov 28 08:59:34]     -- DAHDI/1-1 answered SIP/100-00000002

Thanks everyone especially striker.
GoAutoDial CE 2.1 2.6.18-238.9.1.el5.goPAE 2011 i686
Asterisk 1.4.39.1-vici RPM
Card :WCTDM/4 Wildcard TDM400P REV I Board 5 (MASTER)/Communication controller: Tiger Jet Network Inc. Tiger3XX Modem/ISDN interface
Test Machine : Intel P4 2.80GHz
tux
 
Posts: 14
Joined: Mon Nov 26, 2012 12:45 pm

Re: Problem in Dahdi trunk

Postby tux » Wed Nov 28, 2012 9:08 am

Current extensions.conf :
Code: Select all
[globals]
CONSOLE=Console/dsp                             ; Console interface for demo
TRUNXYZ=DAHDI/G0                                    ; Trunk interface
TRUNKX=DAHDI/g0                                 ; 2nd trunk interface

___________....
Code: Select all
; This 'o' Dial flag is VERY important for VICIDIAL on outbound calls
exten => _9X.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _9X.,2,Dial(${TRUNKX}/${EXTEN:1},,To)
exten => _9X.,3,Hangup

In admin panel > carriers /- Protocol ZAP :
Globals String:
Code: Select all
TRUNKX=DAHDI/g0
Dialplan Entry : exten => _9X.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _9X.,2,Dial(${TRUNKX}/${EXTEN:1},,To)
exten => _9X.,3,Hangup

I didn't edit the extensions.conf manually .That was the problem .
Have a great day Everyone
Best regards.
GoAutoDial CE 2.1 2.6.18-238.9.1.el5.goPAE 2011 i686
Asterisk 1.4.39.1-vici RPM
Card :WCTDM/4 Wildcard TDM400P REV I Board 5 (MASTER)/Communication controller: Tiger Jet Network Inc. Tiger3XX Modem/ISDN interface
Test Machine : Intel P4 2.80GHz
tux
 
Posts: 14
Joined: Mon Nov 26, 2012 12:45 pm


Return to General Discussion

Who is online

Users browsing this forum: Google [Bot] and 64 guests