Knocking my head against this. I am trying to route calls to registered endpoints. But it is not working.
2017-09-20 23:31:49.270606 [DEBUG] sofia.c:7094 Remote SDP:
v=0
o=FreeSWITCH 1505928870 1505928871 IN IP4 185.8.92.3
s=FreeSWITCH
c=IN IP4 185.8.92.3
t=0 0
m=audio 17854 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=silenceSupp:off - - - -
a=ptime:20
2017-09-20 23:31:49.270606 [ERR] mod_xml_radius.c:933 Result of true match: 185.35.229.6 == ^185\.35\.229\.30
2017-09-20 23:31:49.270606 [ERR] mod_xml_radius.c:930 Didn't match: inbound == ^outbound
2017-09-20 23:31:49.270606 [INFO] mod_dialplan_xml.c:637 Processing 07966677711 <07966677711>->443307881011 in context public
2017-09-20 23:31:49.270606 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [RFC2822_DATE]=[Wed, 20 Sep 2017 23:31:49 +0100]
2017-09-20 23:31:49.270606 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) (REMOTE ONLY) [h323-call-origin]=[originate]
2017-09-20 23:31:49.270606 [DEBUG] mod_rad_auth.c:301 allocate initial structure.
2017-09-20 23:31:49.270606 [DEBUG] mod_rad_auth.c:313 initialzed configuration.
2017-09-20 23:31:49.270606 [DEBUG] mod_rad_auth.c:318 set authserver := 185.35.229.30:1812:h4nn4h.
2017-09-20 23:31:49.270606 [DEBUG] mod_rad_auth.c:318 set dictionary := /usr/local/freeswitch/conf/dictionaries/dictionary.
2017-09-20 23:31:49.270606 [DEBUG] mod_rad_auth.c:318 set seqfile := /var/run/radius.seq.
2017-09-20 23:31:49.270606 [DEBUG] mod_rad_auth.c:318 set mapfile := /usr/local/etc/radiusclient/port-id-map.
2017-09-20 23:31:49.270606 [DEBUG] mod_rad_auth.c:318 set default_realm := .
2017-09-20 23:31:49.270606 [DEBUG] mod_rad_auth.c:318 set radius_timeout := 3.
2017-09-20 23:31:49.270606 [DEBUG] mod_rad_auth.c:318 set radius_retries := 2.
2017-09-20 23:31:49.270606 [DEBUG] mod_rad_auth.c:318 set radius_deadtime := 0.
2017-09-20 23:31:49.270606 [DEBUG] mod_rad_auth.c:318 set bindaddr := 185.35.229.6.
2017-09-20 23:31:49.270606 [DEBUG] mod_rad_auth.c:371 ... radius: User-Name: 07966677711
2017-09-20 23:31:49.270606 [DEBUG] mod_rad_auth.c:380 ... radius: User-Password:
2017-09-20 23:31:49.270606 [DEBUG] mod_rad_auth.c:391 ... radius: Called-station-Id is empty, ignoring...
2017-09-20 23:31:49.270606 [DEBUG] mod_rad_auth.c:413 Handle attribute: h323-conf-id
2017-09-20 23:31:49.270606 [DEBUG] mod_rad_auth.c:439 ... dictionary data: id:24, vendor id:9, attr type:0, attr name:h323-conf-id (589848)
2017-09-20 23:31:49.270606 [DEBUG] mod_rad_auth.c:444 ... radius: key:h323-conf-id, value:CALLID (h323-conf-id=a923b79f-e080-416c-934c-af13b570f813) as string
2017-09-20 23:31:49.270606 [DEBUG] mod_rad_auth.c:413 Handle attribute: Cisco-AVPair
2017-09-20 23:31:49.270606 [DEBUG] mod_rad_auth.c:439 ... dictionary data: id:1, vendor id:9, attr type:0, attr name:Cisco-AVPair (589825)
2017-09-20 23:31:49.270606 [DEBUG] mod_rad_auth.c:444 ... radius: key:Cisco-AVPair, value:SRCGWIP (src-gw-ip=185.8.92.3) as string
2017-09-20 23:31:49.270606 [DEBUG] mod_rad_auth.c:413 Handle attribute: Cisco-AVPair
2017-09-20 23:31:49.270606 [ERR] mod_rad_auth.c:178 Undefined channel variable: SRCGWNAME.
2017-09-20 23:31:49.270606 [DEBUG] mod_rad_auth.c:439 ... dictionary data: id:1, vendor id:9, attr type:0, attr name:Cisco-AVPair (589825)
2017-09-20 23:31:49.270606 [DEBUG] mod_rad_auth.c:444 ... radius: key:Cisco-AVPair, value:SRCGWNAME () as string
2017-09-20 23:31:49.270606 [DEBUG] mod_rad_auth.c:413 Handle attribute: Cisco-AVPair
2017-09-20 23:31:49.270606 [DEBUG] mod_rad_auth.c:439 ... dictionary data: id:1, vendor id:9, attr type:0, attr name:Cisco-AVPair (589825)
2017-09-20 23:31:49.270606 [DEBUG] mod_rad_auth.c:444 ... radius: key:Cisco-AVPair, value:request-type=number (request-type=number) as string
2017-09-20 23:31:49.270606 [DEBUG] mod_rad_auth.c:413 Handle attribute: Calling-Station-Id
2017-09-20 23:31:49.270606 [DEBUG] mod_rad_auth.c:439 ... dictionary data: id:31, vendor id:0, attr type:0, attr name:Calling-Station-Id (31)
2017-09-20 23:31:49.270606 [DEBUG] mod_rad_auth.c:444 ... radius: key:Calling-Station-Id, value:CALLINGNUMBER (07966677711) as string
2017-09-20 23:31:49.270606 [DEBUG] mod_rad_auth.c:413 Handle attribute: Called-Station-Id
2017-09-20 23:31:49.270606 [DEBUG] mod_rad_auth.c:439 ... dictionary data: id:30, vendor id:0, attr type:0, attr name:Called-Station-Id (30)
2017-09-20 23:31:49.270606 [DEBUG] mod_rad_auth.c:444 ... radius: key:Called-Station-Id, value:CALLEDNUMBER (443307881011) as string
2017-09-20 23:31:49.270606 [DEBUG] mod_rad_auth.c:491 sending radius packet ...
2017-09-20 23:31:49.290658 [DEBUG] mod_rad_auth.c:497 RADIUS Authentication OK
2017-09-20 23:31:49.290658 [DEBUG] mod_rad_auth.c:519 Handle attribute: CREDIT_TIME
2017-09-20 23:31:49.290658 [DEBUG] mod_rad_auth.c:522 attribute (CREDIT_TIME) found in radius packet
2017-09-20 23:31:49.290658 [DEBUG] mod_rad_auth.c:523 set variable credit_time := 7199
2017-09-20 23:31:49.290658 [DEBUG] mod_rad_auth.c:519 Handle attribute: CISCO_SERVICE_INFO
2017-09-20 23:31:49.290658 [DEBUG] mod_rad_auth.c:522 attribute (CISCO_SERVICE_INFO) found in radius packet
2017-09-20 23:31:49.290658 [DEBUG] mod_rad_auth.c:523 set variable cisco_service_info := 200
2017-09-20 23:31:49.290658 [DEBUG] mod_rad_auth.c:519 Handle attribute: RADIUS_RETURN_CODE
2017-09-20 23:31:49.290658 [DEBUG] mod_rad_auth.c:522 attribute (RADIUS_RETURN_CODE) found in radius packet
2017-09-20 23:31:49.290658 [DEBUG] mod_rad_auth.c:523 set variable return_code := 16
2017-09-20 23:31:49.290658 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [credit_time]=[7199]
2017-09-20 23:31:49.290658 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [cisco_service_info]=[200]
2017-09-20 23:31:49.290658 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [sip_redirect_context]=[redirect]
2017-09-20 23:31:49.290658 [ERR] mod_xml_radius.c:933 Result of true match: 185.35.229.6 == ^185\.35\.229\.30
2017-09-20 23:31:49.290658 [ERR] mod_xml_radius.c:930 Didn't match: inbound == ^outbound
2017-09-20 23:31:49.290658 [INFO] mod_dialplan_xml.c:637 Processing 07966677711 <07966677711>->443307881011 in context ipauth
2017-09-20 23:31:49.290658 [DEBUG] switch_ivr_originate.c:2142 Parsing global variables
Local SDP:
v=0
o=FreeSWITCH 1505929783 1505929784 IN IP4 185.35.229.6
s=FreeSWITCH
c=IN IP4 185.35.229.6
t=0 0
m=audio 16926 RTP/AVP 8 101 13
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=rtpmap:13 CN/8000
a=ptime:20
a=sendrecv
2017-09-20 23:31:49.290658 [ERR] mod_xml_radius.c:930 Didn't match: 185.35.229.30:5060 == ^185\.35\.229\.30
2017-09-20 23:31:49.350696 [DEBUG] sofia.c:6540 Redirect: Transfering to joehouse XML redirect
2017-09-20 23:31:49.350696 [DEBUG] sofia.c:1453 Channel is already hungup.
2017-09-20 23:31:49.350696 [DEBUG] sofia.c:1453 Channel is already hungup.
2017-09-20 23:31:49.350696 [ERR] mod_xml_radius.c:930 Didn't match: 185.35.229.30:5060 == ^185\.35\.229\.30
2017-09-20 23:31:49.350696 [DEBUG] switch_ivr_originate.c:3837 Originate Cancelled by originator termination Cause: 487 [ORIGINATOR_CANCEL]
2017-09-20 23:31:49.350696 [INFO] mod_dptools.c:3436 Originate Failed. Cause: ORIGINATOR_CANCEL
2017-09-20 23:31:49.350696 [ERR] mod_xml_radius.c:933 Result of true match: 185.35.229.6 == ^185\.35\.229\.30
2017-09-20 23:31:49.350696 [ERR] mod_xml_radius.c:930 Didn't match: inbound == ^outbound
2017-09-20 23:31:49.350696 [INFO] mod_dialplan_xml.c:637 Processing 07966677711 <07966677711>->joehouse in context redirect
2017-09-20 23:31:49.350696 [ALERT] mod_dptools.c:1742 Local User
2017-09-20 23:31:49.350696 [ALERT] mod_dptools.c:1742 joehouse
2017-09-20 23:31:49.350696 [DEBUG] switch_ivr_originate.c:2142 Parsing global variables
2017-09-20 23:31:49.350696 [NOTICE] switch_ivr_originate.c:2851 Cannot create outgoing channel of type [user] cause: [SUBSCRIBER_ABSENT]
2017-09-20 23:31:49.350696 [DEBUG] switch_ivr_originate.c:3848 Originate Resulted in Error Cause: 20 [SUBSCRIBER_ABSENT]
2017-09-20 23:31:49.350696 [INFO] mod_dptools.c:3436 Originate Failed. Cause: SUBSCRIBER_ABSENT
2017-09-20 23:31:49.350696 [DEBUG] mod_sofia.c:577 Responding to INVITE with: 480
2017-09-20 23:31:49.350696 [ERR] mod_xml_radius.c:933 Result of true match: 185.35.229.6 == ^185\.35\.229\.30
2017-09-20 23:31:49.350696 [ERR] mod_xml_radius.c:930 Didn't match: inbound == ^outbound