Hello, I try to develop a VOIP-Client that should work with sipgate.de. Doing Calls wasn’t the problem, because I found some good examples. But now I got a real problem…. Sipgate.de supports BLF with SUBSCRIBE/NOTIFY. But I cannot make it work. My SNOM – Phone (D765) is working fine with it. I tried to setup the BLF with the following code: VOIPBuddy buddy; pj::BuddyConfig cfg; cfg.uri = QString("<sip:" + number + "@sipgate.de>").toStdString(); cfg.subscribe = true; try { buddy.create( (pj::Account&)*this, cfg ); buddy.subscribePresence(true); } catch(pj::Error& err) { qDebug() << "Error: Buddy Add/Create" << err.reason.data(); } I think the Problem is in the SIP-Messages. Please see the difference between SNOM and PJSIP: SNOM: ======= SUBSCRIBE sip:35@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx:5060 SIP/2.0 PJSIP: ====== SUBSCRIBE sip:76@xxxxxxxxxx SIP/2.0 Via: SIP/2.0/UDP 95.223.131.132:5060;rport;branch=z9hG4bKPj66af338e574b484fbdb1b40a83510f44 Max-Forwards: 70 From: sip:username@xxxxxxxxxx;tag=1188f22c5b7947a88ece2f0dd4bfa5af To: <sip:76@xxxxxxxxxx> Contact: <sip:username@95.223.131.132:5060;ob> Call-ID: 067deca142cb47a78asdasd0456c46777748d9 CSeq: 6183 SUBSCRIBE Event: presence Expires: 0 Supported: replaces, 100rel, timer, norefersub Accept: application/pidf+xml, application/xpidf+xml Allow-Events: presence, message-summary, refer Content-Length: 0 I hope you can help me! Kind regards Carsten
|
_______________________________________________ Visit our blog: http://blog.pjsip.org pjsip mailing list pjsip@xxxxxxxxxxxxxxx http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org