Google Call Back Clarification

<< < (4/6) > >>

azrobert:
This is a strange one.
It looks like opencnam fails when it tries to process CID 2066820185.
Because of this failure variable @OpenCName was set to null.
Then the Split command failed because of the null value.

I put CID 2066820185 in table TNAME, bypassing opencnam.

I set variable @OpenCName to "Unknown" before the WebGet.
This will prevent the Split command from failing if opencnam can't process another CID.
Find comment #  CID = "xxxxxxxxxx"
To test opencname un-comment it and change the x's to a real number.

Edit:
I also changed the WeGet from:
@OpenCName ||= sys.WebGet("https://api.opencnam.com/v2/phone/#{cid}?format=text",4)

To:
@OpenCName = sys.WebGet("https://api.opencnam.com/v2/phone/#{cid}?format=text",4)

The former will only work if @OpenCName is null.

azrobert:
Check the WebGet I made another change.

tyeske:
We're making some progress. I used your updated dial plan. Now I can make and receive calls. The incoming calls are still unknown unless I put them in TNAME. If I uncomment the CID = , I get whatever number I put in the "XXXXXXX". If that happens to be in TNAME, I get the name too.

I then tried your updated Webget and it broke again. I could no longer receive calls.

Still getting the 206 number though. It seems that Ipkall doesn't always send the correct number. It seems to be very intermittent. Does that make sense?

azrobert:
Which version of WebGet works and
which version doesn't?

tyeske:
This one works. I saved it from your code before you changed it. It at least allows me to receive calls. The other one won't allow me to receive calls.

@OpenCName =~ sys.WebGet("https://api.opencnam.com/v2/phone/#{cid}?format=text",4)

Navigation

[0] Message Index

[#] Next page

[*] Previous page