I run asterisk version 1.6.2.6.
I got incoming calls working by adding insecure=port,invite to the Peer details of the trunks. But there still seems to be something fishy.
It seems like it, for some reason, matches or compares something against the 2505 trunk, even when I call in on other numbers/trunks. It is like it is using the 2505 context even when calls come in on other trunks. From the full log:
[Apr 27 12:58:32] VERBOSE[4015] netsock.c: == Using SIP RTP TOS bits 184
[Apr 27 12:58:32] VERBOSE[4015] netsock.c: == Using SIP RTP CoS mark 5
[Apr 27 12:58:32] VERBOSE[4015] netsock.c: == Using SIP VRTP TOS bits 136
[Apr 27 12:58:32] VERBOSE[4015] netsock.c: == Using SIP VRTP CoS mark 6
[Apr 27 12:58:32] VERBOSE[18259] pbx.c: – Executing [08xxxx2506@from-trunk-sip-08xxxx2505:1] Set(“SIP/08xxxx2505-00000018”, “GROUP()=OUT_7”) in new stack
[Apr 27 12:58:32] VERBOSE[18259] pbx.c: – Executing [08xxxx2506@from-trunk-sip-08xxxx2505:2] Goto(“SIP/08xxxx2505-00000018”, “from-trunk,08xxxx2506,1”) in new stack
[Apr 27 12:58:32] VERBOSE[18259] pbx.c: – Goto (from-trunk,08xxxx2506,1)
[Apr 27 12:58:32] VERBOSE[18259] pbx.c: – Executing [08xxxx2506@from-trunk:1] Set(“SIP/08xxxx2505-00000018”, “__FROM_DID=08xxxx2506”) in new stack
[Apr 27 12:58:32] VERBOSE[18259] pbx.c: – Executing [08xxxx2506@from-trunk:2] Gosub(“SIP/08xxxx2505-00000018”, “app-blacklist-check,s,1”) in new stack
[Apr 27 12:58:32] VERBOSE[18259] pbx.c: – Executing [s@app-blacklist-check:1] GotoIf(“SIP/08xxxx2505-00000018”, “0?blacklisted”) in new stack
[Apr 27 12:58:32] VERBOSE[18259] pbx.c: – Executing [s@app-blacklist-check:2] Set(“SIP/08xxxx2505-00000018”, “CALLED_BLACKLIST=1”) in new stack
[Apr 27 12:58:32] VERBOSE[18259] pbx.c: – Executing [s@app-blacklist-check:3] Return(“SIP/08xxxx2505-00000018”, “”) in new stack
[Apr 27 12:58:32] VERBOSE[18259] pbx.c: – Executing [08xxxx2506@from-trunk:3] ExecIf(“SIP/08xxxx2505-00000018”, “0 ?Set(CALLERID(name)=0707519917)”) in new stack
[Apr 27 12:58:32] VERBOSE[18259] pbx.c: – Executing [08xxxx2506@from-trunk:4] Set(“SIP/08xxxx2505-00000018”, “__CALLINGPRES_SV=allowed_not_screened”) in new stack
[Apr 27 12:58:32] VERBOSE[18259] pbx.c: – Executing [08xxxx2506@from-trunk:5] Set(“SIP/08xxxx2505-00000018”, “CALLERPRES()=allowed_not_screened”) in new stack
[Apr 27 12:58:32] VERBOSE[18259] pbx.c: – Executing [08xxxx2506@from-trunk:6] Goto(“SIP/08xxxx2505-00000018”, “timeconditions,6,1”) in new stack
I also tried deleting the 2505 trunk, but asterisk still tries to use that number when verifying incoming calls. I get this in the full log when calling in on another number. The 08xxxx2505 number doesn’t even exist in any of the files in /etc/asterisk
[Apr 27 13:40:13] NOTICE[4015] chan_sip.c: Call from ‘u08xxxx2505’ to extension ‘08xxxx2507’ rejected because extension not found.
I also tried restoring an old backup, but the problem did not go away. Could it be some config stored in the database or something? I am clueless.