Callee sees wrong number

Status
Not open for further replies.

MrGlasspoole

Member
Nov 11, 2017
31
0
6
47
I have two phone numbers at my provider and made two gateways (one for each number).
The problem is that if my parents call somebody then my number shows up.

I have in the gateway settings:
From User: xxxxxxxx685

In my parents extension settings:
Outbound Caller ID Name: xxxxxxxx685
Outbound Caller ID Number: xxxxxxxx685

My parents hand set is set to (in the DECT station):
Display name: xxxxxxxx685

I also made sure that on the provider page the caller ID is set to the correct number.

Is that a provider problem or what I'm missing?
 

Caleb

Member
Sep 12, 2017
42
17
8
WA, USA
It definitely depends on the provider. We were experimenting at one point with Twilio and Flowroute simultaneously, and there were different settings for each. We just have Twilio now, so I can provide pointers there if needed. I don't have my notes on Flowroute, so I can't help you there, but I do remember their support staff were super helpful when I was trying to figure it out.

I haven't confirmed it, but it seems like the trunk settings override any outbound caller ID settings of an extension.
 

MrGlasspoole

Member
Nov 11, 2017
31
0
6
47
Ok, my provider says the setting in there backend overwrites everything i would set in my PBX/Phone.
So it doesn't matter what i put in Caller ID, Display name, From user...

So maybe my second extension is not using the second gateway?

FusionPBX_Outbound.jpg

Extension_2.png

Code:
2017-11-29 12:41:55.044651 [NOTICE] switch_channel.c:1104 New Channel sofia/internal/1002@10.1.0.11 [da8f3b3b-f772-4e8c-bed9-b8324b9ee78b]
2017-11-29 12:41:55.044651 [DEBUG] switch_core_state_machine.c:584 (sofia/internal/1002@10.1.0.11) Running State Change CS_NEW (Cur 1 Tot 114)
2017-11-29 12:41:55.044651 [DEBUG] sofia.c:9873 sofia/internal/1002@10.1.0.11 receiving invite from 10.1.0.4:5068 version: 1.6.19 -36-7a77e0b 64bit
2017-11-29 12:41:55.044651 [DEBUG] sofia.c:10044 IP 10.1.0.4 Rejected by acl "domains". Falling back to Digest auth.
2017-11-29 12:41:55.044651 [WARNING] sofia_reg.c:1792 SIP auth challenge (INVITE) on sofia profile 'internal' for [90xxxxxxx935@10.1.0.11] from ip 10.1.0.4
2017-11-29 12:41:55.044651 [DEBUG] switch_core_state_machine.c:603 (sofia/internal/1002@10.1.0.11) State NEW
2017-11-29 12:41:55.044651 [DEBUG] sofia.c:2334 detaching session da8f3b3b-f772-4e8c-bed9-b8324b9ee78b
2017-11-29 12:41:55.104695 [DEBUG] sofia.c:2442 Re-attaching to session da8f3b3b-f772-4e8c-bed9-b8324b9ee78b
2017-11-29 12:41:55.124642 [DEBUG] sofia.c:9873 sofia/internal/1002@10.1.0.11 receiving invite from 10.1.0.4:5068 version: 1.6.19 -36-7a77e0b 64bit
2017-11-29 12:41:55.124642 [DEBUG] sofia.c:10044 IP 10.1.0.4 Rejected by acl "domains". Falling back to Digest auth.
2017-11-29 12:41:55.144649 [DEBUG] sofia.c:7084 Channel sofia/internal/1002@10.1.0.11 entering state [received][100]
2017-11-29 12:41:55.144649 [DEBUG] sofia.c:7094 Remote SDP:
v=0
o=1002 5008 26 IN IP4 10.1.0.4
s=Mapping
c=IN IP4 10.1.0.4
t=0 0
m=audio 5008 RTP/AVP 9 8 0 101
a=rtpmap:9 G722/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20

2017-11-29 12:41:55.144649 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G722:9:8000:20:64000:1]/[opus:116:48000:20:0:1]
2017-11-29 12:41:55.144649 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G722:9:8000:20:64000:1]/[G722:9:8000:20:64000:1]
2017-11-29 12:41:55.144649 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [G722:9:8000:20:64000:1] ++++ is saved as a match
2017-11-29 12:41:55.144649 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G722:9:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
2017-11-29 12:41:55.144649 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G722:9:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
2017-11-29 12:41:55.144649 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[opus:116:48000:20:0:1]
2017-11-29 12:41:55.144649 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G722:9:8000:20:64000:1]
2017-11-29 12:41:55.144649 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
2017-11-29 12:41:55.144649 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
2017-11-29 12:41:55.144649 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
2017-11-29 12:41:55.144649 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[opus:116:48000:20:0:1]
2017-11-29 12:41:55.144649 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[G722:9:8000:20:64000:1]
2017-11-29 12:41:55.144649 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
2017-11-29 12:41:55.144649 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
2017-11-29 12:41:55.144649 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match
2017-11-29 12:41:55.144649 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
2017-11-29 12:41:55.144649 [DEBUG] switch_core_media.c:3061 Set Codec sofia/internal/1002@10.1.0.11 G722/8000 20 ms 160 samples 64000 bits 1 channels
2017-11-29 12:41:55.144649 [DEBUG] switch_core_codec.c:111 sofia/internal/1002@10.1.0.11 Original read codec set to G722:9
2017-11-29 12:41:55.144649 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
2017-11-29 12:41:55.144649 [DEBUG] switch_core_media.c:4767 sofia/internal/1002@10.1.0.11 Set 2833 dtmf send payload to 101 recv payload to 101
2017-11-29 12:41:55.144649 [DEBUG] sofia.c:7507 (sofia/internal/1002@10.1.0.11) State Change CS_NEW -> CS_INIT
2017-11-29 12:41:55.144649 [DEBUG] switch_core_state_machine.c:584 (sofia/internal/1002@10.1.0.11) Running State Change CS_INIT (Cur 1 Tot 114)
2017-11-29 12:41:55.144649 [DEBUG] switch_core_state_machine.c:627 (sofia/internal/1002@10.1.0.11) State INIT
2017-11-29 12:41:55.144649 [DEBUG] mod_sofia.c:90 sofia/internal/1002@10.1.0.11 SOFIA INIT
2017-11-29 12:41:55.144649 [DEBUG] switch_core_state_machine.c:40 sofia/internal/1002@10.1.0.11 Standard INIT
2017-11-29 12:41:55.144649 [DEBUG] switch_core_state_machine.c:48 (sofia/internal/1002@10.1.0.11) State Change CS_INIT -> CS_ROUTING
2017-11-29 12:41:55.144649 [DEBUG] switch_core_state_machine.c:627 (sofia/internal/1002@10.1.0.11) State INIT going to sleep
2017-11-29 12:41:55.144649 [DEBUG] switch_core_state_machine.c:584 (sofia/internal/1002@10.1.0.11) Running State Change CS_ROUTING (Cur 1 Tot 114)
2017-11-29 12:41:55.144649 [DEBUG] switch_channel.c:2249 (sofia/internal/1002@10.1.0.11) Callstate Change DOWN -> RINGING
2017-11-29 12:41:55.144649 [DEBUG] switch_core_state_machine.c:643 (sofia/internal/1002@10.1.0.11) State ROUTING
2017-11-29 12:41:55.144649 [DEBUG] mod_sofia.c:143 sofia/internal/1002@10.1.0.11 SOFIA ROUTING
2017-11-29 12:41:55.144649 [DEBUG] switch_core_state_machine.c:236 sofia/internal/1002@10.1.0.11 Standard ROUTING
2017-11-29 12:41:55.144649 [INFO] mod_dialplan_xml.c:637 Processing 0049xxxxxxx685 <1002>->90xxxxxxx935 in context 10.1.0.11
Dialplan: sofia/internal/1002@10.1.0.11 parsing [10.1.0.11->user_exists] continue=true
Dialplan: sofia/internal/1002@10.1.0.11 Regex (PASS) [user_exists] () =~ // break=on-false
Dialplan: sofia/internal/1002@10.1.0.11 Action set(user_exists=${user_exists id ${destination_number} ${domain_name}}) INLINE
2017-11-29 12:41:55.204625 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7ff9ec0990f0 Connected.
2017-11-29 12:41:55.204625 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7ff9ec0990f0 released.
EXECUTE sofia/internal/1002@10.1.0.11 set(user_exists=false)
2017-11-29 12:41:55.204625 [DEBUG] mod_dptools.c:1548 SET sofia/internal/1002@10.1.0.11 [user_exists]=[false]
Dialplan: sofia/internal/1002@10.1.0.11 Regex (FAIL) [user_exists] ${user_exists}(false) =~ /^true$/ break=on-false
Dialplan: sofia/internal/1002@10.1.0.11 parsing [10.1.0.11->call-direction] continue=true
Dialplan: sofia/internal/1002@10.1.0.11 Regex (FAIL) [call-direction] ${call_direction}() =~ /^(inbound|outbound|local)$/ break=never
Dialplan: sofia/internal/1002@10.1.0.11 ANTI-Action set(call_direction=local)
Dialplan: sofia/internal/1002@10.1.0.11 parsing [10.1.0.11->variables] continue=true
Dialplan: sofia/internal/1002@10.1.0.11 Regex (PASS) [variables] () =~ // break=on-false
Dialplan: sofia/internal/1002@10.1.0.11 Action export(origination_callee_id_name=${destination_number})
Dialplan: sofia/internal/1002@10.1.0.11 Action set(RFC2822_DATE=${strftime(%a, %d %b %Y %T %z)})
Dialplan: sofia/internal/1002@10.1.0.11 parsing [10.1.0.11->user_record] continue=true
Dialplan: sofia/internal/1002@10.1.0.11 Regex (PASS) [user_record] () =~ // break=on-false
Dialplan: sofia/internal/1002@10.1.0.11 Action set(user_record=${user_data ${destination_number}@${domain_name} var user_record}) INLINE
2017-11-29 12:41:55.204625 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7ff9ec0990f0 Connected.
2017-11-29 12:41:55.224627 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7ff9ec0990f0 released.
2017-11-29 12:41:55.224627 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7ff9ec0990f0 Connected.
2017-11-29 12:41:55.224627 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7ff9ec0990f0 released.
EXECUTE sofia/internal/1002@10.1.0.11 set(user_record=)
2017-11-29 12:41:55.224627 [DEBUG] mod_dptools.c:1548 SET sofia/internal/1002@10.1.0.11 [user_record]=[UNDEF]
Dialplan: sofia/internal/1002@10.1.0.11 Action set(from_user_exists=${user_exists id ${sip_from_user} ${sip_from_host}}) INLINE
EXECUTE sofia/internal/1002@10.1.0.11 set(from_user_exists=true)
2017-11-29 12:41:55.244636 [DEBUG] mod_dptools.c:1548 SET sofia/internal/1002@10.1.0.11 [from_user_exists]=[true]
Dialplan: sofia/internal/1002@10.1.0.11 Regex (FAIL) [user_record] ${user_exists}(false) =~ /^true$/ break=never
Dialplan: sofia/internal/1002@10.1.0.11 Regex (FAIL) [user_record] ${user_record}() =~ /^all$/ break=never
Dialplan: sofia/internal/1002@10.1.0.11 Regex (FAIL) [user_record] ${user_exists}(false) =~ /^true$/ break=never
Dialplan: sofia/internal/1002@10.1.0.11 Regex (FAIL) [user_record] ${call_direction}() =~ /^inbound$/ break=never
Dialplan: sofia/internal/1002@10.1.0.11 Regex (FAIL) [user_record] ${user_record}() =~ /^inbound$/ break=never
Dialplan: sofia/internal/1002@10.1.0.11 Regex (FAIL) [user_record] ${user_exists}(false) =~ /^true$/ break=never
Dialplan: sofia/internal/1002@10.1.0.11 Regex (FAIL) [user_record] ${call_direction}() =~ /^outbound$/ break=never
Dialplan: sofia/internal/1002@10.1.0.11 Regex (FAIL) [user_record] ${user_record}() =~ /^outbound$/ break=never
Dialplan: sofia/internal/1002@10.1.0.11 Regex (FAIL) [user_record] ${user_exists}(false) =~ /^true$/ break=never
Dialplan: sofia/internal/1002@10.1.0.11 Regex (FAIL) [user_record] ${call_direction}() =~ /^local$/ break=never
Dialplan: sofia/internal/1002@10.1.0.11 Regex (FAIL) [user_record] ${user_record}() =~ /^local$/ break=never
Dialplan: sofia/internal/1002@10.1.0.11 Regex (PASS) [user_record] ${from_user_exists}(true) =~ /^true$/ break=never
Dialplan: sofia/internal/1002@10.1.0.11 Action set(from_user_record=${user_data ${sip_from_user}@${sip_from_host} var user_record}) INLINE
EXECUTE sofia/internal/1002@10.1.0.11 set(from_user_record=)
2017-11-29 12:41:55.244636 [DEBUG] mod_dptools.c:1548 SET sofia/internal/1002@10.1.0.11 [from_user_record]=[UNDEF]
Dialplan: sofia/internal/1002@10.1.0.11 Regex (PASS) [user_record] ${from_user_exists}(true) =~ /^true$/ break=never
Dialplan: sofia/internal/1002@10.1.0.11 Regex (FAIL) [user_record] ${from_user_record}() =~ /^all$/ break=never
Dialplan: sofia/internal/1002@10.1.0.11 Regex (PASS) [user_record] ${from_user_exists}(true) =~ /^true$/ break=never
Dialplan: sofia/internal/1002@10.1.0.11 Regex (FAIL) [user_record] ${call_direction}() =~ /^inbound$/ break=never
Dialplan: sofia/internal/1002@10.1.0.11 Regex (FAIL) [user_record] ${from_user_record}() =~ /^inbound$/ break=never
Dialplan: sofia/internal/1002@10.1.0.11 Regex (PASS) [user_record] ${from_user_exists}(true) =~ /^true$/ break=never
Dialplan: sofia/internal/1002@10.1.0.11 Regex (FAIL) [user_record] ${call_direction}() =~ /^outbound$/ break=never
Dialplan: sofia/internal/1002@10.1.0.11 Regex (FAIL) [user_record] ${from_user_record}() =~ /^outbound$/ break=never
Dialplan: sofia/internal/1002@10.1.0.11 Regex (PASS) [user_record] ${from_user_exists}(true) =~ /^true$/ break=never
Dialplan: sofia/internal/1002@10.1.0.11 Regex (FAIL) [user_record] ${call_direction}() =~ /^local$/ break=never
Dialplan: sofia/internal/1002@10.1.0.11 Regex (FAIL) [user_record] ${from_user_record}() =~ /^local$/ break=never
Dialplan: sofia/internal/1002@10.1.0.11 Regex (FAIL) [user_record] ${record_session}() =~ /^true$/ break=on-false
Dialplan: sofia/internal/1002@10.1.0.11 parsing [10.1.0.11->redial] continue=true
Dialplan: sofia/internal/1002@10.1.0.11 Regex (FAIL) [redial] destination_number(90xxxxxxx935) =~ /^(redial|\*870)$/ break=on-true
Dialplan: sofia/internal/1002@10.1.0.11 Regex (PASS) [redial] () =~ // break=never
Dialplan: sofia/internal/1002@10.1.0.11 Action hash(insert/${domain_name}-last_dial/${caller_id_number}/${destination_number})
Dialplan: sofia/internal/1002@10.1.0.11 parsing [10.1.0.11->speed_dial] continue=false
Dialplan: sofia/internal/1002@10.1.0.11 Regex (FAIL) [speed_dial] destination_number(90xxxxxxx935) =~ /^\*0(.*)$/ break=on-false
Dialplan: sofia/internal/1002@10.1.0.11 parsing [10.1.0.11->Easybell_Bjoern.d] continue=false
Dialplan: sofia/internal/1002@10.1.0.11 Regex (PASS) [Easybell_Bjoern.d] destination_number(90xxxxxxx935) =~ /^9(.*)$/ break=on-false
Dialplan: sofia/internal/1002@10.1.0.11 Action set(sip_h_X-accountcode=${accountcode})
Dialplan: sofia/internal/1002@10.1.0.11 Action set(call_direction=outbound)
Dialplan: sofia/internal/1002@10.1.0.11 Action unset(call_timeout)
Dialplan: sofia/internal/1002@10.1.0.11 Action set(hangup_after_bridge=true)
Dialplan: sofia/internal/1002@10.1.0.11 Action set(effective_caller_id_name=${outbound_caller_id_name})
Dialplan: sofia/internal/1002@10.1.0.11 Action set(effective_caller_id_number=${outbound_caller_id_number})
Dialplan: sofia/internal/1002@10.1.0.11 Action set(inherit_codec=true)
Dialplan: sofia/internal/1002@10.1.0.11 Action set(ignore_display_updates=true)
Dialplan: sofia/internal/1002@10.1.0.11 Action set(callee_id_number=0xxxxxxx935)
Dialplan: sofia/internal/1002@10.1.0.11 Action set(continue_on_fail=true)
Dialplan: sofia/internal/1002@10.1.0.11 Action bridge(sofia/gateway/210c332b-c488-43ba-9a1d-f68c810b7108/0xxxxxxx935)
2017-11-29 12:41:55.244636 [DEBUG] switch_core_state_machine.c:286 (sofia/internal/1002@10.1.0.11) State Change CS_ROUTING -> CS_EXECUTE
2017-11-29 12:41:55.244636 [DEBUG] switch_core_state_machine.c:643 (sofia/internal/1002@10.1.0.11) State ROUTING going to sleep
2017-11-29 12:41:55.244636 [DEBUG] switch_core_state_machine.c:584 (sofia/internal/1002@10.1.0.11) Running State Change CS_EXECUTE (Cur 1 Tot 114)
2017-11-29 12:41:55.244636 [DEBUG] switch_core_state_machine.c:650 (sofia/internal/1002@10.1.0.11) State EXECUTE
2017-11-29 12:41:55.244636 [DEBUG] mod_sofia.c:198 sofia/internal/1002@10.1.0.11 SOFIA EXECUTE
2017-11-29 12:41:55.244636 [DEBUG] switch_core_state_machine.c:328 sofia/internal/1002@10.1.0.11 Standard EXECUTE
EXECUTE sofia/internal/1002@10.1.0.11 set(call_direction=local)
2017-11-29 12:41:55.244636 [DEBUG] mod_dptools.c:1548 SET sofia/internal/1002@10.1.0.11 [call_direction]=[local]
EXECUTE sofia/internal/1002@10.1.0.11 export(origination_callee_id_name=90xxxxxxx935)
2017-11-29 12:41:55.244636 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [origination_callee_id_name]=[90xxxxxxx935]
EXECUTE sofia/internal/1002@10.1.0.11 set(RFC2822_DATE=Wed, 29 Nov 2017 12:41:55 +0100)
2017-11-29 12:41:55.244636 [DEBUG] mod_dptools.c:1548 SET sofia/internal/1002@10.1.0.11 [RFC2822_DATE]=[Wed, 29 Nov 2017 12:41:55 +0100]
EXECUTE sofia/internal/1002@10.1.0.11 hash(insert/10.1.0.11-last_dial/1002/90xxxxxxx935)
EXECUTE sofia/internal/1002@10.1.0.11 set(sip_h_X-accountcode=)
2017-11-29 12:41:55.244636 [DEBUG] mod_dptools.c:1548 SET sofia/internal/1002@10.1.0.11 [sip_h_X-accountcode]=[UNDEF]
EXECUTE sofia/internal/1002@10.1.0.11 set(call_direction=outbound)
2017-11-29 12:41:55.244636 [DEBUG] mod_dptools.c:1548 SET sofia/internal/1002@10.1.0.11 [call_direction]=[outbound]
EXECUTE sofia/internal/1002@10.1.0.11 unset(call_timeout)
2017-11-29 12:41:55.244636 [DEBUG] mod_dptools.c:1693 UNSET [call_timeout]
EXECUTE sofia/internal/1002@10.1.0.11 set(hangup_after_bridge=true)
2017-11-29 12:41:55.244636 [DEBUG] mod_dptools.c:1548 SET sofia/internal/1002@10.1.0.11 [hangup_after_bridge]=[true]
EXECUTE sofia/internal/1002@10.1.0.11 set(effective_caller_id_name=0049xxxxxxx685)
2017-11-29 12:41:55.244636 [DEBUG] mod_dptools.c:1548 SET sofia/internal/1002@10.1.0.11 [effective_caller_id_name]=[0049xxxxxxx685]
EXECUTE sofia/internal/1002@10.1.0.11 set(effective_caller_id_number=0049xxxxxxx685)
2017-11-29 12:41:55.244636 [DEBUG] mod_dptools.c:1548 SET sofia/internal/1002@10.1.0.11 [effective_caller_id_number]=[0049xxxxxxx685]
EXECUTE sofia/internal/1002@10.1.0.11 set(inherit_codec=true)
2017-11-29 12:41:55.264624 [DEBUG] mod_dptools.c:1548 SET sofia/internal/1002@10.1.0.11 [inherit_codec]=[true]
EXECUTE sofia/internal/1002@10.1.0.11 set(ignore_display_updates=true)
2017-11-29 12:41:55.265009 [DEBUG] mod_dptools.c:1548 SET sofia/internal/1002@10.1.0.11 [ignore_display_updates]=[true]
EXECUTE sofia/internal/1002@10.1.0.11 set(callee_id_number=0xxxxxxx935)
2017-11-29 12:41:55.265009 [DEBUG] mod_dptools.c:1548 SET sofia/internal/1002@10.1.0.11 [callee_id_number]=[0xxxxxxx935]
EXECUTE sofia/internal/1002@10.1.0.11 set(continue_on_fail=true)
2017-11-29 12:41:55.265009 [DEBUG] mod_dptools.c:1548 SET sofia/internal/1002@10.1.0.11 [continue_on_fail]=[true]
EXECUTE sofia/internal/1002@10.1.0.11 bridge(sofia/gateway/210c332b-c488-43ba-9a1d-f68c810b7108/0xxxxxxx935)
2017-11-29 12:41:55.265009 [DEBUG] switch_channel.c:1250 sofia/internal/1002@10.1.0.11 EXPORTING[export_vars] [domain_name]=[10.1.0.11] to event
2017-11-29 12:41:55.265009 [DEBUG] switch_channel.c:1250 sofia/internal/1002@10.1.0.11 EXPORTING[export_vars] [origination_callee_id_name]=[90xxxxxxx935] to event
2017-11-29 12:41:55.265009 [DEBUG] switch_ivr_originate.c:2142 Parsing global variables
2017-11-29 12:41:55.265009 [NOTICE] switch_channel.c:1104 New Channel sofia/external/0xxxxxxx935 [b590c3c9-3f05-4e3c-894a-1436f69cda7a]
2017-11-29 12:41:55.265009 [DEBUG] mod_sofia.c:4803 sofia/external/0xxxxxxx935 setting variable [sip_cid_type]=[rpid]
2017-11-29 12:41:55.265009 [DEBUG] mod_sofia.c:4819 (sofia/external/0xxxxxxx935) State Change CS_NEW -> CS_INIT
2017-11-29 12:41:55.265009 [DEBUG] switch_core_state_machine.c:584 (sofia/external/0xxxxxxx935) Running State Change CS_INIT (Cur 2 Tot 115)
2017-11-29 12:41:55.265009 [DEBUG] switch_core_state_machine.c:627 (sofia/external/0xxxxxxx935) State INIT
2017-11-29 12:41:55.265009 [DEBUG] mod_sofia.c:90 sofia/external/0xxxxxxx935 SOFIA INIT
2017-11-29 12:41:55.265009 [DEBUG] sofia_glue.c:1295 sofia/external/0xxxxxxx935 sending invite version: 1.6.19 -36-7a77e0b 64bit
Local SDP:
v=0
o=FreeSWITCH 1511933961 1511933962 IN IP4 10.1.0.11
s=FreeSWITCH
c=IN IP4 10.1.0.11
t=0 0
m=audio 21754 RTP/AVP 9 8 0 101 13
a=rtpmap:9 G722/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=rtpmap:13 CN/8000
a=ptime:20
a=sendrecv

2017-11-29 12:41:55.265009 [DEBUG] switch_core_state_machine.c:40 sofia/external/0xxxxxxx935 Standard INIT
2017-11-29 12:41:55.265009 [DEBUG] switch_core_state_machine.c:48 (sofia/external/0xxxxxxx935) State Change CS_INIT -> CS_ROUTING
2017-11-29 12:41:55.265009 [DEBUG] switch_core_state_machine.c:627 (sofia/external/0xxxxxxx935) State INIT going to sleep
2017-11-29 12:41:55.265009 [DEBUG] switch_core_state_machine.c:584 (sofia/external/0xxxxxxx935) Running State Change CS_ROUTING (Cur 2 Tot 115)
2017-11-29 12:41:55.265009 [DEBUG] sofia.c:7084 Channel sofia/external/0xxxxxxx935 entering state [calling][0]
2017-11-29 12:41:55.265009 [DEBUG] switch_core_state_machine.c:643 (sofia/external/0xxxxxxx935) State ROUTING
2017-11-29 12:41:55.265009 [DEBUG] mod_sofia.c:143 sofia/external/0xxxxxxx935 SOFIA ROUTING
2017-11-29 12:41:55.265009 [DEBUG] switch_ivr_originate.c:67 (sofia/external/0xxxxxxx935) State Change CS_ROUTING -> CS_CONSUME_MEDIA
2017-11-29 12:41:55.265009 [DEBUG] switch_core_state_machine.c:643 (sofia/external/0xxxxxxx935) State ROUTING going to sleep
2017-11-29 12:41:55.265009 [DEBUG] switch_core_state_machine.c:584 (sofia/external/0xxxxxxx935) Running State Change CS_CONSUME_MEDIA (Cur 2 Tot 115)
2017-11-29 12:41:55.265009 [DEBUG] switch_core_state_machine.c:662 (sofia/external/0xxxxxxx935) State CONSUME_MEDIA
2017-11-29 12:41:55.265009 [DEBUG] switch_core_state_machine.c:662 (sofia/external/0xxxxxxx935) State CONSUME_MEDIA going to sleep
2017-11-29 12:41:55.364616 [DEBUG] sofia.c:7084 Channel sofia/external/0xxxxxxx935 entering state [calling][0]
2017-11-29 12:42:00.584644 [DEBUG] sofia.c:7084 Channel sofia/external/0xxxxxxx935 entering state [proceeding][183]
2017-11-29 12:42:00.584644 [DEBUG] sofia.c:7094 Remote SDP:
v=0
o=- 3729409 3729409 IN IP4 195.185.37.60
s=-
c=IN IP4 195.185.37.60
t=0 0
m=audio 36064 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=direction:active
a=ptime:20

2017-11-29 12:42:00.584644 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G722:9:8000:20:64000:1]
2017-11-29 12:42:00.584644 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
2017-11-29 12:42:00.584644 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
2017-11-29 12:42:00.584644 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
2017-11-29 12:42:00.584644 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
2017-11-29 12:42:00.584644 [DEBUG] switch_core_media.c:3061 Set Codec sofia/external/0xxxxxxx935 PCMA/8000 20 ms 160 samples 64000 bits 1 channels
2017-11-29 12:42:00.584644 [DEBUG] switch_core_codec.c:111 sofia/external/0xxxxxxx935 Original read codec set to PCMA:8
2017-11-29 12:42:00.584644 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
2017-11-29 12:42:00.584644 [DEBUG] switch_core_media.c:4767 sofia/external/0xxxxxxx935 Set 2833 dtmf send payload to 101 recv payload to 101
2017-11-29 12:42:00.584644 [DEBUG] switch_core_media.c:6878 AUDIO RTP [sofia/external/0xxxxxxx935] 10.1.0.11 port 21754 -> 195.185.37.60 port 36064 codec: 8 ms: 20
2017-11-29 12:42:00.584644 [DEBUG] switch_rtp.c:4111 Starting timer [soft] 160 bytes per 20ms
2017-11-29 12:42:00.584644 [DEBUG] switch_core_media.c:7179 sofia/external/0xxxxxxx935 Set 2833 dtmf send payload to 101
2017-11-29 12:42:00.584644 [DEBUG] switch_core_media.c:7186 sofia/external/0xxxxxxx935 Set 2833 dtmf receive payload to 101
2017-11-29 12:42:00.584644 [DEBUG] switch_core_media.c:7209 sofia/external/0xxxxxxx935 Set rtp dtmf delay to 40
2017-11-29 12:42:00.584644 [NOTICE] sofia_media.c:92 Pre-Answer sofia/external/0xxxxxxx935!
2017-11-29 12:42:00.584644 [DEBUG] switch_channel.c:3474 (sofia/external/0xxxxxxx935) Callstate Change DOWN -> EARLY
2017-11-29 12:42:00.604651 [DEBUG] switch_ivr_originate.c:410 Setting codec string on sofia/internal/1002@10.1.0.11 to PCMA@8000h@20i
2017-11-29 12:42:00.604651 [INFO] switch_ivr_originate.c:3654 Sending early media
2017-11-29 12:42:00.604651 [DEBUG] switch_core_media.c:6878 AUDIO RTP [sofia/internal/1002@10.1.0.11] 10.1.0.11 port 31362 -> 10.1.0.4 port 5008 codec: 9 ms: 20
2017-11-29 12:42:00.604651 [DEBUG] switch_rtp.c:4111 Starting timer [soft] 160 bytes per 20ms
2017-11-29 12:42:00.604651 [DEBUG] switch_core_media.c:7179 sofia/internal/1002@10.1.0.11 Set 2833 dtmf send payload to 101
2017-11-29 12:42:00.604651 [DEBUG] switch_core_media.c:7186 sofia/internal/1002@10.1.0.11 Set 2833 dtmf receive payload to 101
2017-11-29 12:42:00.604651 [DEBUG] switch_core_media.c:7209 sofia/internal/1002@10.1.0.11 Set rtp dtmf delay to 40
2017-11-29 12:42:00.604651 [DEBUG] mod_sofia.c:2364 Ring SDP:
v=0
o=FreeSWITCH 1511924358 1511924359 IN IP4 10.1.0.11
s=FreeSWITCH
c=IN IP4 10.1.0.11
t=0 0
m=audio 31362 RTP/AVP 9 101
a=rtpmap:9 G722/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv

2017-11-29 12:42:00.604651 [NOTICE] mod_sofia.c:2367 Pre-Answer sofia/internal/1002@10.1.0.11!
2017-11-29 12:42:00.604651 [DEBUG] switch_channel.c:3474 (sofia/internal/1002@10.1.0.11) Callstate Change RINGING -> EARLY
2017-11-29 12:42:00.604651 [DEBUG] switch_ivr_originate.c:3705 Originate Resulted in Success: [sofia/external/0xxxxxxx935]
2017-11-29 12:42:00.604651 [DEBUG] sofia.c:7084 Channel sofia/internal/1002@10.1.0.11 entering state [early][183]
2017-11-29 12:42:00.604651 [DEBUG] switch_ivr_bridge.c:1614 (sofia/external/0xxxxxxx935) State Change CS_CONSUME_MEDIA -> CS_EXCHANGE_MEDIA
2017-11-29 12:42:00.604651 [DEBUG] switch_core_state_machine.c:584 (sofia/external/0xxxxxxx935) Running State Change CS_EXCHANGE_MEDIA (Cur 2 Tot 115)
2017-11-29 12:42:00.604651 [DEBUG] switch_core_state_machine.c:653 (sofia/external/0xxxxxxx935) State EXCHANGE_MEDIA
2017-11-29 12:42:00.604651 [DEBUG] mod_sofia.c:631 SOFIA EXCHANGE_MEDIA
2017-11-29 12:42:00.664661 [DEBUG] sofia.c:7084 Channel sofia/external/0xxxxxxx935 entering state [proceeding][183]
2017-11-29 12:42:00.664661 [DEBUG] sofia.c:7094 Remote SDP:
v=0
o=- 3729409 3729410 IN IP4 195.185.37.60
s=-
c=IN IP4 195.185.37.60
t=0 0
m=audio 36064 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=direction:active
a=ptime:20

2017-11-29 12:42:00.664661 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G722:9:8000:20:64000:1]
2017-11-29 12:42:00.664661 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
2017-11-29 12:42:00.664661 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
2017-11-29 12:42:00.664661 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
2017-11-29 12:42:00.664661 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
2017-11-29 12:42:00.664661 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
2017-11-29 12:42:00.664661 [DEBUG] switch_core_media.c:4767 sofia/external/0xxxxxxx935 Set 2833 dtmf send payload to 101 recv payload to 101
2017-11-29 12:42:00.664661 [DEBUG] switch_core_media.c:6861 Audio params are unchanged for sofia/external/0xxxxxxx935.
2017-11-29 12:42:00.704617 [DEBUG] switch_rtp.c:7271 Correct audio ip/port confirmed.
2017-11-29 12:42:00.704617 [NOTICE] switch_core_io.c:1202 Activating write resampler
2017-11-29 12:42:00.744649 [DEBUG] switch_rtp.c:7271 Correct audio ip/port confirmed.
2017-11-29 12:42:00.744649 [NOTICE] switch_core_io.c:1202 Activating write resampler
2017-11-29 12:42:04.684657 [DEBUG] sofia.c:7084 Channel sofia/internal/1002@10.1.0.11 entering state [terminated][487]
2017-11-29 12:42:04.684657 [NOTICE] sofia.c:8273 Hangup sofia/internal/1002@10.1.0.11 [CS_EXECUTE] [ORIGINATOR_CANCEL]
2017-11-29 12:42:04.684657 [DEBUG] switch_ivr_bridge.c:712 sofia/internal/1002@10.1.0.11 ending bridge by request from read function
2017-11-29 12:42:04.684657 [DEBUG] switch_ivr_bridge.c:706 sofia/internal/1002@10.1.0.11 ending bridge by request from write function
2017-11-29 12:42:04.684657 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/internal/1002@10.1.0.11]
2017-11-29 12:42:04.684657 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/external/0xxxxxxx935]
2017-11-29 12:42:04.684657 [NOTICE] switch_ivr_bridge.c:900 Hangup sofia/external/0xxxxxxx935 [CS_EXCHANGE_MEDIA] [ORIGINATOR_CANCEL]
2017-11-29 12:42:04.684657 [DEBUG] switch_core_state_machine.c:653 (sofia/external/0xxxxxxx935) State EXCHANGE_MEDIA going to sleep
2017-11-29 12:42:04.684657 [DEBUG] switch_core_state_machine.c:584 (sofia/external/0xxxxxxx935) Running State Change CS_HANGUP (Cur 2 Tot 115)
2017-11-29 12:42:04.684657 [DEBUG] switch_core_state_machine.c:850 (sofia/external/0xxxxxxx935) Callstate Change EARLY -> HANGUP
2017-11-29 12:42:04.684657 [DEBUG] switch_core_state_machine.c:852 (sofia/external/0xxxxxxx935) State HANGUP
2017-11-29 12:42:04.684657 [DEBUG] mod_sofia.c:432 sofia/external/0xxxxxxx935 Overriding SIP cause 487 with 487 from the other leg
2017-11-29 12:42:04.684657 [DEBUG] mod_sofia.c:438 Channel sofia/external/0xxxxxxx935 hanging up, cause: ORIGINATOR_CANCEL
2017-11-29 12:42:04.684657 [DEBUG] mod_sofia.c:502 Sending CANCEL to sofia/external/0xxxxxxx935
2017-11-29 12:42:04.684657 [DEBUG] switch_ivr_bridge.c:1712 sofia/external/0xxxxxxx935 skip receive message [UNBRIDGE] (channel is hungup already)
2017-11-29 12:42:04.684657 [DEBUG] switch_ivr_bridge.c:1715 sofia/internal/1002@10.1.0.11 skip receive message [UNBRIDGE] (channel is hungup already)
2017-11-29 12:42:04.684657 [DEBUG] switch_core_state_machine.c:60 sofia/external/0xxxxxxx935 Standard HANGUP, cause: ORIGINATOR_CANCEL
2017-11-29 12:42:04.684657 [DEBUG] switch_core_state_machine.c:852 (sofia/external/0xxxxxxx935) State HANGUP going to sleep
2017-11-29 12:42:04.684657 [DEBUG] switch_core_state_machine.c:619 (sofia/external/0xxxxxxx935) State Change CS_HANGUP -> CS_REPORTING
2017-11-29 12:42:04.684657 [DEBUG] switch_core_state_machine.c:584 (sofia/external/0xxxxxxx935) Running State Change CS_REPORTING (Cur 2 Tot 115)
2017-11-29 12:42:04.684657 [DEBUG] switch_core_state_machine.c:938 (sofia/external/0xxxxxxx935) State REPORTING
2017-11-29 12:42:04.684657 [DEBUG] switch_core_state_machine.c:174 sofia/external/0xxxxxxx935 Standard REPORTING, cause: ORIGINATOR_CANCEL
2017-11-29 12:42:04.684657 [DEBUG] switch_core_state_machine.c:938 (sofia/external/0xxxxxxx935) State REPORTING going to sleep
2017-11-29 12:42:04.684657 [DEBUG] switch_core_session.c:2815 sofia/internal/1002@10.1.0.11 skip receive message [APPLICATION_EXEC_COMPLETE] (channel is hungup already)
2017-11-29 12:42:04.684657 [DEBUG] switch_core_state_machine.c:610 (sofia/external/0xxxxxxx935) State Change CS_REPORTING -> CS_DESTROY
2017-11-29 12:42:04.684657 [DEBUG] switch_core_session.c:1665 Session 115 (sofia/external/0xxxxxxx935) Locked, Waiting on external entities
2017-11-29 12:42:04.684657 [NOTICE] switch_core_session.c:1683 Session 115 (sofia/external/0xxxxxxx935) Ended
2017-11-29 12:42:04.684657 [NOTICE] switch_core_session.c:1687 Close Channel sofia/external/0xxxxxxx935 [CS_DESTROY]
2017-11-29 12:42:04.684657 [DEBUG] switch_core_state_machine.c:650 (sofia/internal/1002@10.1.0.11) State EXECUTE going to sleep
2017-11-29 12:42:04.684657 [DEBUG] switch_core_state_machine.c:584 (sofia/internal/1002@10.1.0.11) Running State Change CS_HANGUP (Cur 1 Tot 115)
2017-11-29 12:42:04.684657 [DEBUG] switch_core_state_machine.c:741 (sofia/external/0xxxxxxx935) Running State Change CS_DESTROY (Cur 1 Tot 115)
2017-11-29 12:42:04.684657 [DEBUG] switch_core_state_machine.c:751 (sofia/external/0xxxxxxx935) State DESTROY
2017-11-29 12:42:04.684657 [DEBUG] mod_sofia.c:343 sofia/external/0xxxxxxx935 SOFIA DESTROY
2017-11-29 12:42:04.684657 [DEBUG] switch_core_state_machine.c:181 sofia/external/0xxxxxxx935 Standard DESTROY
2017-11-29 12:42:04.684657 [DEBUG] switch_core_state_machine.c:751 (sofia/external/0xxxxxxx935) State DESTROY going to sleep
2017-11-29 12:42:04.684657 [DEBUG] switch_core_state_machine.c:850 (sofia/internal/1002@10.1.0.11) Callstate Change EARLY -> HANGUP
2017-11-29 12:42:04.684657 [DEBUG] switch_core_state_machine.c:852 (sofia/internal/1002@10.1.0.11) State HANGUP
2017-11-29 12:42:04.684657 [DEBUG] mod_sofia.c:438 Channel sofia/internal/1002@10.1.0.11 hanging up, cause: ORIGINATOR_CANCEL
2017-11-29 12:42:04.684657 [DEBUG] switch_core_state_machine.c:60 sofia/internal/1002@10.1.0.11 Standard HANGUP, cause: ORIGINATOR_CANCEL
2017-11-29 12:42:04.684657 [DEBUG] switch_core_state_machine.c:852 (sofia/internal/1002@10.1.0.11) State HANGUP going to sleep
2017-11-29 12:42:04.684657 [DEBUG] switch_core_state_machine.c:619 (sofia/internal/1002@10.1.0.11) State Change CS_HANGUP -> CS_REPORTING
2017-11-29 12:42:04.684657 [DEBUG] switch_core_state_machine.c:584 (sofia/internal/1002@10.1.0.11) Running State Change CS_REPORTING (Cur 1 Tot 115)
2017-11-29 12:42:04.684657 [DEBUG] switch_core_state_machine.c:938 (sofia/internal/1002@10.1.0.11) State REPORTING
2017-11-29 12:42:04.784638 [DEBUG] switch_core_state_machine.c:174 sofia/internal/1002@10.1.0.11 Standard REPORTING, cause: ORIGINATOR_CANCEL
2017-11-29 12:42:04.784638 [DEBUG] switch_core_state_machine.c:938 (sofia/internal/1002@10.1.0.11) State REPORTING going to sleep
2017-11-29 12:42:04.784638 [DEBUG] switch_core_state_machine.c:610 (sofia/internal/1002@10.1.0.11) State Change CS_REPORTING -> CS_DESTROY
2017-11-29 12:42:04.784638 [DEBUG] switch_core_session.c:1665 Session 114 (sofia/internal/1002@10.1.0.11) Locked, Waiting on external entities
2017-11-29 12:42:04.784638 [NOTICE] switch_core_session.c:1683 Session 114 (sofia/internal/1002@10.1.0.11) Ended
2017-11-29 12:42:04.784638 [NOTICE] switch_core_session.c:1687 Close Channel sofia/internal/1002@10.1.0.11 [CS_DESTROY]
2017-11-29 12:42:04.784638 [DEBUG] switch_core_state_machine.c:741 (sofia/internal/1002@10.1.0.11) Running State Change CS_DESTROY (Cur 0 Tot 115)
2017-11-29 12:42:04.784638 [DEBUG] switch_core_state_machine.c:751 (sofia/internal/1002@10.1.0.11) State DESTROY
2017-11-29 12:42:04.784638 [DEBUG] mod_sofia.c:343 sofia/internal/1002@10.1.0.11 SOFIA DESTROY
2017-11-29 12:42:04.784638 [DEBUG] switch_core_state_machine.c:181 sofia/internal/1002@10.1.0.11 Standard DESTROY
2017-11-29 12:42:04.784638 [DEBUG] switch_core_state_machine.c:751 (sofia/internal/1002@10.1.0.11) State DESTROY going to sleep

FusionPBX-Outgoing.png
 

Caleb

Member
Sep 12, 2017
42
17
8
WA, USA
Dialplan: sofia/internal/1002@10.1.0.11 Regex (PASS) [Easybell_Bjoern.d] destination_number(90xxxxxxx935) =~ /^9(.*)$/ break=on-false
This line in your log is saying the destination number matches the dialplan entry for outbound route called "Easybell_Bjoern.d" ...
Dialplan: sofia/internal/1002@10.1.0.11 Action bridge(sofia/gateway/210c332b-c488-43ba-9a1d-f68c810b7108/0xxxxxxx935)
... which references the gateway with UUID "210c332b-c488-43ba-9a1d-f68c810b7108." The name for that gateway isn't mentioned in the log, but if you used the default outbound route name, it's called Easybell_Bjoern.

Seeing as...
  1. The outbound route pictured in your first screenshot is called "Easybell_Eltern.d" (not the same name as you pictured)
  2. The same route references a gateway called "Easybell_Eltern" (probably not the same name as the gateway you're hoping for)
  3. The log shows it matches on the first outbound route (therefore ignoring any further outbound routes)
I'm going to say your conclusion is correct. So you'd need to change the order of your outbound routes, or change the types of numbers they will match.
 

MrGlasspoole

Member
Nov 11, 2017
31
0
6
47
I have two gateways:
1. Easybell_Bjoern
2. Easybell_Eltern

I also have two outbound routes:
1. Easybell_Bjoern.d
2. Easybell_Eltern.d

Then i have two extensions:
1001
1002

1002 is my parents DECT phone that should use route "Easybell_Eltern.d" and gateway "Easybell_Eltern".
If i would change the order (I don't know where) i guess i just have it reversed?

What do you mean by "change the types of numbers they will match"?
What setting i am missing that 1002 goes out through Easybell_Eltern?
 

Caleb

Member
Sep 12, 2017
42
17
8
WA, USA
Outbound routes have an "order" property (because they're really a dialplan entry, and all dialplan entries, and their dialplan details, have an "order"). The lower the order value, the earlier it gets processed in the list. Any call made by an extension on your system will be processed by the entire dialplan, and each dialplan entry/detail can affect how later entries/details are included (or not) in the processing.

The "types of numbers they will match" is referencing the formatting you specify in the "Dialplan Expression" of an outbound route, which becomes the first dialplan detail (the condition matching "destination_number") when the outbound route is created. This is helpful when you want to perform certain actions based on certain numbers that are being dialed, or you want to support calling only specific number types.

But now that you've added that clarification of the desired functionality, neither of these suggestions will really do the trick! The gateways logically have the same priority (just in different situations), and you want both extensions to be able to dial the same number formats. Check out the thread I started here. It will explain how to get setup with multiple SIP trunks, and route specific extensions through each one. You can just use the parts that apply to your situation.
 
Status
Not open for further replies.