SRV records (for jabber) I make a request from api and always get an answer Bool(false). I draw response at var_dump(). What could be the problem? (Other method worked is normal) and where write this url _xmpp-server._tcp.example.tel? set_time_limit(0); ignore_user_abort(true); include('Telhosting_Client.php'); $config = array(); $config['login'] = '***'; $config['password'] = '***'; $config['wsdl'] = './clinet.wsdl'; $domain = 'example.tel'; $client = new Telhosting_client($config); $link1 = array ( 'priority' => 100, 'ttl' => 3600, 'weight' => 10, 'port' => 7030, 'target' => 'example.tel' ); var_dump($client->store_record('example.tel ', 'srv', $link)); ?> Saturate an example of a correct query to create SRV records for jabber. |
What is the response from var_dump ? Mark |
Besides, doesn't your store_record need to look something like this ... $record = array( 'order' => $order, 'preference' => $pref, 'profiles' => '_all_', 'services' => 'E2U+x-im:xmpp+x-lbl:', 'longLabel' => "$label", 'flags' => 'u', 'regexp' => "!^.*$!xmpp:$value!" ); $e=$this->client->store_record($this->tel, 'naptr', $record, FALSE); if (!$e) echo $this->$client->last_soap_error; if ($e) echo " INSERTED-NAPTR-ID=".$id=$e->id." "; return ($e); } |
Response : Quote:
|
Quote:
Then display $client->last_soap_error;[/size] |
Quote:
This command adds a SRV? http://telnic.org/forum/showpost.php?p=367&postcount=26[/size] |
I dont know anything about jabber/srv but since the service is defined for use with Soap calls and store_record was indicated by Nadya, then that is what you should try. Mark |
poyarkov - yes, you use the store record command to set the SRV, The specific structure can be seen at http://dev.telnic.org/api/client-soap/storerecord.html and in the API reference document - http://dev.telnic.org/api/client-soap/ClientSoapAPI.pdf. Rather than being a naptr, the record is an SRV. If you continue to have issues, it is possible that your provider has not activated SRV updates in their partition. If you contact us directly with your .tel name and/or provider, we can look further into that for you. Please also note that there is a Developers forum, more suited to technical queries at http://dev.telnic.org/trac/discussion. Although not exactly on the same topic, someone on that forum has put a link to setting up SRV records for use with Google Apps -http://dev.telnic.org/trac/discussion/6/221 |
Thanks for the link, I was able to record through soapUI. https://sites.google.com/a/haussmann...telnic-domain/ |
@poyarkov Very detailed writeup. Can you explain why and how this is used with .tel? Mark |