Koozali.org: home of the SME Server

Incomming call Problem ?

Offline fpausp

  • *
  • 728
  • +0/-0
Incomming call Problem ?
« on: January 08, 2010, 02:39:04 PM »
Hi,

After the last update to 2.6.9-89.0.16.EL and the change from zaptel to dahdi and sail-2.3.2-12 i can not receive calls from pstn (PCI Card: pci:0000:07:02.0 wctdm24xxp+ d161:8005 Wildcard TDM410P).

How can i fix/debug this problem ?
Viribus unitis

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: Incomming call Problem ?
« Reply #1 on: January 08, 2010, 10:10:21 PM »
start with the asterisk console in verbose mode

asterisk -rvvvvvv

send you call in and see what (if anything) happens.

Offline fpausp

  • *
  • 728
  • +0/-0
Re: Incomming call Problem ?
« Reply #2 on: January 09, 2010, 12:59:54 AM »
there is no output when i do asterisk -vvvr and call the number, no reaction.
Viribus unitis

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: Incomming call Problem ?
« Reply #3 on: January 09, 2010, 10:20:25 AM »
I would guess that dahdi isn't loaded correctly.

at asterisk console do

dahdi show status
If it isn't there then you'll get an eror message. 

KInd Regards

S


Offline fpausp

  • *
  • 728
  • +0/-0
Re: Incomming call Problem ?
« Reply #4 on: January 09, 2010, 08:20:11 PM »
server*CLI> dahdi show status
No such command 'dahdi show status' (type 'help dahdi show' for other possible commands)
Viribus unitis

Offline fpausp

  • *
  • 728
  • +0/-0
Re: Incomming call Problem ?
« Reply #5 on: January 09, 2010, 09:27:53 PM »
[root@server ~]# yum list | grep dahdi
dahdi-linux.i386                                  2.2.0.2-65.el4         installed       
dahdi-linux-kmdl-2.6.9-89.0.16.EL.i686   2.2.0.2-65.el4         installed       
dahdi-tools.i386                                  2.1.0.2-59.el4         installed       
Viribus unitis

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: Incomming call Problem ?
« Reply #6 on: January 09, 2010, 10:32:20 PM »
Quote
server*CLI> dahdi show status
No such command 'dahdi show status' (type 'help dahdi show' for other possible commands)

Dahdi isn't loading.  This probabaly means that the dahdi conf files are wrong.

You'll need to check Asterisk startup output to see why it isn't loading DAHDI successfully.

Kind REgards

S

Offline fpausp

  • *
  • 728
  • +0/-0
Re: Incomming call Problem ?
« Reply #7 on: January 16, 2010, 07:33:17 PM »
Hi,

dahdi status is ok now, it shows me the tdm-card ...

when i get a call over pstn it looks like this:

Code: [Select]
-- Starting simple switch on 'DAHDI/3-1'
    -- Executing [s@mainmenu:1] GotoIf("DAHDI/3-1", "1?DAHDI3-1|1") in new stack
    -- Goto (mainmenu,DAHDI3-1,1)
    -- Executing [DAHDI3-1@mainmenu:1] AGI("DAHDI/3-1", "selintra|Inbound|DAHDI3-1|DAHDI3-1") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/selintra
[Jan 16 19:25:11] ERROR[8165]: utils.c:966 ast_carefulwrite: write() returned error: Broken pipe
    -- AGI Script selintra completed, returning 0
    -- Sent into invalid extension 'DAHDI3-1' in context 'extensions' on DAHDI/3-1
    -- Executing [i@extensions:1] PlayTones("DAHDI/3-1", "congestion") in new stack
    -- Executing [i@extensions:2] Hangup("DAHDI/3-1", "") in new stack
  == Spawn extension (extensions, i, 2) exited non-zero on 'DAHDI/3-1'
    -- Executing [h@extensions:1] Hangup("DAHDI/3-1", "") in new stack
  == Spawn extension (extensions, h, 1) exited non-zero on 'DAHDI/3-1'
    -- Hungup 'DAHDI/3-1'
    -- Starting simple switch on 'DAHDI/3-1'
[Jan 16 19:25:20] WARNING[8071]: chan_sip.c:13229 handle_response: Remote host can't match request NOTIFY to call '52df69392d11db776d3d0fe81d4cd793@192.168.0.246'. Giving up.
[Jan 16 19:25:21] NOTICE[8167]: chan_dahdi.c:6836 ss_thread: Got event 18 (Ring Begin)...
    -- Executing [s@mainmenu:1] GotoIf("DAHDI/3-1", "1?DAHDI3-1|1") in new stack
    -- Goto (mainmenu,DAHDI3-1,1)
    -- Executing [DAHDI3-1@mainmenu:1] AGI("DAHDI/3-1", "selintra|Inbound|DAHDI3-1|DAHDI3-1") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/selintra
[Jan 16 19:25:21] ERROR[8167]: utils.c:966 ast_carefulwrite: write() returned error: Broken pipe
    -- AGI Script selintra completed, returning 0
    -- Sent into invalid extension 'DAHDI3-1' in context 'extensions' on DAHDI/3-1
    -- Executing [i@extensions:1] PlayTones("DAHDI/3-1", "congestion") in new stack
    -- Executing [i@extensions:2] Hangup("DAHDI/3-1", "") in new stack
  == Spawn extension (extensions, i, 2) exited non-zero on 'DAHDI/3-1'
    -- Executing [h@extensions:1] Hangup("DAHDI/3-1", "") in new stack
  == Spawn extension (extensions, h, 1) exited non-zero on 'DAHDI/3-1'
    -- Hungup 'DAHDI/3-1'
Viribus unitis

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: Incomming call Problem ?
« Reply #8 on: January 16, 2010, 09:17:08 PM »
Can you run this again please with agi debug turned on.

send the output to admin@aelintra.com

thks

S