12-22-2014, 06:25 PM
Hey all
We are using your phones ( T46 / T48 ) in combination with 3CX.
What we need to achieve is a remote name Lookup for incoming calls. Sounds simple right?
I was trying three different ways:
1. Using Action URL
We got a Webserver running which is taking a $_GET parameter with the number and returning an XML MessageText according to your documentation ( Yealink_IP_Phones_XML_Browser_Developer's_Guide_V72_2.pdf ).
The action URL is configured for incoming calls. The request is made successfully, and by a look into the wireshark log we also see that the XML response gets back to phone. But nothing is happen at all.
So my question about this: Are Action URL Calls just broadcasts?
If we set the same script on a button, we get the XML Browser Loaded up and working.
2. Using Action URL in combination with Action URI
Due to the fact that your phones aren't processing the response from the Action URL call by themselves, we extend our webservice and send an Action URI like this:
2.a Incoming Call -> Phone makes AURL -> api.php?callerID=016658454&phoneID=202
2.b Server query's caller name and build XML MessageText package
2.c Server makes AURI to the phone -> Send XML to phone
Now you expect that on the phone you get the XML Text displayed with the caller name. But nope, you get the box as soon as you hung up the phone.
Question here, can you force with an Action URI the phone to display the XML even when the phone is in the state of an incoming call?
3. Using remote XmlPhoneBook
The last thing I tried was to set a remote XmlPhoneBook like server/phonebooks/202.xml
So every phone gets this own phonebook, and we create this one on the fly server side.
3.a Incoming Call -> Phone makes AURL -> api.php?callerID=016658454&phoneID=202
3.b Server stores the caller number & name in a database
3.c Phone looks in the remote phonebook for the number and because the remote XML Phonebook is created dynamically on the fly, I always find the one entry in the XML and that's the one calling me right now.
Here is another problem, the phone isn't looking remote instead the remote XML phonebook is cached locally. So this way isn't working either.
As you see we tried hard and have been quit creative in the way we thought it should be possible.
But there seems to be no way, or are we missing something?
The reason for this is, that we are building a webservice which is connected to different phonebook services.
Greetings and happy X-Mas u all!
We are using your phones ( T46 / T48 ) in combination with 3CX.
What we need to achieve is a remote name Lookup for incoming calls. Sounds simple right?
I was trying three different ways:
1. Using Action URL
We got a Webserver running which is taking a $_GET parameter with the number and returning an XML MessageText according to your documentation ( Yealink_IP_Phones_XML_Browser_Developer's_Guide_V72_2.pdf ).
The action URL is configured for incoming calls. The request is made successfully, and by a look into the wireshark log we also see that the XML response gets back to phone. But nothing is happen at all.
So my question about this: Are Action URL Calls just broadcasts?
If we set the same script on a button, we get the XML Browser Loaded up and working.
2. Using Action URL in combination with Action URI
Due to the fact that your phones aren't processing the response from the Action URL call by themselves, we extend our webservice and send an Action URI like this:
2.a Incoming Call -> Phone makes AURL -> api.php?callerID=016658454&phoneID=202
2.b Server query's caller name and build XML MessageText package
2.c Server makes AURI to the phone -> Send XML to phone
Now you expect that on the phone you get the XML Text displayed with the caller name. But nope, you get the box as soon as you hung up the phone.
Question here, can you force with an Action URI the phone to display the XML even when the phone is in the state of an incoming call?
3. Using remote XmlPhoneBook
The last thing I tried was to set a remote XmlPhoneBook like server/phonebooks/202.xml
So every phone gets this own phonebook, and we create this one on the fly server side.
3.a Incoming Call -> Phone makes AURL -> api.php?callerID=016658454&phoneID=202
3.b Server stores the caller number & name in a database
3.c Phone looks in the remote phonebook for the number and because the remote XML Phonebook is created dynamically on the fly, I always find the one entry in the XML and that's the one calling me right now.
Here is another problem, the phone isn't looking remote instead the remote XML phonebook is cached locally. So this way isn't working either.
As you see we tried hard and have been quit creative in the way we thought it should be possible.
But there seems to be no way, or are we missing something?
The reason for this is, that we are building a webservice which is connected to different phonebook services.
Greetings and happy X-Mas u all!