hello,
I am using asterisk and freepbx both 12 version and FXO device for call routing, all modules are working as well as my inbound route is working also through FXO device except the outbound route through trunks for ring group ringing to only one number of the group using only a single trunk and ended for all other numbers. here is the log for outbound call :
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– Called SIP/415041X_out/837396XXXX
– SIP/423724X_out-000003fa is ringing
– Local/0887438XXXX@outbound-allroutes-00000014;1 is ringing
– Local/0887438XXXX@from-internal-00000012;1 is ringing
– SIP/415041X_out-000003fc is ringing
– Local/0837396XXXX@outbound-allroutes-00000015;1 is ringing
– Local/0837396XXXX@from-internal-00000013;1 is ringing
– SIP/415041X_out-000003fc answered Local/0837396XXX@outbound-allroutes-00000015;2
– Local/0837396XXXX@outbound-allroutes-00000015;1 answered Local/0837396XXXX@from-internal-00000013;2
– Executing [s@macro-auto-blkvm:1] Set(“Local/0837396XXXX@outbound-allroutes-00000015;1”, “__MACRO_RESULT=”) in new stack
– Executing [s@macro-auto-blkvm:2] Set(“Local/0837396XXXX@outbound-allroutes-00000015;1”, “CFIGNORE=”) in new stack
– Channel Local/0837396XXXX@outbound-allroutes-00000015;2 joined ‘simple_bridge’ basic-bridge <9d7125ed-d50f-48ab-a791-22cca1d6ea86>
– Executing [s@macro-auto-blkvm:3] Set(“Local/0837396XXXX@outbound-allroutes-00000015;1”, “MASTER_CHANNEL(CFIGNORE)=”) in new stack
– Executing [s@macro-auto-blkvm:4] Set(“Local/0837396XXXX@outbound-allroutes-00000015;1”, “FORWARD_CONTEXT=from-internal”) in new stack
– Channel SIP/415041X_out-000003fc joined ‘simple_bridge’ basic-bridge <9d7125ed-d50f-48ab-a791-22cca1d6ea86>
– Executing [s@macro-auto-blkvm:5] Set(“Local/0837396XXXX@outbound-allroutes-00000015;1”, “MASTER_CHANNEL(FORWARD_CONTEXT)=from-internal”) in new stack
– Executing [s@macro-auto-blkvm:6] Macro(“Local/0837396XXXX@outbound-allroutes-00000015;1”, “blkvm-clr,”) in new stack
– Executing [s@macro-blkvm-clr:1] Set(“Local/0837396XXXX@outbound-allroutes-00000015;1”, “SHARED(BLKVM,SIP/14-000003f9)=”) in new stack
– Executing [s@macro-blkvm-clr:2] Set(“Local/0837396XXXX@outbound-allroutes-00000015;1”, “GOSUB_RETVAL=”) in new stack
– Executing [s@macro-blkvm-clr:3] MacroExit(“Local/0837396XXXX@outbound-allroutes-00000015;1”, “”) in new stack
– Executing [s@macro-auto-blkvm:7] ExecIf(“Local/0837396XXXX@outbound-allroutes-00000015;1”, “0?Set(MASTER_CHANNEL(CONNECTEDLINE(num))=0837396XXXX@outbound-allroutes)”) in new stack
– Executing [s@macro-auto-blkvm:8] ExecIf(“Local/0837396XXXX@outbound-allroutes-00000015;1”, “0?Set(MASTER_CHANNEL(CONNECTEDLINE(name))=)”) in new stack
– Local/0837396XXXX@from-internal-00000013;1 answered SIP/14-000003f9
== Spawn extension (macro-dial-one, s, 45) exited non-zero on ‘Local/0887438XXXX@from-internal-00000012;2’ in macro ‘dial-one’
– Executing [s@macro-auto-blkvm:1] Set(“Local/0837396XXXX@from-internal-00000013;1”, “__MACRO_RESULT=”) in new stack
== Spawn extension (macro-exten-vm, s, 14) exited non-zero on ‘Local/0887438XXXX@from-internal-00000012;2’ in macro ‘exten-vm’
– Executing [s@macro-auto-blkvm:2] Set(“Local/0837396XXXX@from-internal-00000013;1”, “CFIGNORE=”) in new stack
– Executing [s@macro-auto-blkvm:3] Set(“Local/0837396XXXX@from-internal-00000013;1”, “MASTER_CHANNEL(CFIGNORE)=”) in new stack
== Spawn extension (from-internal, 0887438XXXX, 2) exited non-zero on ‘Local/0887438XXXX@from-internal-00000012;2’
– Executing [h@from-internal:1] Hangup(“Local/0887438XXXX@from-internal-00000012;2”, “”) in new stack
– Executing [s@macro-auto-blkvm:4] Set(“Local/0837396XXXX@from-internal-00000013;1”, “FORWARD_CONTEXT=from-internal”) in new stack
– Executing [s@macro-auto-blkvm:5] Set(“Local/0837396XXXX@from-internal-00000013;1”, “MASTER_CHANNEL(FORWARD_CONTEXT)=from-internal”) in new stack
== Spawn extension (from-internal, h, 1) exited non-zero on ‘Local/0887438XXXX@from-internal-00000012;2’
– Executing [s@macro-auto-blkvm:6] Macro(“Local/0837396XXXX@from-internal-00000013;1”, “blkvm-clr,”) in new stack
– Executing [s@macro-blkvm-clr:1] Set(“Local/0837396XXXX@from-internal-00000013;1”, “SHARED(BLKVM,SIP/14-000003f9)=”) in new stack
== Spawn extension (macro-dialout-trunk, s, 22) exited non-zero on ‘Local/0887438XXXX@outbound-allroutes-00000014;2’ in macro ‘dialout-trunk’
== Spawn extension (outbound-allroutes, 0887438XXXX, 6) exited non-zero on ‘Local/0887438XXXX@outbound-allroutes-00000014;2’
– Executing [s@macro-blkvm-clr:2] Set(“Local/0837396XXXX@from-internal-00000013;1”, “GOSUB_RETVAL=”) in new stack
– Channel Local/0837396XXXX@from-internal-00000013;2 joined ‘simple_bridge’ basic-bridge
– Executing [s@macro-blkvm-clr:3] MacroExit(“Local/0837396XXXX@from-internal-00000013;1”, “”) in new stack
– Executing [s@macro-auto-blkvm:7] ExecIf(“Local/0837396XXXX@from-internal-00000013;1”, “0?Set(MASTER_CHANNEL(CONNECTEDLINE(num))=0837396XXXX@from-internal/n)”) in new stack
– Channel Local/0837396XXXX@outbound-allroutes-00000015;1 joined ‘simple_bridge’ basic-bridge
– Executing [s@macro-auto-blkvm:8] ExecIf(“Local/0837396XXXX@from-internal-00000013;1”, “0?Set(MASTER_CHANNEL(CONNECTEDLINE(name))=)”) in new stack
– Channel SIP/14-000003f9 joined ‘simple_bridge’ basic-bridge <87606fa9-c626-4139-a186-6255af6511a6>
– Channel Local/0837396XXXX@from-internal-00000013;1 joined ‘simple_bridge’ basic-bridge <87606fa9-c626-4139-a186-6255af6511a6>
– Move-swap optimizing Local/0837396XXXX@outbound-allroutes-00000015;1 <-- SIP/4150418_out-000003fc.
– Channel SIP/415041X_out-000003fc left ‘simple_bridge’ basic-bridge <9d7125ed-d50f-48ab-a791-22cca1d6ea86>
– Channel SIP/415041X_out-000003fc swapped with Local/0837396XXXX@outbound-allroutes-00000015;1 into ‘simple_bridge’ basic-bridge
– Channel Local/0837396XXXX@outbound-allroutes-00000015;1 left ‘simple_bridge’ basic-bridge
– Channel Local/0837396XXXX@outbound-allroutes-00000015;2 left ‘simple_bridge’ basic-bridge <9d7125ed-d50f-48ab-a791-22cca1d6ea86>
== Spawn extension (macro-dialout-trunk, s, 22) exited non-zero on ‘Local/0837396XXXX@outbound-allroutes-00000015;2’ in macro ‘dialout-trunk’
== Spawn extension (outbound-allroutes, 0837396XXXX, 7) exited non-zero on ‘Local/0837396XXXX@outbound-allroutes-00000015;2’
– Channel SIP/14-000003f9 left ‘simple_bridge’ basic-bridge <87606fa9-c626-4139-a186-6255af6511a6>
– Channel Local/0837396XXXX@from-internal-00000013;1 left ‘simple_bridge’ basic-bridge <87606fa9-c626-4139-a186-6255af6511a6>
– Channel Local/0837396XXXX@from-internal-00000013;2 left ‘simple_bridge’ basic-bridge
== Spawn extension (macro-dial-one, s, 45) exited non-zero on ‘Local/0837396XXXX@from-internal-00000013;2’ in macro ‘dial-one’
– Channel SIP/415041X_out-000003fc left ‘simple_bridge’ basic-bridge
== Spawn extension (macro-exten-vm, s, 14) exited non-zero on ‘Local/0837396XXXX@from-internal-00000013;2’ in macro ‘exten-vm’
== Spawn extension (from-internal, 0837396XXXX, 2) exited non-zero on ‘Local/0837396XXXX@from-internal-00000013;2’
– Executing [h@from-internal:1] Hangup(“Local/0837396XXXX@from-internal-00000013;2”, “”) in new stack
== Spawn extension (from-internal, h, 1) exited non-zero on ‘Local/0837396XXXX@from-internal-00000013;2’
== Spawn extension (macro-dial, s, 7) exited non-zero on ‘SIP/14-000003f9’ in macro ‘dial’
== Spawn extension (from-internal, 600, 11) exited non-zero on ‘SIP/14-000003f9’
– Executing [h@from-internal:1] Hangup(“SIP/14-000003f9”, “”) in new stack
== Spawn extension (from-internal, h, 1) exited non-zero on ‘SIP/14-000003f9’
my trunks peer detail are as :
type=friend
qualify=yes
insecure=invite
host=192.168.1.X
context=from-trunk
username=423774X
secret=423774X
port=5062
canreinvite=no
disallow=all
allow=ulaw&gsm
type=friend
qualify=yes
username=423724X
secret=423724X
host=192.168.1.X
insecure=invite
disallow=no
port=5064
context=from-trunk
canreinvite=no
allow=gsm&ulaw
type=peer
qualify=yes
host=192.168.1.X
username=415041X
secret=415041X
port=5060
context=from-trunk
insecure=invite
allow=gsm&ulaw
please do correct me if am wrong anywhere.
thanks in advance.
regards
Sanchita