Inbound calls immediately hung up

I just migrated from Trixbox 2.6 to PiaF 1.3. I opted for Asterisk 1.6 when I went to PiaF. I recreated everything from scratch so I know there are no Trixbox specific things lingering. This one server hosts one SIP trunk via ViaTalk and has two extensions currently. One extension is local to the server the other is remote but connected via VPN. Both extensions are online and can call each other and can make outbound calls. When I make an inbound call from another PiaF server (also Asterisk 1.6 and a VT SIP trunk), from a cell phone or from a land line, the call is simply hung up. I get no busy signal, no “number not in service” message, not even a ring. I simply get hung up on. The other server I have is basically identical yet it works just fine. I have a DID route setup just like I had it before on Trixbox and it’s destination is a ring group. Thinking something was wrong with the inbound route or the ring group, I setup a catch-all route and sent it directly to the local extension.

I ssh’d into the server and turned the verbosity up to 5 and made a few test calls. Here is the output from them.

Call from my other PiaF server:

[code]root@SL-FB-PH:~ $ asterisk -vr
Asterisk 1.6.0.1, Copyright © 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer [email protected]
Asterisk comes with ABSOLUTELY NO WARRANTY; type ‘core show warranty’ for detail s.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type ‘core show license’ for details.

Connected to Asterisk 1.6.0.1 currently running on SL-FB-PH (pid = 3506)
Verbosity is at least 5
SL-FB-PH*CLI> sip set debug off
SIP Debugging Disabled
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– Executing [15207770926@from-trunk:1] Set(“SIP/15207770926-b74f2df8”, “__F ROM_DID=15207770926”) in new stack
– Executing [15207770926@from-trunk:2] ExecIf(“SIP/15207770926-b74f2df8”, " 0 ?Set(CALLERID(name)=15207770924)") in new stack
– Executing [15207770926@from-trunk:3] Set(“SIP/15207770926-b74f2df8”, “FAX _RX=disabled”) in new stack
– Executing [15207770926@from-trunk:4] Set(“SIP/15207770926-b74f2df8”, “FAX [email protected]”) in new stack
– Executing [15207770926@from-trunk:5] Answer(“SIP/15207770926-b74f2df8”, " ") in new stack
– Executing [15207770926@from-trunk:6] PlayTones(“SIP/15207770926-b74f2df8” , “ring”) in new stack
== Spawn extension (from-trunk, 15207770926, 7) exited non-zero on ‘SIP/152077 70926-b74f2df8’
– Executing [h@from-trunk:1] NoOp(“SIP/15207770926-b74f2df8”, “Catch-All DI D Match - Found h - You probably want a DID for this.”) in new stack
– Executing [h@from-trunk:2] Goto(“SIP/15207770926-b74f2df8”, “ext-did,s,1” ) in new stack
– Goto (ext-did,s,1)
– Executing [s@ext-did:1] Set(“SIP/15207770926-b74f2df8”, “__FROM_DID=s”) i n new stack
– Executing [s@ext-did:2] ExecIf(“SIP/15207770926-b74f2df8”, “0 ?Set(CALLER ID(name)=15207770924)”) in new stack
– Executing [s@ext-did:3] Set(“SIP/15207770926-b74f2df8”, “__CALLINGPRES_SV =allowed_not_screened”) in new stack
– Executing [s@ext-did:4] Set(“SIP/15207770926-b74f2df8”, “CALLERPRES()=all owed_not_screened”) in new stack
– Executing [s@ext-did:5] Goto(“SIP/15207770926-b74f2df8”, “from-did-direct ,100,1”) in new stack
– Goto (from-did-direct,100,1)
– Executing [100@from-did-direct:1] Macro(“SIP/15207770926-b74f2df8”, “exte n-vm,100,100”) in new stack
– Executing [s@macro-exten-vm:1] Macro(“SIP/15207770926-b74f2df8”, “user-ca llerid”) in new stack
– Executing [s@macro-user-callerid:1] Set(“SIP/15207770926-b74f2df8”, “AMPU SER=15207770924”) in new stack
– Executing [100@from-did-direct:2] Goto(“SIP/15207770926-b74f2df8”, “vmret ,1”) in new stack
– Goto (from-did-direct,vmret,1)
– Executing [vmret@from-did-direct:1] GotoIf(“SIP/15207770926-b74f2df8”, “0 ?playret”) in new stack
– Executing [vmret@from-did-direct:2] Hangup(“SIP/15207770926-b74f2df8”, “” ) in new stack
== Spawn extension (from-did-direct, vmret, 2) exited non-zero on ‘SIP/1520777 0926-b74f2df8’[/code]

Call from my cell phone:

== Using SIP RTP TOS bits 184 == Using SIP RTP CoS mark 5 -- Executing [15207770926@from-trunk:1] Set("SIP/15207770926-b74f2df8", "__FROM_DID=15207770926") in new stack -- Executing [15207770926@from-trunk:2] ExecIf("SIP/15207770926-b74f2df8", "0 ?Set(CALLERID(name)=14048678200)") in new stack -- Executing [15207770926@from-trunk:3] Set("SIP/15207770926-b74f2df8", "FAX_RX=disabled") in new stack -- Executing [15207770926@from-trunk:4] Set("SIP/15207770926-b74f2df8", "[email protected]") in new stack -- Executing [15207770926@from-trunk:5] Answer("SIP/15207770926-b74f2df8", "") in new stack -- Executing [15207770926@from-trunk:6] PlayTones("SIP/15207770926-b74f2df8", "ring") in new stack == Spawn extension (from-trunk, 15207770926, 7) exited non-zero on 'SIP/15207770926-b74f2df8' -- Executing [h@from-trunk:1] NoOp("SIP/15207770926-b74f2df8", "Catch-All DID Match - Found h - You probably want a DID for this.") in new stack -- Executing [h@from-trunk:2] Goto("SIP/15207770926-b74f2df8", "ext-did,s,1") in new stack -- Goto (ext-did,s,1) -- Executing [s@ext-did:1] Set("SIP/15207770926-b74f2df8", "__FROM_DID=s") in new stack -- Executing [s@ext-did:2] ExecIf("SIP/15207770926-b74f2df8", "0 ?Set(CALLERID(name)=14048678200)") in new stack -- Executing [s@ext-did:3] Set("SIP/15207770926-b74f2df8", "__CALLINGPRES_SV=allowed_not_screened") in new stack -- Executing [s@ext-did:4] Set("SIP/15207770926-b74f2df8", "CALLERPRES()=allowed_not_screened") in new stack -- Executing [s@ext-did:5] Goto("SIP/15207770926-b74f2df8", "from-did-direct,100,1") in new stack -- Goto (from-did-direct,100,1) -- Executing [100@from-did-direct:1] Macro("SIP/15207770926-b74f2df8", "exten-vm,100,100") in new stack -- Executing [s@macro-exten-vm:1] Macro("SIP/15207770926-b74f2df8", "user-callerid") in new stack -- Executing [s@macro-user-callerid:1] Set("SIP/15207770926-b74f2df8", "AMPUSER=14048678200") in new stack -- Executing [100@from-did-direct:2] Goto("SIP/15207770926-b74f2df8", "vmret,1") in new stack -- Goto (from-did-direct,vmret,1) -- Executing [vmret@from-did-direct:1] GotoIf("SIP/15207770926-b74f2df8", "0?playret") in new stack -- Executing [vmret@from-did-direct:2] Hangup("SIP/15207770926-b74f2df8", "") in new stack == Spawn extension (from-did-direct, vmret, 2) exited non-zero on 'SIP/15207770926-b74f2df8' SL-FB-PH*CLI>

And finally a call from a land line:

== Using SIP RTP TOS bits 184 == Using SIP RTP CoS mark 5 -- Executing [15207770926@from-trunk:1] Set("SIP/15207770926-b74f2df8", "__FROM_DID=15207770926") in new stack -- Executing [15207770926@from-trunk:2] ExecIf("SIP/15207770926-b74f2df8", "0 ?Set(CALLERID(name)=15208880233)") in new stack -- Executing [15207770926@from-trunk:3] Set("SIP/15207770926-b74f2df8", "FAX_RX=disabled") in new stack -- Executing [15207770926@from-trunk:4] Set("SIP/15207770926-b74f2df8", "[email protected]") in new stack -- Executing [15207770926@from-trunk:5] Answer("SIP/15207770926-b74f2df8", "") in new stack -- Executing [15207770926@from-trunk:6] PlayTones("SIP/15207770926-b74f2df8", "ring") in new stack == Spawn extension (from-trunk, 15207770926, 7) exited non-zero on 'SIP/15207770926-b74f2df8' -- Executing [h@from-trunk:1] NoOp("SIP/15207770926-b74f2df8", "Catch-All DID Match - Found h - You probably want a DID for this.") in new stack -- Executing [h@from-trunk:2] Goto("SIP/15207770926-b74f2df8", "ext-did,s,1") in new stack -- Goto (ext-did,s,1) -- Executing [s@ext-did:1] Set("SIP/15207770926-b74f2df8", "__FROM_DID=s") in new stack -- Executing [s@ext-did:2] ExecIf("SIP/15207770926-b74f2df8", "0 ?Set(CALLERID(name)=15208880233)") in new stack -- Executing [s@ext-did:3] Set("SIP/15207770926-b74f2df8", "__CALLINGPRES_SV=allowed_not_screened") in new stack -- Executing [s@ext-did:4] Set("SIP/15207770926-b74f2df8", "CALLERPRES()=allowed_not_screened") in new stack -- Executing [s@ext-did:5] Goto("SIP/15207770926-b74f2df8", "from-did-direct,100,1") in new stack -- Goto (from-did-direct,100,1) -- Executing [100@from-did-direct:1] Macro("SIP/15207770926-b74f2df8", "exten-vm,100,100") in new stack -- Executing [s@macro-exten-vm:1] Macro("SIP/15207770926-b74f2df8", "user-callerid") in new stack -- Executing [s@macro-user-callerid:1] Set("SIP/15207770926-b74f2df8", "AMPUSER=15208880233") in new stack -- Executing [100@from-did-direct:2] Goto("SIP/15207770926-b74f2df8", "vmret,1") in new stack -- Goto (from-did-direct,vmret,1) -- Executing [vmret@from-did-direct:1] GotoIf("SIP/15207770926-b74f2df8", "0?playret") in new stack -- Executing [vmret@from-did-direct:2] Hangup("SIP/15207770926-b74f2df8", "") in new stack == Spawn extension (from-did-direct, vmret, 2) exited non-zero on 'SIP/15207770926-b74f2df8' SL-FB-PH*CLI>

From what little understanding I have it looks like it’s trying to send it to voicemail then hanging up. Voicemail is enabled for all extensions but I don’t know why it would be sending it there. It’s also clear to me that the server itself is what’s hanging up the call, not VT or something along the path. Can anyone help me with this?

Joel