Trunk with multiple user question

I added new inbound rules for each ext that includes the 1 and still having issues.

Here is the spam when i call 5555550002, it still acts like I call 5555550001

Connected to Asterisk 1.6.2.20 currently running on localhost (pid = 3191)
Verbosity is at least 3

== Using SIP RTP TOS bits 184

== Using SIP RTP CoS mark 5

– Executing [5555550001@from-trunk-sip-GlobalPhoneTrunk:1] Set(“SIP/GlobalPhoneTrunk-00000055”, “GROUP()=OUT_2”) in new stack

– Executing [5555550001@from-trunk-sip-GlobalPhoneTrunk:2] Goto(“SIP/GlobalPhoneTrunk-00000055”, “from-trunk,5555550001,1”) in new stack

– Goto (from-trunk,5555550001,1)

– Executing [5555550001@from-trunk:1] Goto(“SIP/GlobalPhoneTrunk-00000055”, “from-internal,1000,1”) in new stack

– Goto (from-internal,1000,1)

– Executing [1000@from-internal:1] Macro(“SIP/GlobalPhoneTrunk-00000055”, “exten-vm,novm,1000”) in new stack

– Executing [s@macro-exten-vm:1] Macro(“SIP/GlobalPhoneTrunk-00000055”, “user-callerid,”) in new stack

– Executing [s@macro-user-callerid:1] Set(“SIP/GlobalPhoneTrunk-00000055”, “AMPUSER=6465550001”) in new stack

– Executing [s@macro-user-callerid:2] GotoIf(“SIP/GlobalPhoneTrunk-00000055”, “0?report”) in new stack

– Executing [s@macro-user-callerid:3] ExecIf(“SIP/GlobalPhoneTrunk-00000055”, “1?Set(REALCALLERIDNUM=6465550001)”) in new stack

– Executing [s@macro-user-callerid:4] Set(“SIP/GlobalPhoneTrunk-00000055”, “AMPUSER=”) in new stack

– Executing [s@macro-user-callerid:5] Set(“SIP/GlobalPhoneTrunk-00000055”, “AMPUSERCIDNAME=”) in new stack

– Executing [s@macro-user-callerid:6] GotoIf(“SIP/GlobalPhoneTrunk-00000055”, “1?report”) in new stack

– Goto (macro-user-callerid,s,9)

– Executing [s@macro-user-callerid:9] GotoIf(“SIP/GlobalPhoneTrunk-00000055”, “0?continue”) in new stack

– Executing [s@macro-user-callerid:10] Set(“SIP/GlobalPhoneTrunk-00000055”, “__TTL=64”) in new stack

– Executing [s@macro-user-callerid:11] GotoIf(“SIP/GlobalPhoneTrunk-00000055”, “1?continue”) in new stack

– Goto (macro-user-callerid,s,18)

– Executing [s@macro-user-callerid:18] NoOp(“SIP/GlobalPhoneTrunk-00000055”, “Using CallerID “CALLER ID” <6465550001>”) in new stack

– Executing [s@macro-exten-vm:2] Set(“SIP/GlobalPhoneTrunk-00000055”, “RingGroupMethod=none”) in new stack

– Executing [s@macro-exten-vm:3] Set(“SIP/GlobalPhoneTrunk-00000055”, “VMBOX=novm”) in new stack

– Executing [s@macro-exten-vm:4] Set(“SIP/GlobalPhoneTrunk-00000055”, “EXTTOCALL=1000”) in new stack
– Executing [s@macro-exten-vm:5] Set(“SIP/GlobalPhoneTrunk-00000055”, “CFUEXT=”) in new stack

– Executing [s@macro-exten-vm:6] Set(“SIP/GlobalPhoneTrunk-00000055”, “CFBEXT=”) in new stack

– Executing [s@macro-exten-vm:7] Set(“SIP/GlobalPhoneTrunk-00000055”, “RT=”"") in new stack

– Executing [s@macro-exten-vm:8] Macro(“SIP/GlobalPhoneTrunk-00000055”, “record-enable,1000,IN”) in new stack

– Executing [s@macro-record-enable:1] GotoIf(“SIP/GlobalPhoneTrunk-00000055”, “1?check”) in new stack

– Goto (macro-record-enable,s,4)

– Executing [s@macro-record-enable:4] ExecIf(“SIP/GlobalPhoneTrunk-00000055”, “0?MacroExit()”) in new stack

– Executing [s@macro-record-enable:5] GotoIf(“SIP/GlobalPhoneTrunk-00000055”, “0?Group:OUT”) in new stack

– Goto (macro-record-enable,s,16)

– Executing [s@macro-record-enable:16] GotoIf(“SIP/GlobalPhoneTrunk-00000055”, “1?IN”) in new stack

– Goto (macro-record-enable,s,21)

– Executing [s@macro-record-enable:21] ExecIf(“SIP/GlobalPhoneTrunk-00000055”, “1?MacroExit()”) in new stack

– Executing [s@macro-exten-vm:9] Macro(“SIP/GlobalPhoneTrunk-00000055”, “dial,tr,1000”) in new stack

– Executing [s@macro-dial:1] GotoIf(“SIP/GlobalPhoneTrunk-00000055”, “1?dial”) in new stack

– Goto (macro-dial,s,3)

– Executing [s@macro-dial:3] AGI(“SIP/GlobalPhoneTrunk-00000055”, “dialparties.agi”) in new stack

– Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
dialparties.agi: Starting New Dialparties.agi
dialparties.agi: Caller ID name is ‘CALLER ID’ number is '6465550001’
dialparties.agi: Methodology of ring is ‘none’

– dialparties.agi: Added extension 1000 to extension map

– dialparties.agi: Extension 1000 cf is disabled

– dialparties.agi: Extension 1000 do not disturb is disabled
dialparties.agi: EXTENSION_STATE: 4 (UNAVAILABLE)

– dialparties.agi: dbset CALLTRACE/1000 to 6465550001
– dialparties.agi: Filtered ARG3: 1000

– <SIP/GlobalPhoneTrunk-00000055>AGI Script dialparties.agi completed, returning 0

– Executing [s@macro-dial:7] Dial(“SIP/GlobalPhoneTrunk-00000055”, “SIP/1000,tr”) in new stack

== Using SIP RTP TOS bits 184

== Using SIP RTP CoS mark 5

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

– Executing [s@macro-dial:8] Set(“SIP/GlobalPhoneTrunk-00000055”, “DIALSTATUS=CHANUNAVAIL”) in new stack

– Executing [s@macro-dial:9] GosubIf(“SIP/GlobalPhoneTrunk-00000055”, “0?CHANUNAVAIL,1”) in new stack

– Executing [s@macro-exten-vm:10] GotoIf(“SIP/GlobalPhoneTrunk-00000055”, “0?exit,return”) in new stack

– Executing [s@macro-exten-vm:11] Set(“SIP/GlobalPhoneTrunk-00000055”, “SV_DIALSTATUS=CHANUNAVAIL”) in new stack

– Executing [s@macro-exten-vm:12] GosubIf(“SIP/GlobalPhoneTrunk-00000055”, “0?docfu,1”) in new stack

– Executing [s@macro-exten-vm:13] GosubIf(“SIP/GlobalPhoneTrunk-00000055”, “0?docfb,1”) in new stack

– Executing [s@macro-exten-vm:14] Set(“SIP/GlobalPhoneTrunk-00000055”, “DIALSTATUS=CHANUNAVAIL”) in new stack

– Executing [s@macro-exten-vm:15] NoOp(“SIP/GlobalPhoneTrunk-00000055”, “Voicemail is ‘novm’”) in new stack

– Executing [s@macro-exten-vm:16] GotoIf(“SIP/GlobalPhoneTrunk-00000055”, “1?s-CHANUNAVAIL,1”) in new stack

– Goto (macro-exten-vm,s-CHANUNAVAIL,1)

– Executing [s-CHANUNAVAIL@macro-exten-vm:1] NoOp(“SIP/GlobalPhoneTrunk-00000055”, "IVR_RETVM: IVR_CONTEXT: ") in new stack

– Executing [s-CHANUNAVAIL@macro-exten-vm:2] GotoIf(“SIP/GlobalPhoneTrunk-00000055”, “0?exit,1”) in new stack

– Executing [s-CHANUNAVAIL@macro-exten-vm:3] PlayTones(“SIP/GlobalPhoneTrunk-00000055”, “congestion”) in new stack

– Executing [s-CHANUNAVAIL@macro-exten-vm:4] Congestion(“SIP/GlobalPhoneTrunk-00000055”, “10”) in new stack

== Spawn extension (macro-exten-vm, s-CHANUNAVAIL, 4) exited non-zero on ‘SIP/GlobalPhoneTrunk-00000055’ in macro ‘exten-vm’

== Spawn extension (from-internal, 1000, 1) exited non-zero on ‘SIP/GlobalPhoneTrunk-00000055’

– Executing [h@from-internal:1] Macro(“SIP/GlobalPhoneTrunk-00000055”, “hangupcall”) in new stack

– Executing [s@macro-hangupcall:1] GotoIf(“SIP/GlobalPhoneTrunk-00000055”, “1?skiprg”) in new stack

– Goto (macro-hangupcall,s,4)

– Executing [s@macro-hangupcall:4] GotoIf(“SIP/GlobalPhoneTrunk-00000055”, “1?skipblkvm”) in new stack

– Goto (macro-hangupcall,s,7)

– Executing [s@macro-hangupcall:7] GotoIf(“SIP/GlobalPhoneTrunk-00000055”, “1?theend”) in new stack

– Goto (macro-hangupcall,s,9)
– Executing [s@macro-hangupcall:9] Hangup(“SIP/GlobalPhoneTrunk-00000055”, “”) in new stack

== Spawn extension (macro-hangupcall, s, 9) exited non-zero on ‘SIP/GlobalPhoneTrunk-00000055’ in macro ‘hangupcall’
== Spawn extension (from-internal, h, 1) exited non-zero on ‘SIP/GlobalPhoneTrunk-00000055’

== Using SIP RTP TOS bits 184

== Using SIP RTP CoS mark 5

– Executing [5555550001@from-trunk-sip-GlobalPhoneTrunk:1] Set(“SIP/GlobalPhoneTrunk-00000056”, “GROUP()=OUT_2”) in new stack

– Executing [5555550001@from-trunk-sip-GlobalPhoneTrunk:2] Goto(“SIP/GlobalPhoneTrunk-00000056”, “from-trunk,5555550001,1”) in new stack

– Goto (from-trunk,5555550001,1)

– Executing [5555550001@from-trunk:1] Goto(“SIP/GlobalPhoneTrunk-00000056”, “from-internal,1000,1”) in new stack

– Goto (from-internal,1000,1)

– Executing [1000@from-internal:1] Macro(“SIP/GlobalPhoneTrunk-00000056”, “exten-vm,novm,1000”) in new stack

– Executing [s@macro-exten-vm:1] Macro(“SIP/GlobalPhoneTrunk-00000056”, “user-callerid,”) in new stack

– Executing [s@macro-user-callerid:1] Set(“SIP/GlobalPhoneTrunk-00000056”, “AMPUSER=6465550001”) in new stack

– Executing [s@macro-user-callerid:2] GotoIf(“SIP/GlobalPhoneTrunk-00000056”, “0?report”) in new stack

– Executing [s@macro-user-callerid:3] ExecIf(“SIP/GlobalPhoneTrunk-00000056”, “1?Set(REALCALLERIDNUM=6465550001)”) in new stack

– Executing [s@macro-user-callerid:4] Set(“SIP/GlobalPhoneTrunk-00000056”, “AMPUSER=”) in new stack

– Executing [s@macro-user-callerid:5] Set(“SIP/GlobalPhoneTrunk-00000056”, “AMPUSERCIDNAME=”) in new stack

– Executing [s@macro-user-callerid:6] GotoIf(“SIP/GlobalPhoneTrunk-00000056”, “1?report”) in new stack

– Goto (macro-user-callerid,s,9)

– Executing [s@macro-user-callerid:9] GotoIf(“SIP/GlobalPhoneTrunk-00000056”, “0?continue”) in new stack

– Executing [s@macro-user-callerid:10] Set(“SIP/GlobalPhoneTrunk-00000056”, “__TTL=64”) in new stack

– Executing [s@macro-user-callerid:11] GotoIf(“SIP/GlobalPhoneTrunk-00000056”, “1?continue”) in new stack

– Goto (macro-user-callerid,s,18)

– Executing [s@macro-user-callerid:18] NoOp(“SIP/GlobalPhoneTrunk-00000056”, “Using CallerID “CALLER ID” <6465550001>”) in new stack

– Executing [s@macro-exten-vm:2] Set(“SIP/GlobalPhoneTrunk-00000056”, “RingGroupMethod=none”) in new stack

– Executing [s@macro-exten-vm:3] Set(“SIP/GlobalPhoneTrunk-00000056”, “VMBOX=novm”) in new stack

– Executing [s@macro-exten-vm:4] Set(“SIP/GlobalPhoneTrunk-00000056”, “EXTTOCALL=1000”) in new stack

– Executing [s@macro-exten-vm:5] Set(“SIP/GlobalPhoneTrunk-00000056”, “CFUEXT=”) in new stack

– Executing [s@macro-exten-vm:6] Set(“SIP/GlobalPhoneTrunk-00000056”, “CFBEXT=”) in new stack

– Executing [s@macro-exten-vm:7] Set(“SIP/GlobalPhoneTrunk-00000056”, “RT=”"") in new stack

– Executing [s@macro-exten-vm:8] Macro(“SIP/GlobalPhoneTrunk-00000056”, “record-enable,1000,IN”) in new stack

– Executing [s@macro-record-enable:1] GotoIf(“SIP/GlobalPhoneTrunk-00000056”, “1?check”) in new stack

– Goto (macro-record-enable,s,4)

– Executing [s@macro-record-enable:4] ExecIf(“SIP/GlobalPhoneTrunk-00000056”, “0?MacroExit()”) in new stack

– Executing [s@macro-record-enable:5] GotoIf(“SIP/GlobalPhoneTrunk-00000056”, “0?Group:OUT”) in new stack

– Goto (macro-record-enable,s,16)

– Executing [s@macro-record-enable:16] GotoIf(“SIP/GlobalPhoneTrunk-00000056”, “1?IN”) in new stack

– Goto (macro-record-enable,s,21)

– Executing [s@macro-record-enable:21] ExecIf(“SIP/GlobalPhoneTrunk-00000056”, “1?MacroExit()”) in new stack

– Executing [s@macro-exten-vm:9] Macro(“SIP/GlobalPhoneTrunk-00000056”, “dial,tr,1000”) in new stack

– Executing [s@macro-dial:1] GotoIf(“SIP/GlobalPhoneTrunk-00000056”, “1?dial”) in new stack

– Goto (macro-dial,s,3)
– Executing [s@macro-dial:3] AGI(“SIP/GlobalPhoneTrunk-00000056”, “dialparties.agi”) in new stack

– Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
dialparties.agi: Starting New Dialparties.agi
dialparties.agi: Caller ID name is ‘CALLER ID’ number is '6465550001’
dialparties.agi: Methodology of ring is ‘none’

– dialparties.agi: Added extension 1000 to extension map

– dialparties.agi: Extension 1000 cf is disabled

– dialparties.agi: Extension 1000 do not disturb is disabled
dialparties.agi: EXTENSION_STATE: 4 (UNAVAILABLE)

– dialparties.agi: dbset CALLTRACE/1000 to 6465550001

– dialparties.agi: Filtered ARG3: 1000

– <SIP/GlobalPhoneTrunk-00000056>AGI Script dialparties.agi completed, returning 0

– Executing [s@macro-dial:7] Dial(“SIP/GlobalPhoneTrunk-00000056”, “SIP/1000,tr”) in new stack

== Using SIP RTP TOS bits 184

== Using SIP RTP CoS mark 5

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

– Executing [s@macro-dial:8] Set(“SIP/GlobalPhoneTrunk-00000056”, “DIALSTATUS=CHANUNAVAIL”) in new stack

– Executing [s@macro-dial:9] GosubIf(“SIP/GlobalPhoneTrunk-00000056”, “0?CHANUNAVAIL,1”) in new stack

– Executing [s@macro-exten-vm:10] GotoIf(“SIP/GlobalPhoneTrunk-00000056”, “0?exit,return”) in new stack

– Executing [s@macro-exten-vm:11] Set(“SIP/GlobalPhoneTrunk-00000056”, “SV_DIALSTATUS=CHANUNAVAIL”) in new stack

– Executing [s@macro-exten-vm:12] GosubIf(“SIP/GlobalPhoneTrunk-00000056”, “0?docfu,1”) in new stack

– Executing [s@macro-exten-vm:13] GosubIf(“SIP/GlobalPhoneTrunk-00000056”, “0?docfb,1”) in new stack

– Executing [s@macro-exten-vm:14] Set(“SIP/GlobalPhoneTrunk-00000056”, “DIALSTATUS=CHANUNAVAIL”) in new stack

– Executing [s@macro-exten-vm:15] NoOp(“SIP/GlobalPhoneTrunk-00000056”, “Voicemail is ‘novm’”) in new stack

– Executing [s@macro-exten-vm:16] GotoIf(“SIP/GlobalPhoneTrunk-00000056”, “1?s-CHANUNAVAIL,1”) in new stack

– Goto (macro-exten-vm,s-CHANUNAVAIL,1)

– Executing [s-CHANUNAVAIL@macro-exten-vm:1] NoOp(“SIP/GlobalPhoneTrunk-00000056”, "IVR_RETVM: IVR_CONTEXT: ") in new stack

– Executing [s-CHANUNAVAIL@macro-exten-vm:2] GotoIf(“SIP/GlobalPhoneTrunk-00000056”, “0?exit,1”) in new stack

– Executing [s-CHANUNAVAIL@macro-exten-vm:3] PlayTones(“SIP/GlobalPhoneTrunk-00000056”, “congestion”) in new stack

– Executing [s-CHANUNAVAIL@macro-exten-vm:4] Congestion(“SIP/GlobalPhoneTrunk-00000056”, “10”) in new stack

== Spawn extension (macro-exten-vm, s-CHANUNAVAIL, 4) exited non-zero on ‘SIP/GlobalPhoneTrunk-00000056’ in macro ‘exten-vm’

== Spawn extension (from-internal, 1000, 1) exited non-zero on ‘SIP/GlobalPhoneTrunk-00000056’

– Executing [h@from-internal:1] Macro(“SIP/GlobalPhoneTrunk-00000056”, “hangupcall”) in new stack

– Executing [s@macro-hangupcall:1] GotoIf(“SIP/GlobalPhoneTrunk-00000056”, “1?skiprg”) in new stack

– Goto (macro-hangupcall,s,4)

– Executing [s@macro-hangupcall:4] GotoIf(“SIP/GlobalPhoneTrunk-00000056”, “1?skipblkvm”) in new stack

– Goto (macro-hangupcall,s,7)

– Executing [s@macro-hangupcall:7] GotoIf(“SIP/GlobalPhoneTrunk-00000056”, “1?theend”) in new stack

– Goto (macro-hangupcall,s,9)

– Executing [s@macro-hangupcall:9] Hangup(“SIP/GlobalPhoneTrunk-00000056”, “”) in new stack

== Spawn extension (macro-hangupcall, s, 9) exited non-zero on ‘SIP/GlobalPhoneTrunk-00000056’ in macro ‘hangupcall’

== Spawn extension (from-internal, h, 1) exited non-zero on ‘SIP/GlobalPhoneTrunk-00000056’

Sorry, upon closer inspection the 1 is not necessary.

“-- Executing [5555550001@from-trunk-sip-GlobalPhoneTrunk:1] Set(“SIP/GlobalPhoneTrunk-00000055”, “GROUP()=OUT_2”) in new stack”

It does appear your provider is not sending DID info for 5555550002. I don’t think this is an Asterisk/FreePBX issue. I doubt there is anything you can do without their involvement.

Kerensen is exactly right. I was wondering why FreePBX did not spit out the usual “you probably want a DID for that” message.

Find out how your provider sends DID info. You may want to consider a provider that is more user friendly.

Thank you, I figured they were the part of the issue, you confirmed my suspicion, thanks so much for assisting :slight_smile:

I recently contacted 2 other providers, Bandwidth and Saffusa, and there seems to be a problem on my side. The trunks connect fine, and I am able to make outbound calls fine, but can’t receive inbound calls. If I call in I hear a busy signal, both providers said that they are receiving a 404 error from my PBX, the interesting thing is that my first provider, Global Phone is able to make and receive calls with the same issue as stated above. The inbound routes are all configured the same. When I try to call I don’t see any errors on my end, how can I see the error that my provider sees? And what can cause the 404 error?

By the way after talking with Global phone they say that my pbx causes this error:
[tos 0x60]
21:46:52.807318 192.168.1.158.5060 > 192.168.1.1.5060:

sip header start>>>>>>>>>>>>>>>>>>>
SIP/2.0 503 Service Unavailable

What is up with this? and how can I view all these errors, I want to think that these errors are somehow all related in some way.

I have an odd feeling that there is probably an issue with my router…I am using an edgemarc 4500 looking through this I see that the router has sip settings pointing at a server used by Global Phone…, I also have issues setting my PBX for remote access.