Hello, <br><br> in my test code that copy from
TelepathyQt4\example, i want request connection use some sip
parameters, but i got some error "org.freedesktop.Telepathy.<div id=":3r" class="ii gt">Errors.InvalidArgument and invalid SIP URI", and on other side, i got connection successful if i used other function <span style="color: rgb(255, 0, 0);">dbus_init()</span>
with same sip parameters that write by myself. i don't know why it's
happen if i use TelepathyQt4 lib? Could anyone give me some
suggestion? thanks very much! attachment is my code.<br>
<br><br>following is error output:<br>tom@tom-desktop:~/Templates/qt_demo/qt4cb$ ./qt4cb <br>CallHandler::onCMReady Entry <br>"account" : QVariant(QString, "Local.openser") <br>"auth-user" : QVariant(QString, "12345") <br>
"discover-binding" : QVariant(bool, true) <br>"discover-stun" : QVariant(bool, true) <br>"extra-auth-password" : QVariant(QString, "") <br>"extra-auth-user" : QVariant(QString, "") <br>
"keepalive-interval" : QVariant(int, 3600) <br>"keepalive-mechanism" : QVariant(QString, "") <br>"local-ip-address" : QVariant(QString, "") <br>"local-port" : QVariant(uint, 0) <br>
"loose-routing" : QVariant(bool, false) <br>"password" : QVariant(QString, "") <br>"port" : QVariant(uint, 5060) <br>"proxy-host" : QVariant(QString, "192.168.1.103") <br>
"registrar" : QVariant(QString, "192.168.1.103") <br>"stun-port" : QVariant(uint, 3478) <br>"stun-server" : QVariant(QString, "") <br>"transport" : QVariant(QString, "auto") <br>
CallHandler::onCMReady Exit <br>CallHandler::onConnectionCreated Entry <br>CallHandler::onConnectionCreated Exit <br>Telepathy-Qt4 (version 0.1.11) WARNING: New status was the same as the old status! Ignoring redundant StatusChanged <br>
CallHandler::onConnectoinConnected Entry <br>Connection can't connected. <br><span style="color: rgb(255, 0, 0);">"error name:org.freedesktop.Telepathy.Errors.InvalidArgument|message:invalid SIP URI" </span><br>
Telepathy-Qt4 (version 0.1.11) WARNING: GetInterfaces() failed with "org.freedesktop.DBus.Error.UnknownMethod":"Method "GetInterfaces" with signature "" on interface "org.freedesktop.Telepathy.Connection" doesn't exist<br>
" - assuming no new interfaces<br>Telepathy-Qt4 (version 0.1.11) WARNING: Tp::PendingOperation(0x9651ce8) still pending when it was deleted - finished will never be emitted <br>tom@tom-desktop:~/Templates/qt_demo/qt4cb$ <br>
<br>******************************************************************<br>following is right output:<br>tom@tom-desktop:~/Templates/qt_demo/qt4cb$ ./qt4cb <br>dbus init in <br>reply count = 1 <br>protocol = "sip" <br>
parameters is valid <br>parameters count = 18 <br>"account" : QVariant(QString, "Local.openser") <br>"auth-user" : QVariant(QString, "12345") <br>"discover-binding" : QVariant(bool, true) <br>
"discover-stun" : QVariant(bool, true) <br>"extra-auth-password" : QVariant(QString, "") <br>"extra-auth-user" : QVariant(QString, "") <br>"keepalive-interval" : QVariant(int, 3600) <br>
"keepalive-mechanism" : QVariant(QString, "") <br>"local-ip-address" : QVariant(QString, "") <br>"local-port" : QVariant(uint, 0) <br>"loose-routing" : QVariant(bool, false) <br>
"password" : QVariant(QString, "") <br>"port" : QVariant(uint, 5060) <br>"proxy-host" : QVariant(QString, "192.168.1.103") <br>"registrar" : QVariant(QString, "192.168.1.103") <br>
"stun-port" : QVariant(uint, 3478) <br>"stun-server" : QVariant(QString, "") <br>"transport" : QVariant(QString, "auto") <br>service name: "org.freedesktop.Telepathy.Connection.sofiasip.sip.Local_2eopenser" obj path: "/org/freedesktop/Telepathy/Connection/sofiasip/sip/Local_2eopenser" <br>
dbus init out <br>tom@tom-desktop:~/Templates/qt_demo/qt4cb$ <br><br>
<br>Br<br>Tom</div>