Author Topic: Probleb with Dialstatus  (Read 2543 times)

nikaeen

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
    • Email
Probleb with Dialstatus
« on: March 06, 2015, 13:19:37 »
Dear Friends,
I setup Wombat with different version of asterisk in elastix with same problem! and my problem is which it couldn't play sound after callee answered. it start to play sound exactly 5 seconds after start dialing and changing parameters such as that one in dialplan couldn't help. and then the connection have been hanged up by asterisk but not by wombat and therefore it couldn't call the next number in the list. Is there any help?

[dialout]

exten => s,1,Dial(DAHDI/g0/${num},30000,T)
exten => s,n,NoOp( Dial Status: ${DIALSTATUS})
exten => s,n,Goto(s-${DIALSTATUS},1)

exten => s-NOANSWER,1,Hangup
exten => s-CONGESTION,1,Congestion
exten => s-CANCEL,1,Hangup
exten => s-BUSY,1,Busy
exten => s,n,Hangup

exten => 999,1,Answer
exten => 999,n,Set(CALLERID(num)=#${ID} ${PERS})
exten => 999,n,Goto(from-internal,999,1)

and
Campaign:TestCamp 15.03.06 12:04:48 - Number dialled:09217275149 - Retry #:0
On trunk:ZAp - On end-point:PHONE 999 - Server:Mypbx
Wombat-ID:886234678 - Asterisk ID:1425630889.90 - Channel:DAHDI/4-1
Call state:CONNECTED - Originated at:15/03/06 12:04:49 - Connected at:15/03/06 12:04:55 - Closed at:-


and



   -- Channel will hangup at 2015-03-06 12:05:29.760 IRST.
[2015-03-06 12:04:49] NOTICE[9998][C-00000055]: channel.c:5681 __ast_request_and_dial: Unable to request channel DAHDI/g0/09177367031@dialout/n
[2015-03-06 12:04:49] NOTICE[10000][C-00000056]: channel.c:5681 __ast_request_and_dial: Unable to request channel DAHDI/g0/09173162149@dialout/n
       > Channel DAHDI/4-1 was answered
    -- Executing [999@dialout:1] Answer("DAHDI/4-1", "") in new stack
    -- Executing [999@dialout:2] Set("DAHDI/4-1", "CALLERID(num)=# ") in new stack
    -- Executing [999@dialout:3] Goto("DAHDI/4-1", "from-internal,999,1") in new stack
    -- Goto (from-internal,999,1)
    -- Executing [999@from-internal:1] NoOp("DAHDI/4-1", "Running miscapp 2: PlayMessage") in new stack
    -- Executing [999@from-internal:2] Macro("DAHDI/4-1", "user-callerid,") in new stack
    -- Executing [s@macro-user-callerid:1] Set("DAHDI/4-1", "TOUCH_MONITOR=1425630889.90") in new stack
    -- Executing [s@macro-user-callerid:2] Set("DAHDI/4-1", "AMPUSER=#") in new stack
    -- Executing [s@macro-user-callerid:3] GotoIf("DAHDI/4-1", "0?report") in new stack
    -- Executing [s@macro-user-callerid:4] ExecIf("DAHDI/4-1", "1?Set(REALCALLERIDNUM=#)") in new stack
    -- Executing [s@macro-user-callerid:5] Set("DAHDI/4-1", "AMPUSER=") in new stack
    -- Executing [s@macro-user-callerid:6] GotoIf("DAHDI/4-1", "0?limit") in new stack
    -- Executing [s@macro-user-callerid:7] Set("DAHDI/4-1", "AMPUSERCIDNAME=") in new stack
    -- Executing [s@macro-user-callerid:8] GotoIf("DAHDI/4-1", "1?report") in new stack
    -- Goto (macro-user-callerid,s,15)
    -- Executing [s@macro-user-callerid:15] GotoIf("DAHDI/4-1", "0?continue") in new stack
    -- Executing [s@macro-user-callerid:16] Set("DAHDI/4-1", "__TTL=64") in new stack
    -- Executing [s@macro-user-callerid:17] GotoIf("DAHDI/4-1", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,28)
    -- Executing [s@macro-user-callerid:28] Set("DAHDI/4-1", "CALLERID(number)=#") in new stack
    -- Executing [s@macro-user-callerid:29] Set("DAHDI/4-1", "CALLERID(name)=") in new stack
    -- Executing [s@macro-user-callerid:30] Set("DAHDI/4-1", "CDR(cnum)=#") in new stack
    -- Executing [s@macro-user-callerid:31] Set("DAHDI/4-1", "CDR(cnam)=") in new stack
    -- Executing [s@macro-user-callerid:32] Set("DAHDI/4-1", "CHANNEL(language)=en") in new stack
    -- Executing [999@from-internal:3] Goto("DAHDI/4-1", "app-announcement-1,s,1") in new stack
    -- Goto (app-announcement-1,s,1)
    -- Executing [s@app-announcement-1:1] GotoIf("DAHDI/4-1", "1?begin") in new stack
    -- Goto (app-announcement-1,s,4)
    -- Executing [s@app-announcement-1:4] NoOp("DAHDI/4-1", "Playing announcement wbtMessage") in new stack
    -- Executing [s@app-announcement-1:5] Playback("DAHDI/4-1", "custom/BroadcastMessage,noanswer") in new stack
    -- <DAHDI/4-1> Playing 'custom/BroadcastMessage.slin' (language 'en')
    -- Remote UNIX connection
    -- Remote UNIX connection disconnected
  == Spawn extension (app-announcement-1, s, 5) exited non-zero on 'DAHDI/4-1'
    -- Hanging up on 'DAHDI/4-1'


nikaeen

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
    • Email
Re: Problem with Dialstatus
« Reply #1 on: March 08, 2015, 12:49:40 »
Dear,
I found a step ahead but another problem came up. I edited chan_dahdi.conf and add hanguponpolarityswitch=yes
answeronpolarityswitch=yes
and
callprogress = yes
and now it doesn't start automaticlly but it cannot play message. it seems didn't recognize the call have been answered. any help? or comment?

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: Probleb with Dialstatus
« Reply #2 on: June 17, 2015, 10:42:35 »
The format for "Unable to request channel DAHDI/g0/09177367031@dialout/n" is incorrect. Should be something like "Unable to request channel DAHDI/g0/09177367031" instead!