Askozia Forums
May 17, 2012, 03:21:47 pm *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Dahdi line issue  (Read 803 times)
gmarchionni
Sr. Member
****

Karma: -123
Posts: 141


View Profile
« on: June 27, 2011, 02:40:26 pm »

hi again,

another bug.
Dahdi line take a lot before it starts ringing.  (only in 2.1 as in r1723was working fine.)

what happens is this.

from a external phone call a analog number, then wait until it rings. When it starts ringing, you hear a click as if someone changed line....and you can hear 2 beeps for ringing. In the meantime no analog or sip phones rings....
Right after the second ring both sip and dahdi phones ring together, while in r1723 sip started ringing imediately and dahdi lines a couple rings after.
Logged
Sebastian
Askozia Staff
Hero Member
*

Karma: 25
Posts: 552


View Profile
« Reply #1 on: June 28, 2011, 10:38:06 am »

Hi,

are you using the automatic fax detection?
Logged
gmarchionni
Sr. Member
****

Karma: -123
Posts: 141


View Profile
« Reply #2 on: June 28, 2011, 12:52:02 pm »

yes.
But even if i disable the automatic fax function it still takes 2 rings before even the softphones start ringing.


Here's a bit of logging:


Code:
  -- Starting simple switch on 'DAHDI/1-1'
       > doing dnsmgr_lookup for 'voip.eutelia.it'
       > ast_get_srv: SRV lookup for '_sip._udp.voip.eutelia.it' mapped to host voip.eutelia.it, port 5060
       > doing dnsmgr_lookup for 'voip.eutelia.it'
       > ast_get_srv: SRV lookup for '_sip._udp.voip.eutelia.it' mapped to host voip.eutelia.it, port 5060
       > doing dnsmgr_lookup for 'voip.eutelia.it'
       > ast_get_srv: SRV lookup for '_sip._udp.voip.eutelia.it' mapped to host voip.eutelia.it, port 5060
       > doing dnsmgr_lookup for 'voip.eutelia.it'
       > ast_get_srv: SRV lookup for '_sip._udp.voip.eutelia.it' mapped to host voip.eutelia.it, port 5060
       > doing dnsmgr_lookup for 'voip.eutelia.it'
       > ast_get_srv: SRV lookup for '_sip._udp.voip.eutelia.it' mapped to host voip.eutelia.it, port 5060
       > doing dnsmgr_lookup for 'voip.eutelia.it'
       > ast_get_srv: SRV lookup for '_sip._udp.voip.eutelia.it' mapped to host voip.eutelia.it, port 5060
       > doing dnsmgr_lookup for 'voip.eutelia.it'
       > ast_get_srv: SRV lookup for '_sip._udp.voip.eutelia.it' mapped to host voip.eutelia.it, port 5060
       > doing dnsmgr_lookup for 'voip.eutelia.it'
       > ast_get_srv: SRV lookup for '_sip._udp.voip.eutelia.it' mapped to host voip.eutelia.it, port 5060
       > doing dnsmgr_lookup for 'voip.eutelia.it'
       > ast_get_srv: SRV lookup for '_sip._udp.voip.eutelia.it' mapped to host voip.eutelia.it, port 5060
       > doing dnsmgr_lookup for 'voip.eutelia.it'
       > ast_get_srv: SRV lookup for '_sip._udp.voip.eutelia.it' mapped to host voip.eutelia.it, port 5060
    -- Executing [s@ANALOG-PROVIDER-6167827984e0680cc797a6-incoming:1] NoOp("DAHDI/1-1", "incoming call from provider: Casa to s") in new stack
    -- Executing [s@ANALOG-PROVIDER-6167827984e0680cc797a6-incoming:2] Set("DAHDI/1-1", "CDR(UserField)=inbound") in new stack
    -- Executing [s@ANALOG-PROVIDER-6167827984e0680cc797a6-incoming:3] Set("DAHDI/1-1", "_PICKUPMARK=401") in new stack
    -- Executing [s@ANALOG-PROVIDER-6167827984e0680cc797a6-incoming:4] Set("DAHDI/1-1", "LOOP=0") in new stack
    -- Executing [s@ANALOG-PROVIDER-6167827984e0680cc797a6-incoming:5] GosubIf("DAHDI/1-1", "1?macro-checkcf,s,1(401)") in new stack
    -- Executing [s@macro-checkcf:1] NoOp("DAHDI/1-1", "Checking CF for 401") in new stack
    -- Executing [s@macro-checkcf:2] Set("DAHDI/1-1", "LOCAL(extension)=401") in new stack
    -- Executing [s@macro-checkcf:3] Set("DAHDI/1-1", "LOCAL(cf_destination)=") in new stack
    -- Executing [s@macro-checkcf:4] GotoIf("DAHDI/1-1", "0?has-cf,1:return,1") in new stack
    -- Goto (macro-checkcf,return,1)
    -- Executing [return@macro-checkcf:1] Set("DAHDI/1-1", "CF=no") in new stack
    -- Executing [return@macro-checkcf:2] Goto("DAHDI/1-1", "internal,401,1") in new stack
    -- Goto (internal,401,1)
    -- Executing [401@internal:1] NoOp("DAHDI/1-1", "internal calling internal phone: Default Extension - <401>") in new stack
    -- Executing [401@internal:2] Set("DAHDI/1-1", "_PICKUPMARK=401") in new stack
    -- Executing [401@internal:3] Set("DAHDI/1-1", "LOOP=0") in new stack
    -- Executing [401@internal:4] GosubIf("DAHDI/1-1", "0?macro-checkcf,s,1(401)") in new stack
    -- Executing [401@internal:5] Set("DAHDI/1-1", "HASVOICEMAIL=yes") in new stack
    -- Executing [401@internal:6] Set("DAHDI/1-1", "MISSEDCAUSE=hungup") in new stack
    -- Executing [401@internal:7] Set("DAHDI/1-1", "SENDNOTIFICATIONS=my mail") in new stack
    -- Executing [401@internal:8] Macro("DAHDI/1-1", "main,SIP/401,401,401,tTo,15") in new stack
    -- Executing [s@macro-main:1] Dial("DAHDI/1-1", "SIP/401,15,tTo") in new stack
  == Using SIP RTP CoS mark 5
    -- Called 401
    -- SIP/401-00000001 is ringing
  == Spawn extension (macro-main, s, 1) exited non-zero on 'DAHDI/1-1' in macro 'main'
  == Spawn extension (internal, 401, 8) exited non-zero on 'DAHDI/1-1'
    -- Executing [h@internal:1] NoOp("DAHDI/1-1", "Entering the internal context hangup extension") in new stack
    -- Executing [h@internal:2] Macro("DAHDI/1-1", "missedcallmail") in new stack
    -- Executing [s@macro-missedcallmail:1] NoOp("DAHDI/1-1", "Entering the missed call mail macro") in new stack
    -- Executing [s@macro-missedcallmail:2] NoOp("DAHDI/1-1", "DIALSTATUS: CANCEL") in new stack
    -- Executing [s@macro-missedcallmail:3] ExecIf("DAHDI/1-1", "0?MacroExit()") in new stack
    -- Executing [s@macro-missedcallmail:4] NoOp("DAHDI/1-1", "SENDNOTIFICATIONS: my mail") in new stack
    -- Executing [s@macro-missedcallmail:5] ExecIf("DAHDI/1-1", "0?MacroExit()") in new stack
    -- Executing [s@macro-missedcallmail:6] NoOp("DAHDI/1-1", "MISSEDCAUSE: hungup") in new stack
    -- Executing [s@macro-missedcallmail:7] ExecIf("DAHDI/1-1", "0?MacroExit()") in new stack
    -- Executing [s@macro-missedcallmail:8] NoOp("DAHDI/1-1", "VMSTATUS: ") in new stack
    -- Executing [s@macro-missedcallmail:9] ExecIf("DAHDI/1-1", "0?MacroExit()") in new stack
    -- Executing [s@macro-missedcallmail:10] Set("DAHDI/1-1", "TMPMAILFILE=/var/asterisk/spool/tmp/email-b149eeb041e339319c6b7ea8a880a86f") in new stack
    -- Executing [s@macro-missedcallmail:11] System("DAHDI/1-1", "touch /var/asterisk/spool/tmp/email-b149eeb041e339319c6b7ea8a880a86f") in new stack
    -- Executing [s@macro-missedcallmail:12] System("DAHDI/1-1", "echo "date: `date`" > /var/asterisk/spool/tmp/email-b149eeb041e339319c6b7ea8a880a86f") in new stack
    -- Executing [s@macro-missedcallmail:13] System("DAHDI/1-1", "echo "to: my mail" >> /var/asterisk/spool/tmp/email-b149eeb041e339319c6b7ea8a880a86f") in new stack
    -- Executing [s@macro-missedcallmail:14] System("DAHDI/1-1", "echo "subject: Missed Call (hungup)" >> /var/asterisk/spool/tmp/email-b149eeb041e339319c6b7ea8a880a86f") in new stack
    -- Executing [s@macro-missedcallmail:15] System("DAHDI/1-1", "echo "from: AskoziaPBX Notifications <my mail>" >> /var/asterisk/spool/tmp/email-b149eeb041e339319c6b7ea8a880a86f") in new stack
    -- Executing [s@macro-missedcallmail:16] System("DAHDI/1-1", "echo >> /var/asterisk/spool/tmp/email-b149eeb041e339319c6b7ea8a880a86f") in new stack
    -- Executing [s@macro-missedcallmail:17] System("DAHDI/1-1", "echo "2011-06-28 - 15:32 from "" <>" >> /var/asterisk/spool/tmp/email-b149eeb041e339319c6b7ea8a880a86f") in new stack
    -- Executing [s@macro-missedcallmail:18] System("DAHDI/1-1", "/usr/bin/msmtp -C /etc/msmtp.conf -t < /var/asterisk/spool/tmp/email-b149eeb041e339319c6b7ea8a880a86f") in new stack
    -- Executing [s@macro-missedcallmail:19] System("DAHDI/1-1", "rm /var/asterisk/spool/tmp/email-b149eeb041e339319c6b7ea8a880a86f") in new stack
    -- Hanging up on 'DAHDI/1-1'
    -- Hungup 'DAHDI/1-1'
« Last Edit: June 28, 2011, 12:59:29 pm by gmarchionni » Logged
Sebastian
Askozia Staff
Hero Member
*

Karma: 25
Posts: 552


View Profile
« Reply #3 on: June 29, 2011, 08:14:41 am »

Hi,

it looks like a DNS/NAT related problem which is causing this delays. Could you play around with your NAT settings and maybe disable svn lookups?
Logged
gmarchionni
Sr. Member
****

Karma: -123
Posts: 141


View Profile
« Reply #4 on: June 29, 2011, 08:36:39 am »

Hi Sebastian,

DNS SRV lookups are already disabled.
I don't think the issue is dns, because if i call my sip numbers there is no delay, and there is delay if i call from my mobile handphone one of the dahdi lines.....
Could it be a issue with the drivers of the a400p? it was working perfect with previous version of the os.
Logged
Sebastian
Askozia Staff
Hero Member
*

Karma: 25
Posts: 552


View Profile
« Reply #5 on: June 30, 2011, 08:02:32 am »

Working on it. I'll keep you guys updated.  Smiley
Logged
Sebastian
Askozia Staff
Hero Member
*

Karma: 25
Posts: 552


View Profile
« Reply #6 on: July 04, 2011, 08:21:25 am »

Hi,

I think what might solve the problem is to set usecallerid=no in the chan_dahdi.conf.
Could somebody give that a shot? Huh
Logged
gmarchionni
Sr. Member
****

Karma: -123
Posts: 141


View Profile
« Reply #7 on: July 04, 2011, 08:29:17 am »

i'll give that a try this evening or at the maximum tomorrow afternoon.

My askozia setup has crashed this morning...and i don't know why.  I managed to see that it was very slow with pings and then after tryng to reboot it never came back up again...i'll investigate tonight.....could it be a 2.1 issue?
Logged
gmarchionni
Sr. Member
****

Karma: -123
Posts: 141


View Profile
« Reply #8 on: July 04, 2011, 07:06:57 pm »

Hi Sebastian,

I'm afraid this does not solve the problem.
It takes 2 rings, and then you can hear a click and a different ringing tone....and when the first different ring starts, the sip phone start ringing.
As i said in a previous post, if i go back to 2.0 the sip phone start ringing right away.  (the analog phones never rang right away.)

Cheers.
Giulio
« Last Edit: July 04, 2011, 07:09:04 pm by gmarchionni » Logged
giovanni.v
Hero Member
*****

Karma: 53
Posts: 670


View Profile
« Reply #9 on: July 04, 2011, 08:27:24 pm »

It takes 2 rings, and then you can hear a click and a different ringing tone....and when the first different ring starts, the sip phone start ringing
This is an evidence that suggest an auto detect issue.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.156 seconds with 18 queries.