SIP declined

Discussion in 'General' started by accesip, Apr 9, 2008.

  1. accesip

    Joined:
    May 16, 2007
    Messages:
    113
    Likes Received:
    0
    Hi,
    I had 0.9 working perfectly, I've upgraded to 1.0-14 and upgraded the freePBX to 2.4
    From this time impossible to receive a call on my SIP phone.

    Have taken a new PC, Install 1.0, update to 1.0-14, upgrade freePBX to 2.4.0.0
    Still same problem.

    I can use my phone to call outside, but one phone cannot join other phone.
    Hard phone are 2000 and 2450
    sip show peers says:OK (80ms) and (58 ms)

    You can see below trace when the 2000 try to call the 2450:


    -- Executing [2450@from-internal:1] Macro("SIP/2000-09658eb0", "exten-vm|novm|2450") in new stack
    -- Executing [s@macro-exten-vm:1] Macro("SIP/2000-09658eb0", "user-callerid") in new stack
    -- Executing [s@macro-user-callerid:1] NoOp("SIP/2000-09658eb0", "user-callerid: device 2000") in new stack
    -- Executing [s@macro-user-callerid:2] Set("SIP/2000-09658eb0", "AMPUSER=2000") in new stack
    -- Executing [s@macro-user-callerid:3] GotoIf("SIP/2000-09658eb0", "0?report") in new stack
    -- Executing [s@macro-user-callerid:4] ExecIf("SIP/2000-09658eb0", "1|Set|REALCALLERIDNUM=2000") in new stack
    -- Executing [s@macro-user-callerid:5] NoOp("SIP/2000-09658eb0", "REALCALLERIDNUM is 2000") in new stack
    -- Executing [s@macro-user-callerid:6] Set("SIP/2000-09658eb0", "AMPUSER=2000") in new stack
    -- Executing [s@macro-user-callerid:7] Set("SIP/2000-09658eb0", "AMPUSERCIDNAME=Brice_Snom") in new stack
    -- Executing [s@macro-user-callerid:8] GotoIf("SIP/2000-09658eb0", "0?report") in new stack
    -- Executing [s@macro-user-callerid:9] Set("SIP/2000-09658eb0", "AMPUSERCID=2000") in new stack
    -- Executing [s@macro-user-callerid:10] Set("SIP/2000-09658eb0", "CALLERID(all)="Brice_Snom" <2000>") in new stack
    -- Executing [s@macro-user-callerid:11] Set("SIP/2000-09658eb0", "REALCALLERIDNUM=2000") in new stack
    -- Executing [s@macro-user-callerid:12] ExecIf("SIP/2000-09658eb0", "0|Set|CHANNEL(language)=") in new stack
    -- Executing [s@macro-user-callerid:13] NoOp("SIP/2000-09658eb0", "TTL: ARG1: novm") in new stack
    -- Executing [s@macro-user-callerid:14] GotoIf("SIP/2000-09658eb0", "0?continue") in new stack
    -- Executing [s@macro-user-callerid:15] Set("SIP/2000-09658eb0", "__TTL=64") in new stack
    -- Executing [s@macro-user-callerid:16] GotoIf("SIP/2000-09658eb0", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,23)
    -- Executing [s@macro-user-callerid:23] NoOp("SIP/2000-09658eb0", "Using CallerID "Brice_Snom" <2000>") in new stack
    -- Executing [s@macro-exten-vm:2] Set("SIP/2000-09658eb0", "FROMCONTEXT=exten-vm") in new stack
    -- Executing [s@macro-exten-vm:3] Set("SIP/2000-09658eb0", "VMBOX=novm") in new stack
    -- Executing [s@macro-exten-vm:4] Set("SIP/2000-09658eb0", "EXTTOCALL=2450") in new stack
    -- Executing [s@macro-exten-vm:5] Set("SIP/2000-09658eb0", "CFUEXT=") in new stack
    -- Executing [s@macro-exten-vm:6] Set("SIP/2000-09658eb0", "CFBEXT=") in new stack
    -- Executing [s@macro-exten-vm:7] Set("SIP/2000-09658eb0", "RT=""") in new stack
    -- Executing [s@macro-exten-vm:8] Macro("SIP/2000-09658eb0", "record-enable|2450|IN") in new stack
    -- Executing [s@macro-record-enable:1] GotoIf("SIP/2000-09658eb0", "0?2:4") in new stack
    -- Goto (macro-record-enable,s,4)
    -- Executing [s@macro-record-enable:4] AGI("SIP/2000-09658eb0", "recordingcheck|20080408-133014|1207654214.12") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
    recordingcheck|20080408-133014|1207654214.12: Inbound recording not enabled
    -- AGI Script recordingcheck completed, returning 0
    -- Executing [s@macro-record-enable:5] NoOp("SIP/2000-09658eb0", "No recording needed") in new stack
    -- Executing [s@macro-exten-vm:9] Macro("SIP/2000-09658eb0", "dial||tr|2450") in new stack
    -- Executing [s@macro-dial:1] GotoIf("SIP/2000-09658eb0", "1?dial") in new stack
    -- Goto (macro-dial,s,3)
    -- Executing [s@macro-dial:3] AGI("SIP/2000-09658eb0", "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 'Brice_Snom' number is '2000'
    dialparties.agi: USE_CONFIRMATION: 'FALSE'
    dialparties.agi: RINGGROUP_INDEX: ''
    dialparties.agi: Methodology of ring is 'none'
    -- dialparties.agi: Added extension 2450 to extension map
    -- dialparties.agi: Extension 2450 cf is disabled
    -- dialparties.agi: Extension 2450 do not disturb is disabled
    > dialparties.agi: extnum 2450 has: cw: 0; hascfb: 0 [] hascfu: 0 []
    > dialparties.agi: ExtensionState: 0
    dialparties.agi: Extension 2450 has ExtensionState: 0
    -- dialparties.agi: Checking CW and CFB status for extension 2450
    -- dialparties.agi: dbset CALLTRACE/2450 to 2000
    -- dialparties.agi: Filtered ARG3: 2450
    == Manager 'admin' logged off from 127.0.0.1
    -- AGI Script dialparties.agi completed, returning 0
    -- Executing [s@macro-dial:4] NoOp("SIP/2000-09658eb0", "Returned from dialparties with no extensions to call and DIALSTATUS: ") in new stack
    -- Executing [s@macro-exten-vm:10] Set("SIP/2000-09658eb0", "SV_DIALSTATUS=") in new stack
    -- Executing [s@macro-exten-vm:11] GosubIf("SIP/2000-09658eb0", "0?docfu|1") in new stack
    -- Executing [s@macro-exten-vm:12] GosubIf("SIP/2000-09658eb0", "0?docfb|1") in new stack
    -- Executing [s@macro-exten-vm:13] Set("SIP/2000-09658eb0", "DIALSTATUS=") in new stack
    -- Executing [s@macro-exten-vm:14] NoOp("SIP/2000-09658eb0", "Voicemail is novm") in new stack
    -- Executing [s@macro-exten-vm:15] GotoIf("SIP/2000-09658eb0", "1?s-|1") in new stack
    -- Goto (macro-exten-vm,s-,1)
    -- Executing [2450@from-internal:2] Hangup("SIP/2000-09658eb0", "") in new stack
    == Spawn extension (from-internal, 2450, 2) exited non-zero on 'SIP/2000-09658eb0'
    -- Executing [h@from-internal:1] Macro("SIP/2000-09658eb0", "hangupcall") in new stack
    -- Executing [s@macro-hangupcall:1] ResetCDR("SIP/2000-09658eb0", "w") in new stack
    -- Executing [s@macro-hangupcall:2] NoCDR("SIP/2000-09658eb0", "") in new stack
    -- Executing [s@macro-hangupcall:3] GotoIf("SIP/2000-09658eb0", "1?skiprg") in new stack
    -- Goto (macro-hangupcall,s,6)
    -- Executing [s@macro-hangupcall:6] GotoIf("SIP/2000-09658eb0", "1?skipblkvm") in new stack
    -- Goto (macro-hangupcall,s,9)
    -- Executing [s@macro-hangupcall:9] GotoIf("SIP/2000-09658eb0", "1?theend") in new stack
    -- Goto (macro-hangupcall,s,11)
    -- Executing [s@macro-hangupcall:11] Hangup("SIP/2000-09658eb0", "") in new stack
    == Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/2000-09658eb0' in macro 'hangupcall'
    == Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/2000-09658eb0'


    -----------------------------------------------------------------------------------------------------------


    And the log when the 2450 try to call the 2000:

    -- Executing [2000@from-internal:1] Macro("SIP/2450-0966fed0", "exten-vm|2000|2000") in new stack
    -- Executing [s@macro-exten-vm:1] Macro("SIP/2450-0966fed0", "user-callerid") in new stack
    -- Executing [s@macro-user-callerid:1] NoOp("SIP/2450-0966fed0", "user-callerid: device 2450") in new stack
    -- Executing [s@macro-user-callerid:2] Set("SIP/2450-0966fed0", "AMPUSER=2450") in new stack
    -- Executing [s@macro-user-callerid:3] GotoIf("SIP/2450-0966fed0", "0?report") in new stack
    -- Executing [s@macro-user-callerid:4] ExecIf("SIP/2450-0966fed0", "1|Set|REALCALLERIDNUM=2450") in new stack
    -- Executing [s@macro-user-callerid:5] NoOp("SIP/2450-0966fed0", "REALCALLERIDNUM is 2450") in new stack
    -- Executing [s@macro-user-callerid:6] Set("SIP/2450-0966fed0", "AMPUSER=2450") in new stack
    -- Executing [s@macro-user-callerid:7] Set("SIP/2450-0966fed0", "AMPUSERCIDNAME=S450IP") in new stack
    -- Executing [s@macro-user-callerid:8] GotoIf("SIP/2450-0966fed0", "0?report") in new stack
    -- Executing [s@macro-user-callerid:9] Set("SIP/2450-0966fed0", "AMPUSERCID=2450") in new stack
    -- Executing [s@macro-user-callerid:10] Set("SIP/2450-0966fed0", "CALLERID(all)="S450IP" <2450>") in new stack
    -- Executing [s@macro-user-callerid:11] Set("SIP/2450-0966fed0", "REALCALLERIDNUM=2450") in new stack
    -- Executing [s@macro-user-callerid:12] ExecIf("SIP/2450-0966fed0", "0|Set|CHANNEL(language)=") in new stack
    -- Executing [s@macro-user-callerid:13] NoOp("SIP/2450-0966fed0", "TTL: ARG1: 2000") in new stack
    -- Executing [s@macro-user-callerid:14] GotoIf("SIP/2450-0966fed0", "0?continue") in new stack
    -- Executing [s@macro-user-callerid:15] Set("SIP/2450-0966fed0", "__TTL=64") in new stack
    -- Executing [s@macro-user-callerid:16] GotoIf("SIP/2450-0966fed0", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,23)
    -- Executing [s@macro-user-callerid:23] NoOp("SIP/2450-0966fed0", "Using CallerID "S450IP" <2450>") in new stack
    -- Executing [s@macro-exten-vm:2] Set("SIP/2450-0966fed0", "FROMCONTEXT=exten-vm") in new stack
    -- Executing [s@macro-exten-vm:3] Set("SIP/2450-0966fed0", "VMBOX=2000") in new stack
    -- Executing [s@macro-exten-vm:4] Set("SIP/2450-0966fed0", "EXTTOCALL=2000") in new stack
    -- Executing [s@macro-exten-vm:5] Set("SIP/2450-0966fed0", "CFUEXT=") in new stack
    -- Executing [s@macro-exten-vm:6] Set("SIP/2450-0966fed0", "CFBEXT=") in new stack
    -- Executing [s@macro-exten-vm:7] Set("SIP/2450-0966fed0", "RT=15") in new stack
    -- Executing [s@macro-exten-vm:8] Macro("SIP/2450-0966fed0", "record-enable|2000|IN") in new stack
    -- Executing [s@macro-record-enable:1] GotoIf("SIP/2450-0966fed0", "0?2:4") in new stack
    -- Goto (macro-record-enable,s,4)
    -- Executing [s@macro-record-enable:4] AGI("SIP/2450-0966fed0", "recordingcheck|20080408-133203|1207654323.13") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
    recordingcheck|20080408-133203|1207654323.13: Inbound recording not enabled
    -- AGI Script recordingcheck completed, returning 0
    -- Executing [s@macro-record-enable:5] NoOp("SIP/2450-0966fed0", "No recording needed") in new stack
    -- Executing [s@macro-exten-vm:9] Macro("SIP/2450-0966fed0", "dial|15|tr|2000") in new stack
    -- Executing [s@macro-dial:1] GotoIf("SIP/2450-0966fed0", "1?dial") in new stack
    -- Goto (macro-dial,s,3)
    -- Executing [s@macro-dial:3] AGI("SIP/2450-0966fed0", "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 'S450IP' number is '2450'
    dialparties.agi: USE_CONFIRMATION: 'FALSE'
    dialparties.agi: RINGGROUP_INDEX: ''
    dialparties.agi: Methodology of ring is 'none'
    -- dialparties.agi: Added extension 2000 to extension map
    -- dialparties.agi: Extension 2000 cf is disabled
    -- dialparties.agi: Extension 2000 do not disturb is disabled
    > dialparties.agi: extnum 2000 has: cw: 0; hascfb: 0 [] hascfu: 0 []
    > dialparties.agi: ExtensionState: 0
    dialparties.agi: Extension 2000 has ExtensionState: 0
    -- dialparties.agi: Checking CW and CFB status for extension 2000
    -- dialparties.agi: dbset CALLTRACE/2000 to 2450
    -- dialparties.agi: Filtered ARG3: 2000
    == Manager 'admin' logged off from 127.0.0.1
    -- AGI Script dialparties.agi completed, returning 0
    -- Executing [s@macro-dial:4] NoOp("SIP/2450-0966fed0", "Returned from dialparties with no extensions to call and DIALSTATUS: ") in new stack
    -- Executing [s@macro-exten-vm:10] Set("SIP/2450-0966fed0", "SV_DIALSTATUS=") in new stack
    -- Executing [s@macro-exten-vm:11] GosubIf("SIP/2450-0966fed0", "0?docfu|1") in new stack
    -- Executing [s@macro-exten-vm:12] GosubIf("SIP/2450-0966fed0", "0?docfb|1") in new stack
    -- Executing [s@macro-exten-vm:13] Set("SIP/2450-0966fed0", "DIALSTATUS=") in new stack
    -- Executing [s@macro-exten-vm:14] NoOp("SIP/2450-0966fed0", "Voicemail is 2000") in new stack
    -- Executing [s@macro-exten-vm:15] GotoIf("SIP/2450-0966fed0", "0?s-|1") in new stack
    -- Executing [s@macro-exten-vm:16] NoOp("SIP/2450-0966fed0", "Sending to Voicemail box 2000") in new stack
    -- Executing [s@macro-exten-vm:17] Macro("SIP/2450-0966fed0", "vm|2000|") in new stack
    -- Executing [s@macro-vm:1] Macro("SIP/2450-0966fed0", "user-callerid|SKIPTTL") in new stack
    -- Executing [s@macro-user-callerid:1] NoOp("SIP/2450-0966fed0", "user-callerid: S450IP 2450") in new stack
    -- Executing [s@macro-user-callerid:2] Set("SIP/2450-0966fed0", "AMPUSER=2450") in new stack
    -- Executing [s@macro-user-callerid:3] GotoIf("SIP/2450-0966fed0", "0?report") in new stack
    -- Executing [s@macro-user-callerid:4] ExecIf("SIP/2450-0966fed0", "0|Set|REALCALLERIDNUM=2450") in new stack
    -- Executing [s@macro-user-callerid:5] NoOp("SIP/2450-0966fed0", "REALCALLERIDNUM is 2450") in new stack
    -- Executing [s@macro-user-callerid:6] Set("SIP/2450-0966fed0", "AMPUSER=2450") in new stack
    -- Executing [s@macro-user-callerid:7] Set("SIP/2450-0966fed0", "AMPUSERCIDNAME=S450IP") in new stack
    -- Executing [s@macro-user-callerid:8] GotoIf("SIP/2450-0966fed0", "0?report") in new stack
    -- Executing [s@macro-user-callerid:9] Set("SIP/2450-0966fed0", "AMPUSERCID=2450") in new stack
    -- Executing [s@macro-user-callerid:10] Set("SIP/2450-0966fed0", "CALLERID(all)="S450IP" <2450>") in new stack
    -- Executing [s@macro-user-callerid:11] Set("SIP/2450-0966fed0", "REALCALLERIDNUM=2450") in new stack
    -- Executing [s@macro-user-callerid:12] ExecIf("SIP/2450-0966fed0", "0|Set|CHANNEL(language)=") in new stack
    -- Executing [s@macro-user-callerid:13] NoOp("SIP/2450-0966fed0", "TTL: 64 ARG1: SKIPTTL") in new stack
    -- Executing [s@macro-user-callerid:14] GotoIf("SIP/2450-0966fed0", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,23)
    -- Executing [s@macro-user-callerid:23] NoOp("SIP/2450-0966fed0", "Using CallerID "S450IP" <2450>") in new stack
    -- Executing [s@macro-vm:2] Set("SIP/2450-0966fed0", "VMGAIN=""") in new stack
    -- Executing [s@macro-vm:3] GotoIf("SIP/2450-0966fed0", "1?vmx|1") in new stack
    -- Goto (macro-vm,vmx,1)
    -- Executing [vmx@macro-vm:1] GotoIf("SIP/2450-0966fed0", "0?s-|1") in new stack
    -- Executing [vmx@macro-vm:2] Set("SIP/2450-0966fed0", "MODE=unavail") in new stack
    -- Executing [vmx@macro-vm:3] GotoIf("SIP/2450-0966fed0", "1?notdirect") in new stack
    -- Goto (macro-vm,vmx,5)
    -- Executing [vmx@macro-vm:5] NoOp("SIP/2450-0966fed0", "Checking if ext 2000 is enabled: ") in new stack
    -- Executing [vmx@macro-vm:6] GotoIf("SIP/2450-0966fed0", "1?s-|1") in new stack
    -- Goto (macro-vm,s-,1)
    -- Executing [2000@from-internal:2] Hangup("SIP/2450-0966fed0", "") in new stack
    == Spawn extension (from-internal, 2000, 2) exited non-zero on 'SIP/2450-0966fed0'
    -- Executing [h@from-internal:1] Macro("SIP/2450-0966fed0", "hangupcall") in new stack
    -- Executing [s@macro-hangupcall:1] ResetCDR("SIP/2450-0966fed0", "w") in new stack
    -- Executing [s@macro-hangupcall:2] NoCDR("SIP/2450-0966fed0", "") in new stack
    -- Executing [s@macro-hangupcall:3] GotoIf("SIP/2450-0966fed0", "1?skiprg") in new stack
    -- Goto (macro-hangupcall,s,6)
    -- Executing [s@macro-hangupcall:6] GotoIf("SIP/2450-0966fed0", "1?skipblkvm") in new stack
    -- Goto (macro-hangupcall,s,9)
    -- Executing [s@macro-hangupcall:9] GotoIf("SIP/2450-0966fed0", "1?theend") in new stack
    -- Goto (macro-hangupcall,s,11)
    -- Executing [s@macro-hangupcall:11] Hangup("SIP/2450-0966fed0", "") in new stack
    == Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/2450-0966fed0' in macro 'hangupcall'
    == Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/2450-0966fed0'


    On the 2000 the call result is Declined 2450

    On the 2450 the call result is: 603

    Do you have an Idea??
    Thanks
    Brice
     

Share This Page