[Asterisk-Users] Re: wctdm.c RING_DEBOUNCE

Ash Thakrar ash at largedesign.com
Thu Jun 8 07:45:36 MST 2006


Hi All,

I have setup Asterisk at Home 2.8 and using Digium TDM400P cards

Whenever I dial out and finish the conversation and put the SIP Snom320
phone down, it rings back twice!!!

If you pick up the phone there is no answer.....although you think it's a
genuine call!!

If I change the RING_DEBOUNCE value in wctdm.c from 64 to 128 and then
recompiling zaptel would it resolve problem??

I have also attached the logs capture after a call has been made; please can
anyone help on how to stop this.

Regards
Ash




______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________
-------------- next part --------------
  == Spawn extension (macro-dialout-trunk, s, 14) exited non-zero on 'SIP/200-c98a' in macro 'dialout-trunk'
  == Spawn extension (macro-dialout-trunk, s, 14) exited non-zero on 'SIP/200-c98a'
    -- Executing Macro("SIP/200-d6c5", "dialout-trunk|1|90775xxxxx||") in new stack
    -- Executing GotoIf("SIP/200-d6c5", "1?3:2)") in new stack
    -- Goto (macro-dialout-trunk,s,3)
    -- Executing Macro("SIP/200-d6c5", "user-callerid") in new stack
    -- Executing DBget("SIP/200-d6c5", "AMPUSER=DEVICE/200/user") in new stack
    -- DBget: varname=AMPUSER, family=DEVICE, key=200/user
    -- DBget: set variable AMPUSER to 200
    -- Executing DBget("SIP/200-d6c5", "AMPUSERCIDNAME=AMPUSER/200/cidname") in new stack
    -- DBget: varname=AMPUSERCIDNAME, family=AMPUSER, key=200/cidname
    -- DBget: set variable AMPUSERCIDNAME to Reception
    -- Executing GotoIf("SIP/200-d6c5", "0?5") in new stack
    -- Executing SetCallerID("SIP/200-d6c5", ""Reception" <200>") in new stack
    -- Executing NoOp("SIP/200-d6c5", "Using CallerID "Reception" <200>") in new stack
    -- Executing Macro("SIP/200-d6c5", "record-enable|200|OUT") in new stack
    -- Executing GotoIf("SIP/200-d6c5", "0 > 0?2:4") in new stack
    -- Goto (macro-record-enable,s,4)
    -- Executing AGI("SIP/200-d6c5", "recordingcheck|20060606-110927|1149588567.614") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
  recordingcheck|20060606-110927|1149588567.614: Outbound recording not enabled
    -- AGI Script recordingcheck completed, returning 0
    -- Executing NoOp("SIP/200-d6c5", "No recording needed") in new stack
    -- Executing Macro("SIP/200-d6c5", "outbound-callerid|1") in new stack
    -- Executing DBget("SIP/200-d6c5", "USEROUTCID=AMPUSER/200/outboundcid") in new stack
    -- DBget: varname=USEROUTCID, family=AMPUSER, key=200/outboundcid
    -- DBget: set variable USEROUTCID to
    -- Executing GotoIf("SIP/200-d6c5", "0?4") in new stack
    -- Executing SetCallerID("SIP/200-d6c5", "02077292040") in new stack
    -- Executing GotoIf("SIP/200-d6c5", "1?6") in new stack
    -- Goto (macro-outbound-callerid,s,6)
    -- Executing NoOp("SIP/200-d6c5", "CallerID set to 02077292040") in new stack
    -- Executing SetGroup("SIP/200-d6c5", "OUT_1") in new stack
    -- Executing CheckGroup("SIP/200-d6c5", "") in new stack
    -- Executing SetVar("SIP/200-d6c5", "DIAL_NUMBER=90775xxxxx") in new stack
    -- Executing SetVar("SIP/200-d6c5", "DIAL_TRUNK=1") in new stack
    -- Executing AGI("SIP/200-d6c5", "fixlocalprefix") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
  fixlocalprefix: Removed prefix. New number: 0775xxxxxx
    -- AGI Script fixlocalprefix completed, returning 0
    -- Executing SetVar("SIP/200-d6c5", "OUTNUM=0775xxxxxxx") in new stack
    -- Executing Cut("SIP/200-d6c5", "custom=OUT_1|:|1") in new stack
    -- Executing GotoIf("SIP/200-d6c5", "0?16") in new stack
    -- Executing Dial("SIP/200-d6c5", "ZAP/g0/0775xxxxxxx") in new stack
    -- Called g0/0775xxxxxxxx
    -- Zap/1-1 answered SIP/200-d6c5
    -- Hungup 'Zap/1-1'
  == Spawn extension (macro-dialout-trunk, s, 14) exited non-zero on 'SIP/200-d6c5' in macro 'dialout-trunk'
  == Spawn extension (macro-dialout-trunk, s, 14) exited non-zero on 'SIP/200-d6c5'
  == Starting post polarity CID detection on channel 1
    -- Starting simple switch on 'Zap/1-1'
    -- Executing Set("Zap/1-1", "FROM_DID=s") in new stack
    -- Executing Goto("Zap/1-1", "ext-group|1|1") in new stack
    -- Goto (ext-group,1,1)
    -- Executing Macro("Zap/1-1", "user-callerid|") in new stack
    -- Executing DBget("Zap/1-1", "AMPUSER=DEVICE//user") in new stack
    -- DBget: varname=AMPUSER, family=DEVICE, key=/user
    -- DBget: Value not found in database.
    -- Executing DBget("Zap/1-1", "AMPUSERCIDNAME=AMPUSER//cidname") in new stack
    -- DBget: varname=AMPUSERCIDNAME, family=AMPUSER, key=/cidname
    -- DBget: Value not found in database.
    -- Executing GotoIf("Zap/1-1", "1?5") in new stack
    -- Goto (macro-user-callerid,s,5)
    -- Executing NoOp("Zap/1-1", "Using CallerID ") in new stack
    -- Executing GotoIf("Zap/1-1", "0?NEWPREFIX") in new stack
    -- Executing Set("Zap/1-1", "CALLERID(name)=") in new stack
    -- Executing Set("Zap/1-1", "RGPREFIX=") in new stack
    -- Executing Set("Zap/1-1", "CALLERID(name)=") in new stack
    -- Executing Set("Zap/1-1", "RecordMethod=Group") in new stack
    -- Executing Macro("Zap/1-1", "record-enable||Group") in new stack
    -- Executing GotoIf("Zap/1-1", "0 > 0?2:4") in new stack
    -- Goto (macro-record-enable,s,4)
    -- Executing AGI("Zap/1-1", "recordingcheck|20060606-110944|1149588584.616") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
  recordingcheck|20060606-110944|1149588584.616: Extension List not set -- nothing to do
    -- AGI Script recordingcheck completed, returning 0
    -- Executing NoOp("Zap/1-1", "No recording needed") in new stack
    -- Executing Set("Zap/1-1", "RingGroupMethod=ringall") in new stack
    -- Executing Macro("Zap/1-1", "dial|12|tr|200-201-210-211-213-214") in new stack
    -- Executing GotoIf("Zap/1-1", "0?4:2") in new stack
    -- Goto (macro-dial,s,2)
    -- Executing GotoIf("Zap/1-1", "0?5:4") in new stack
    -- Goto (macro-dial,s,4)
    -- Executing AGI("Zap/1-1", "dialparties.agi") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
    --  dialparties.agi: priority = 4
    --  dialparties.agi: callingani2 = 0
    --  dialparties.agi: accountcode =
    --  dialparties.agi: channel = Zap/1-1
    --  dialparties.agi: callerid = unknown
    --  dialparties.agi: context = macro-dial
    --  dialparties.agi: callington = 0
    --  dialparties.agi: dnid = unknown
    --  dialparties.agi: request = dialparties.agi
    --  dialparties.agi: calleridname = unknown
    --  dialparties.agi: extension = s
    --  dialparties.agi: language = en
    --  dialparties.agi: uniqueid = 1149588584.616
    --  dialparties.agi: callingpres = 0
    --  dialparties.agi: type = Zap
    --  dialparties.agi: rdnis = unknown
    --  dialparties.agi: callingtns = 0
    --  dialparties.agi: enhanced = 0.0
  dialparties.agi: Caller ID name is 'unknown' number is 'unknown'
  dialparties.agi: Methodology of ring is  'ringall'
    --  dialparties.agi: Added extension 200 to extension map
    --  dialparties.agi: Added extension 201 to extension map
    --  dialparties.agi: Added extension 210 to extension map
    --  dialparties.agi: Added extension 211 to extension map
    --  dialparties.agi: Added extension 213 to extension map
    --  dialparties.agi: Added extension 214 to extension map
    --  dialparties.agi: Extension 200 cf is disabled
    --  dialparties.agi: Extension 201 cf is disabled
    --  dialparties.agi: Extension 210 cf is disabled
    --  dialparties.agi: Extension 214 cf is disabled
    --  dialparties.agi: Extension 213 cf is disabled
    --  dialparties.agi: Extension 211 cf is disabled
    --  dialparties.agi: Extension 200 do not disturb is disabled
    --  dialparties.agi: Extension 201 do not disturb is disabled
    --  dialparties.agi: Extension 210 do not disturb is disabled
    --  dialparties.agi: Extension 214 do not disturb is disabled
    --  dialparties.agi: Extension 213 do not disturb is disabled
    --  dialparties.agi: Extension 211 do not disturb is disabled
       >  dialparties.agi: extnum: 200
       >  dialparties.agi: exthascw: 0
       >  dialparties.agi: exthascfb: 0
       >  dialparties.agi: extcfb:
    --  dialparties.agi: Checking CW and CFB status for extension 200
  == Parsing '/etc/asterisk/manager.conf': Found
  == Parsing '/etc/asterisk/manager_custom.conf': Found
  == Manager 'admin' logged on from 127.0.0.1
    --  dialparties.agi: Correct AMPMGRUSER and AMPMGRPASS
  == Manager 'admin' logged off from 127.0.0.1
       >  dialparties.agi: extstate: 0
  dialparties.agi: Extension 200 is available...skipping checks
    --  dialparties.agi: DbSet CALLTRACE/200 to unknown
       >  dialparties.agi: extnum: 201
       >  dialparties.agi: exthascw: 0
       >  dialparties.agi: exthascfb: 0
       >  dialparties.agi: extcfb:
    --  dialparties.agi: Checking CW and CFB status for extension 201
  == Parsing '/etc/asterisk/manager.conf': Found
  == Parsing '/etc/asterisk/manager_custom.conf': Found
  == Manager 'admin' logged on from 127.0.0.1
    --  dialparties.agi: Correct AMPMGRUSER and AMPMGRPASS
  == Manager 'admin' logged off from 127.0.0.1
       >  dialparties.agi: extstate: 0
  dialparties.agi: Extension 201 is available...skipping checks
    --  dialparties.agi: DbSet CALLTRACE/201 to unknown
       >  dialparties.agi: extnum: 210
       >  dialparties.agi: exthascw: 0
       >  dialparties.agi: exthascfb: 0
       >  dialparties.agi: extcfb:
    --  dialparties.agi: Checking CW and CFB status for extension 210
  == Parsing '/etc/asterisk/manager.conf': Found
  == Parsing '/etc/asterisk/manager_custom.conf': Found
  == Manager 'admin' logged on from 127.0.0.1
    --  dialparties.agi: Correct AMPMGRUSER and AMPMGRPASS
  == Manager 'admin' logged off from 127.0.0.1
       >  dialparties.agi: extstate: 0
  dialparties.agi: Extension 210 is available...skipping checks
    --  dialparties.agi: DbSet CALLTRACE/210 to unknown
       >  dialparties.agi: extnum: 214
       >  dialparties.agi: exthascw: 0
       >  dialparties.agi: exthascfb: 0
       >  dialparties.agi: extcfb:
    --  dialparties.agi: Checking CW and CFB status for extension 214
  == Parsing '/etc/asterisk/manager.conf': Found
  == Parsing '/etc/asterisk/manager_custom.conf': Found
  == Manager 'admin' logged on from 127.0.0.1
    --  dialparties.agi: Correct AMPMGRUSER and AMPMGRPASS
  == Manager 'admin' logged off from 127.0.0.1
       >  dialparties.agi: extstate: 0
  dialparties.agi: Extension 214 is available...skipping checks
    --  dialparties.agi: DbSet CALLTRACE/214 to unknown
       >  dialparties.agi: extnum: 213
       >  dialparties.agi: exthascw: 0
       >  dialparties.agi: exthascfb: 0
       >  dialparties.agi: extcfb:
    --  dialparties.agi: Checking CW and CFB status for extension 213
  == Parsing '/etc/asterisk/manager.conf': Found
  == Parsing '/etc/asterisk/manager_custom.conf': Found
  == Manager 'admin' logged on from 127.0.0.1
    --  dialparties.agi: Correct AMPMGRUSER and AMPMGRPASS
  == Manager 'admin' logged off from 127.0.0.1
       >  dialparties.agi: extstate: 0
  dialparties.agi: Extension 213 is available...skipping checks
    --  dialparties.agi: DbSet CALLTRACE/213 to unknown
       >  dialparties.agi: extnum: 211
       >  dialparties.agi: exthascw: 0
       >  dialparties.agi: exthascfb: 0
       >  dialparties.agi: extcfb:
    --  dialparties.agi: Checking CW and CFB status for extension 211
  == Parsing '/etc/asterisk/manager.conf': Found
  == Parsing '/etc/asterisk/manager_custom.conf': Found
  == Manager 'admin' logged on from 127.0.0.1
    --  dialparties.agi: Correct AMPMGRUSER and AMPMGRPASS
  == Manager 'admin' logged off from 127.0.0.1
       >  dialparties.agi: extstate: 0
  dialparties.agi: Extension 211 is available...skipping checks
    --  dialparties.agi: DbSet CALLTRACE/211 to unknown
    -- AGI Script dialparties.agi completed, returning 0
    -- Executing Dial("Zap/1-1", "SIP/200&SIP/201&SIP/210&SIP/214&SIP/213&SIP/211|12|tr") in new stack
    -- Called 200
    -- Called 201
    -- Called 210
    -- Called 214
    -- Called 213
    -- Called 211
    -- Got SIP response 486 "Busy Here" back from 192.168.0.132
    -- SIP/200-1cb7 is ringing
    -- SIP/201-3279 is busy
    -- SIP/214-d3ce is ringing
    -- SIP/211-63b0 is ringing
    -- SIP/213-3454 is ringing
    -- SIP/210-2c03 is ringing
    -- SIP/200-1cb7 is ringing
    -- SIP/214-d3ce is ringing
    -- SIP/213-3454 is ringing
    -- SIP/211-63b0 is ringing
    -- SIP/210-2c03 is ringing
    -- SIP/200-1cb7 is ringing
    -- SIP/214-d3ce is ringing
    -- SIP/213-3454 is ringing
    -- SIP/211-63b0 is ringing
    -- SIP/210-2c03 is ringing
    -- SIP/211-63b0 answered Zap/1-1
  == Spawn extension (macro-dial, s, 10) exited non-zero on 'Zap/1-1' in macro 'dial'
  == Spawn extension (macro-dial, s, 10) exited non-zero on 'Zap/1-1'
    -- Hungup 'Zap/1-1'


More information about the asterisk-users mailing list