<html><body><span style="font-family:Verdana; color:#000000; font-size:10pt;">I have two different gateways setup on my server.&nbsp; One with FlowRoute (which uses SIP REGISTER) and one with bandwidth.com (which does not).&nbsp; I can send and receive from both gateways, but the dialplan processing seems to be confused.&nbsp; Calls from bandwidth do not respect the "Extension" param in the gateway configuration and have the Destination-Number = the inbound caller ID, whereas calls coming from flowroute do respect the param, and have a Destination-Number of "PrivateConnect".&nbsp; Setting "From-user" and "from-domain" on the bandwidth gateway does not seems to affect anything either, though these may be for outbound calls only.<br><br>One thing I noticed, calls from the FlowRout gateway have a channel of the form of "sofia/external/&lt;some_number&gt;@&lt;some_IP&gt;" where bandwidth.com channels have the form of "sofia/internal/&lt;some_number&gt;@&lt;some_IP&gt;".&nbsp; The "Internal" profile is what's confusing me.&nbsp; as both calls are coming from external gateways (defined in the "sip_profiles/external" directory.<br><br>I also noticed that bandwidth uses "internal" non-routeable IP addresses as part of the SIP URI.&nbsp; I thought might be confusing the system. <br><br>My goal is:<br>0) figure out why the bandwidth gateway is being processed as "internal" (this is more of a security thing)<br>1) have both gateways enter at the same point in the dialplan (this seems to be the purpose of the "Extension" param)<br>2) be able to identify which gateway the call came in on. I was hoping to set a param in the gateway configuration that would be passed through onto the channel, but have not found one.&nbsp; Worst case, I could have each gateway enter at a different extension in the dialplan, however, that doesn't seem to be working if the channel comes in the "internal" profile.<br><br>Thanks for your help.&nbsp; I've provided INFO dumps from both gateways if they help...<br>-pete<br><br>Here is the INFO from a bandwidth.com call:<br>EXECUTE sofia/internal/+1480xxxxxxx@192.168.47.68 info()<br>2009-07-21 21:13:47.479471 [INFO] mod_dptools.c:946 CHANNEL_DATA:<br>Channel-State: [CS_EXECUTE]<br>Channel-State-Number: [4]<br>Channel-Name: [sofia/internal/+1480xxxxxxx@192.168.47.68]<br>Unique-ID: [0da43b5a-7676-11de-aa26-1dfbbe056c65]<br>Call-Direction: [inbound]<br>Presence-Call-Direction: [inbound]<br>Answer-State: [ringing]<br>Channel-Read-Codec-Name: [PCMU]<br>Channel-Read-Codec-Rate: [8000]<br>Channel-Write-Codec-Name: [PCMU]<br>Channel-Write-Codec-Rate: [8000]<br>Caller-Username: [+1480xxxxxxx]<br>Caller-Dialplan: [XML]<br>Caller-Caller-ID-Name: [+1480xxxxxxx]<br>Caller-Caller-ID-Number: [+1480xxxxxxx]<br>Caller-Network-Addr: [216.82.224.202]<br>Caller-Destination-Number: [+14082561963]<br>Caller-Unique-ID: [0da43b5a-7676-11de-aa26-1dfbbe056c65]<br>Caller-Source: [mod_sofia]<br>Caller-Context: [public]<br>Caller-Channel-Name: [sofia/internal/+1480xxxxxxx@192.168.47.68]<br>Caller-Profile-Index: [1]<br>Caller-Profile-Created-Time: [1248236027477846]<br>Caller-Channel-Created-Time: [1248236027477846]<br>Caller-Channel-Answered-Time: [0]<br>Caller-Channel-Progress-Time: [0]<br>Caller-Channel-Progress-Media-Time: [0]<br>Caller-Channel-Hangup-Time: [0]<br>Caller-Channel-Transfer-Time: [0]<br>Caller-Screen-Bit: [true]<br>Caller-Privacy-Hide-Name: [false]<br>Caller-Privacy-Hide-Number: [false]<br>variable_sip_received_ip: [216.82.224.202]<br>variable_sip_received_port: [5060]<br>variable_sip_via_protocol: [udp]<br>variable_sip_authorized: [true]<br>variable_sip_from_user: [+1480xxxxxxx]<br>variable_sip_from_uri: [+1480xxxxxxx@192.168.47.68]<br>variable_sip_from_host: [192.168.47.68]<br>variable_sip_from_user_stripped: [1480xxxxxxx]<br>variable_sip_from_tag: [gK0b629aa9]<br>variable_sofia_profile_name: [internal]<br>variable_sip_req_params: [transport=udp]<br>variable_sip_req_user: [+14082561963]<br>variable_sip_req_port: [5060]<br>variable_sip_req_uri: [+14082561963@70.99.197.36:5060]<br>variable_sip_req_host: [70.99.197.36]<br>variable_sip_to_user: [+14082561963]<br>variable_sip_to_uri: [+14082561963@192.168.4.90]<br>variable_sip_to_host: [192.168.4.90]<br>variable_sip_contact_user: [+1480xxxxxxx]<br>variable_sip_contact_port: [5060]<br>variable_sip_contact_uri: [+1480xxxxxxx@192.168.47.68:5060]<br>variable_sip_contact_host: [192.168.47.68]<br>variable_channel_name: [sofia/internal/+1480xxxxxxx@192.168.47.68]<br>variable_sip_call_id: [1376511423_73037211@192.168.47.68]<br>variable_sip_via_host: [216.82.224.202]<br>variable_max_forwards: [32]<br>variable_presence_id: [+1480xxxxxxx@192.168.47.68]<br>variable_sip_nat_detected: [true]<br>variable_switch_r_sdp: [v=0<br>o=Sonus_UAC 23552 274 IN IP4 192.168.47.68<br>s=SIP Media Capabilities<br>c=IN IP4 67.231.4.98<br>t=0 0<br>m=audio 25748 RTP/AVP 0 18 101<br>a=rtpmap:0 PCMU/8000<br>a=rtpmap:18 G729/8000<br>a=fmtp:18 annexb=no<br>a=rtpmap:101 telephone-event/8000<br>a=fmtp:101 0-15<br>a=maxptime:20<br>]<br>variable_remote_media_ip: [67.231.4.98]<br>variable_remote_media_port: [25748]<br>variable_read_codec: [PCMU]<br>variable_read_rate: [8000]<br>variable_write_codec: [PCMU]<br>variable_write_rate: [8000]<br>variable_endpoint_disposition: [RECEIVED]<br>variable_outside_call: [true]<br>variable_current_application: [info]<br><br>Here is the flowroute INFO:<br>EXECUTE sofia/external/+1480xxxxxxx@66.53.188.187 info()<br>2009-07-21 21:17:49.5616 [INFO] mod_dptools.c:946 CHANNEL_DATA:<br>Channel-State: [CS_EXECUTE]<br>Channel-State-Number: [4]<br>Channel-Name: [sofia/external/+1480xxxxxxx@66.53.188.187]<br>Unique-ID: [9d9a2b5c-7676-11de-aa26-1dfbbe056c65]<br>Call-Direction: [inbound]<br>Presence-Call-Direction: [inbound]<br>Answer-State: [ringing]<br>Channel-Read-Codec-Name: [PCMU]<br>Channel-Read-Codec-Rate: [8000]<br>Channel-Write-Codec-Name: [PCMU]<br>Channel-Write-Codec-Rate: [8000]<br>Caller-Username: [+14802397349]<br>Caller-Dialplan: [XML]<br>Caller-Caller-ID-Name: [+1480xxxxxxx]<br>Caller-Caller-ID-Number: [+1480xxxxxxx]<br>Caller-Network-Addr: [70.167.153.130]<br>Caller-Destination-Number: [PrivateConnect]<br>Caller-Unique-ID: [9d9a2b5c-7676-11de-aa26-1dfbbe056c65]<br>Caller-Source: [mod_sofia]<br>Caller-Context: [public]<br>Caller-RDNIS: [14805538912]<br>Caller-Channel-Name: [sofia/external/+1480xxxxxxx@66.53.188.187]<br>Caller-Profile-Index: [2]<br>Caller-Profile-Created-Time: [1248236269004608]<br>Caller-Channel-Created-Time: [1248236269003604]<br>Caller-Channel-Answered-Time: [0]<br>Caller-Channel-Progress-Time: [0]<br>Caller-Channel-Progress-Media-Time: [0]<br>Caller-Channel-Hangup-Time: [0]<br>Caller-Channel-Transfer-Time: [0]<br>Caller-Screen-Bit: [true]<br>Caller-Privacy-Hide-Name: [false]<br>Caller-Privacy-Hide-Number: [false]<br>variable_sip_received_ip: [70.167.153.130]<br>variable_sip_received_port: [5060]<br>variable_sip_via_protocol: [udp]<br>variable_sip_from_user: [+1480xxxxxxx]<br>variable_sip_from_uri: [+1480xxxxxxx@66.53.188.187]<br>variable_sip_from_host: [66.53.188.187]<br>variable_sip_from_user_stripped: [1480xxxxxxx]<br>variable_sip_from_tag: [1661604]<br>variable_sofia_profile_name: [external]<br>variable_sip_h_P-Asserted-Identity: [+1480xxxxxxx]<br>variable_sip_cid_type: [pid]<br>variable_sip_req_params: [transport=udp]<br>variable_sip_req_user: [14805538912]<br>variable_sip_req_port: [5080]<br>variable_sip_req_uri: [14805538912@70.99.197.36:5080]<br>variable_sip_req_host: [70.99.197.36]<br>variable_sip_to_user: [+14805538912]<br>variable_sip_to_port: [5060]<br>variable_sip_to_uri: [+14805538912@70.167.153.135:5060]<br>variable_sip_to_host: [70.167.153.135]<br>variable_sip_contact_params: [transport=udp]<br>variable_sip_contact_user: [+1480xxxxxxx]<br>variable_sip_contact_port: [5060]<br>variable_sip_contact_uri: [+1480xxxxxxx@66.53.188.187:5060]<br>variable_sip_contact_host: [66.53.188.187]<br>variable_channel_name: [sofia/external/+1480xxxxxxx@66.53.188.187]<br>variable_sip_call_id: [1247507800-6012669@LA4_SIP_01]<br>variable_sip_via_host: [70.167.153.130]<br>variable_switch_r_sdp: [v=0<br>o=Flowroute.com 282181633 1248235361 IN IP4 66.53.189.187<br>s=Flowroute.com<br>c=IN IP4 66.53.189.187<br>t=0 0<br>a=sendrecv<br>m=audio 10292 RTP/AVP 0 18 101<br>a=rtpmap:0 PCMU/8000<br>a=rtpmap:18 G729/8000<br>a=fmtp:18 annexb=no<br>a=rtpmap:101 telephone-event/8000<br>a=fmtp:101 0-15<br>a=ptime:20<br>]<br>variable_remote_media_ip: [66.53.189.187]<br>variable_remote_media_port: [10292]<br>variable_read_codec: [PCMU]<br>variable_read_rate: [8000]<br>variable_write_codec: [PCMU]<br>variable_write_rate: [8000]<br>variable_endpoint_disposition: [RECEIVED]<br>variable_max_forwards: [14]<br>variable_outside_call: [true]<br>variable_current_application: [info]<br><br><br><br></span></body></html>