Hi > My goal is to be able to send SIP instant messages without needing a call to > be up. I'm trying to have the > sflphone be able to pass sip messages so I can communicate with a self-built > SIP message passing system (such as > logging in/out and passing user information based on SIP logins).
First of all, SFLphone is not currently designed to support instant messages outside a sip dialog, which is refered as pager mode "instant messaging" in RFCs. For the momment, you must estabilsh a call in order to send instant messaging. > I've been trying to track down how to add my own signal on the dbus using the > sflphone code. > I've gotten as far as understanding that I need to add a definition to > callmanager-glue.h You need to define your new dbus method in callmanager-introspect.xml and then implement it in callmanager.cpp. Once there you will need to add code in SipVoipLink.cpp and access it through ManagerImpl.cpp in order to enable stateless Sip transactions for your IM. You can fild couple of examples in SipVoipLink.cpp. > I'm using the "instantMessage" or "im" source code as my spring board but I'm > stymied completely as to how to > interact with the dbus code. To test, you can use dbus-send command like this: dbus-send --type="method_call" --dest="org.sflphone.SFLphone" "/org/sflphone/SFLphone/CallManager" "org.sflphone.SFLphone.CallManager.YourMethod" string:"Arg1" string:"Arg2" string:"Arg3" Regards, Alexandre ----- Original Message ----- From: "Per-Olof Jensen" <[email protected]> To: [email protected] Sent: Thursday, December 23, 2010 5:57:58 PM Subject: [SFLphone] DBus and more DBus I've been trying to track down how to add my own signal on the dbus using the sflphone code. I've gotten as far as understanding that I need to add a definition to callmanager-glue.h My goal is to be able to send SIP instant messages without needing a call to be up. I'm trying to have the sflphone be able to pass sip messages so I can communicate with a self-built SIP message passing system (such as logging in/out and passing user information based on SIP logins). I'm using the "instantMessage" or "im" source code as my spring board but I'm stymied completely as to how to interact with the dbus code. If anyone has a site or a tip that could better explain how I can add a signal or modify one to suit my needs you'd have my eternal good will in the Christmas spirit. Thanks in advance to anyone who can spare some help! -- Per Jensen Bolder Thinking - Software Developer _______________________________________________ SFLphone mailing list [email protected] http://lists.savoirfairelinux.net/mailman/listinfo/sflphone _______________________________________________ SFLphone mailing list [email protected] http://lists.savoirfairelinux.net/mailman/listinfo/sflphone
