I updated my script using your latest version. I also switched to an IPComms DID. Got that verified with Google and pointed it to SS.
Now IPComms seems to reliably send the correct number. When I call my number from my mobile or my wife called it from work, I get the proper number to display, but it still displays unknown name. I just received a call from Chicago and it displayed the number and Chicago, IL. We're making progress. But the TNAME doesn't work. I'm curious why my cell and her work number came up unknown?
Here is my log from SS when I call from my cell phone.
DialPlan 22:24:23:617 sip1(20128): Using dialplan Working Simple Dial Plan 3-2-14 for In call to sip:XXXXX@sipsorcery.com.
NewCall 22:24:23:648 sip1(20128): Executing script dial plan for call to XXXXX.
DialPlan 22:24:23:679 sip1(20128): ** Call from "GOLDEN VLY MN" <sip:7632223441@66.54.140.46>;tag=as60d33d64 to XXXXX **
DialPlan 22:24:23:679 sip1(20128): CallerID: 7630000000
DialPlan 22:24:23:695 sip1(20128): WebGet attempting to read from
https://api.opencnam.com/v2/phone/7630000000?format=text.DialPlan 22:24:23:976 sip1(20128): Error in WebGet for
https://api.opencnam.com/v2/phone/7630000000?format=text.DialPlan 22:24:23:976 sip1(20128): CallerName: Unknown
DialPlan 22:24:23:976 sip1(20128): CName: Unknown
DialPlan 22:24:23:976 sip1(20128): CallerName: Unknown
DialPlan 22:24:23:976 sip1(20128): Commencing Dial with: tyeske@local[fu=7630000000,fd=Unknown].
DialPlan 22:24:23:992 sip1(20128): Call leg is for local domain looking up bindings for
XXXXX@sipsorcery.com for call leg XXXXX@local.
DialPlan 22:24:23:992 sip1(20128): 1 found for
XXXXX@sipsorcery.com.
DialPlan 22:24:23:992 sip1(20128): ForkCall commencing call leg to sip:XXXXX@97.116.165.126:5061.
DialPlan 22:24:23:992 sip1(20128): SIPClientUserAgent Call using alternate outbound proxy of udp:67.222.131.147:5060.
DialPlan 22:24:23:992 sip1(20128): Switching to sip:XXXXX@97.116.165.126:5061 via udp:67.222.131.147:5060.
DialPlan 22:24:23:992 sip1(20128): SDP on UAC call had public IP not mangled, RTP socket 66.54.140.46:16096.
DialPlan 22:24:24:085 sip1(20128): Information response 100 Trying for sip:XXXXX@97.116.165.126:5061.
DialPlan 22:24:24:101 sip1(20128): Information response 180 Ringing for sip:XXXXX@97.116.165.126:5061.
DialPlan 22:24:24:101 sip1(20128): UAS call progressing with Ringing.
DialPlan 22:24:28:773 sip1(20128): Client call cancelled halting dial plan.
DialPlan 22:24:28:773 sip1(20128): Dialplan call was terminated by client side due to ClientCancelled.
DialPlan 22:24:28:773 sip1(20128): Cancelling all call legs for ForkCall app.
DialPlan 22:24:28:773 sip1(20128): Cancelling forwarded call leg, sending CANCEL to sip:XXXXX@97.116.165.126:5061.
DialPlan 22:24:28:804 sip1(20128): Dial command was halted by cancellation of client call after 4.81s.
DialPlan 22:24:28:804 sip1(20128): Dialplan cleanup for XXXXX.
DialPlan 22:24:28:867 sip1(20128): Response 487 Request Terminated for sip:XXXXX@97.116.165.126:5061.
DialPlan 22:24:29:226 sip1(20128): Dial plan execution completed with normal clearing.