problem:sip trunk can not get inbound call

tarowu
Joined: Wed 03 of Mar, 2010

Re: problem:sip trunk can not get inbound call

Posted:Thu 04 of Mar, 2010 (00:53 UTC)
no ideal?
tarowu
Joined: Wed 03 of Mar, 2010

problem:sip trunk can not get inbound call

Posted:Wed 03 of Mar, 2010 (03:02 UTC)
hello everyone,
my configs:
sip trunk
[3002trunk]
disallow=all
host=201.123.115.222
username=3002
secret=3002
type=peer
fromuser=3002
insecure=port,invite
allow=g729
allow=ilbc
allow=ulaw
allow=alaw
dtmfmode=rfc2833
authuser=3002

register=3002:3002@201.123.115.222/3002

zap config
;;;;;;[1001]
signalling=fxo_ks
pickupgroup=
mailbox=1001@device
immediate=no
echotraining=800
echocancelwhenbridged=no
echocancel=yes
context=from-internal
callprogress=no
callgroup=
callerid=device <1001>
busydetect=no
busycount=7
accountcode=
channel=>6


when one call from sip trunk (did 3002), I hope it will be transfered to fxs 1001(zap 6). But when i did it, list like that happen, "everyone is busy/congested at this time"
the detail is
-- Executing [3002@from-sip-external:1] NoOp("SIP/3002-b7c90808", "Received incoming SIP connection from unknown peer to 3002") in new stack
    -- Executing [3002@from-sip-external:2] Set("SIP/3002-b7c90808", "DID=3002") in new stack
    -- Executing [3002@from-sip-external:3] Goto("SIP/3002-b7c90808", "s|1") in new stack
    -- Goto (from-sip-external,s,1)
    -- Executing [s@from-sip-external:1] GotoIf("SIP/3002-b7c90808", "1?from-trunk|3002|1") in new stack
    -- Goto (from-trunk,3002,1)
    -- Executing [3002@from-trunk:1] Set("SIP/3002-b7c90808", "__FROM_DID=3002") in new stack
    -- Executing [3002@from-trunk:2] Gosub("SIP/3002-b7c90808", "app-blacklist-check|s|1") in new stack
    -- Executing [s@app-blacklist-check:1] LookupBlacklist("SIP/3002-b7c90808", "") in new stack
    -- Executing [s@app-blacklist-check:2] GotoIf("SIP/3002-b7c90808", "0?blacklisted") in new stack
    -- Executing [s@app-blacklist-check:3] Return("SIP/3002-b7c90808", "") in new stack
    -- Executing [3002@from-trunk:3] ExecIf("SIP/3002-b7c90808", "0 |Set|CALLERID(name)=3000") in new stack
    -- Executing [3002@from-trunk:4] Set("SIP/3002-b7c90808", "__CALLINGPRES_SV=allowed_not_screened") in new stack
    -- Executing [3002@from-trunk:5] SetCallerPres("SIP/3002-b7c90808", "allowed_not_screened") in new stack
    -- Executing [3002@from-trunk:6] Goto("SIP/3002-b7c90808", "from-did-direct|1001|1") in new stack
    -- Goto (from-did-direct,1001,1)
    -- Executing [1001@from-did-direct:1] Macro("SIP/3002-b7c90808", "exten-vm|novm|1001") in new stack
    -- Executing [s@macro-exten-vm:1] Macro("SIP/3002-b7c90808", "user-callerid") in new stack
    -- Executing [s@macro-user-callerid:1] Set("SIP/3002-b7c90808", "AMPUSER=3000") in new stack
    -- Executing [s@macro-user-callerid:2] GotoIf("SIP/3002-b7c90808", "0?report") in new stack
    -- Executing [s@macro-user-callerid:3] ExecIf("SIP/3002-b7c90808", "1|Set|REALCALLERIDNUM=3000") in new stack
    -- Executing [s@macro-user-callerid:4] Set("SIP/3002-b7c90808", "AMPUSER=") in new stack
    -- Executing [s@macro-user-callerid:5] Set("SIP/3002-b7c90808", "AMPUSERCIDNAME=") in new stack
    -- Executing [s@macro-user-callerid:6] GotoIf("SIP/3002-b7c90808", "1?report") in new stack
    -- Goto (macro-user-callerid,s,11)
    -- Executing [s@macro-user-callerid:11] GotoIf("SIP/3002-b7c90808", "0?continue") in new stack
    -- Executing [s@macro-user-callerid:12] Set("SIP/3002-b7c90808", "__TTL=64") in new stack
    -- Executing [s@macro-user-callerid:13] GotoIf("SIP/3002-b7c90808", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,20)
    -- Executing [s@macro-user-callerid:20] NoOp("SIP/3002-b7c90808", "Using CallerID "wys" <3000>") in new stack
    -- Executing [s@macro-exten-vm:2] Set("SIP/3002-b7c90808", "RingGroupMethod=none") in new stack
    -- Executing [s@macro-exten-vm:3] Set("SIP/3002-b7c90808", "VMBOX=novm") in new stack
    -- Executing [s@macro-exten-vm:4] Set("SIP/3002-b7c90808", "EXTTOCALL=1001") in new stack
    -- Executing [s@macro-exten-vm:5] Set("SIP/3002-b7c90808", "CFUEXT=") in new stack
    -- Executing [s@macro-exten-vm:6] Set("SIP/3002-b7c90808", "CFBEXT=") in new stack
    -- Executing [s@macro-exten-vm:7] Set("SIP/3002-b7c90808", "RT=""") in new stack
    -- Executing [s@macro-exten-vm:8] Macro("SIP/3002-b7c90808", "record-enable|1001|IN") in new stack
    -- Executing [s@macro-record-enable:1] GotoIf("SIP/3002-b7c90808", "1?check") in new stack
    -- Goto (macro-record-enable,s,4)
    -- Executing [s@macro-record-enable:4] AGI("SIP/3002-b7c90808", "recordingcheck|20100303-104140|1267584100.7") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
  recordingcheck|20100303-104140|1267584100.7: Inbound recording not enabled
    -- AGI Script recordingcheck completed, returning 0
    -- Executing [s@macro-record-enable:5] MacroExit("SIP/3002-b7c90808", "") in new stack
    -- Executing [s@macro-exten-vm:9] Macro("SIP/3002-b7c90808", "dial||tr|1001") in new stack
    -- Executing [s@macro-dial:1] GotoIf("SIP/3002-b7c90808", "1?dial") in new stack
    -- Goto (macro-dial,s,3)
    -- Executing [s@macro-dial:3] AGI("SIP/3002-b7c90808", "dialparties.agi") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
  dialparties.agi: Starting New Dialparties.agi
  == Parsing '/etc/asterisk/manager.conf': Found
  == Parsing '/etc/asterisk/manager_additional.conf': Found
  == Parsing '/etc/asterisk/manager_custom.conf': Found
  == Manager 'admin' logged on from 127.0.0.1
  dialparties.agi: Caller ID name is 'wys' number is '3000'
  dialparties.agi: Methodology of ring is  'none'
    --  dialparties.agi: Added extension 1001 to extension map
    --  dialparties.agi: Extension 1001 cf is disabled
    --  dialparties.agi: Extension 1001 do not disturb is disabled
  dialparties.agi: Extension 1001 has ExtensionState: 0
    --  dialparties.agi: Checking CW and CFB status for extension 1001
    --  dialparties.agi: dbset CALLTRACE/1001 to 3000
    --  dialparties.agi: Filtered ARG3: 1001
  == Manager 'admin' logged off from 127.0.0.1
    -- AGI Script dialparties.agi completed, returning 0
    -- Executing [s@macro-dial:7] Dial("SIP/3002-b7c90808", "DAHDI/6||tr") in new stack

  == Everyone is busy/congested at this time (1:0/0/1)

    -- Executing [s@macro-dial:8] Set("SIP/3002-b7c90808", "DIALSTATUS=CHANUNAVAIL") in new stack
    -- Executing [s@macro-dial:9] GosubIf("SIP/3002-b7c90808", "0?CHANUNAVAIL|1") in new stack
    -- Executing [s@macro-exten-vm:10] GotoIf("SIP/3002-b7c90808", "0?exit|return") in new stack
    -- Executing [s@macro-exten-vm:11] Set("SIP/3002-b7c90808", "SV_DIALSTATUS=CHANUNAVAIL") in new stack
    -- Executing [s@macro-exten-vm:12] GosubIf("SIP/3002-b7c90808", "0?docfu|1") in new stack
    -- Executing [s@macro-exten-vm:13] GosubIf("SIP/3002-b7c90808", "0?docfb|1") in new stack
    -- Executing [s@macro-exten-vm:14] Set("SIP/3002-b7c90808", "DIALSTATUS=CHANUNAVAIL") in new stack
    -- Executing [s@macro-exten-vm:15] NoOp("SIP/3002-b7c90808", "Voicemail is novm") in new stack
    -- Executing [s@macro-exten-vm:16] GotoIf("SIP/3002-b7c90808", "1?s-CHANUNAVAIL|1") in new stack
    -- Goto (macro-exten-vm,s-CHANUNAVAIL,1)
    -- Executing [s-CHANUNAVAIL@macro-exten-vm:1] NoOp("SIP/3002-b7c90808", "IVR_RETVM:  IVR_CONTEXT: ") in new stack
    -- Executing [s-CHANUNAVAIL@macro-exten-vm:2] GotoIf("SIP/3002-b7c90808", "0?exit|1") in new stack
    -- Executing [s-CHANUNAVAIL@macro-exten-vm:3] PlayTones("SIP/3002-b7c90808", "congestion") in new stack
  == Spawn extension (macro-exten-vm, s-CHANUNAVAIL, 3) exited non-zero on 'SIP/3002-b7c90808' in macro 'exten-vm'
  == Spawn extension (from-did-direct, 1001, 1) exited non-zero on 'SIP/3002-b7c90808'



The outbound call is ok,just the inbound call does not work.

thanks
Taro