Results 1 to 2 of 2

Thread: Command line caller

  1. #1
    Join Date
    Nov 2011
    Posts
    1

    question Command line caller

    Hello everyone,

    I am a PhD student in Stockholm, studying VoIP technology. I am in the middle of writing my dissertation, about command line calling.
    As I'm doing my researches, I've already found some very interesting research material, such as this page
    It would be great to find someone to discuss this program, or maybe a whole group, because it would really help me with moving on.
    Any advice is welcome!
    Thx

    gemma

  2. #2
    Join Date
    Dec 2007
    Posts
    2,291

    Re: Command line caller

    Check for an example the below code to initiate a Skype/Gtalk call to a contact via a command/script which is the same used in Voip Technology:

    Code:
    #!/usr/bin/python
     
    import dbus
    import sys
     
    # Get the target phone number (or SIP address) from the command line
    TARGET = sys.argv[1];
     
    # Configure the telepathy path to the SofiaSIP account that we wish to use.
    # Use "mc-tool list" (from the libmissioncontrol-utils package) to see your accounts.
    SIP_ACCOUNT = 'sofiasip/sip/_31234567_40sipgate_2eco_2euk0'
     
    # This gets us a connnection to the session bus
    bus = dbus.SessionBus()
     
    # This sets up a path to the SIP account within telepathy.
    PATH = '/org/freedesktop/Telepathy/Account/'
    PATH += SIP_ACCOUNT
     
    # This sets up a proxy object as a "handle" to the AccountManager of our target account
    account = bus.get_object('org.freedesktop.Telepathy.AccountManager', PATH)
     
    # This launches the actual SIP call with a method call to EnsureChannel on that object
    account.EnsureChannel( \
            dbus.Dictionary({
                    dbus.String(u'org.freedesktop.Telepathy.Channel.TargetHandleType'): dbus.UInt32(1),
                    dbus.String(u'org.freedesktop.Telepathy.Channel.ChannelType'): dbus.String(u'org.freedesktop.Telepathy.Channel.Type.StreamedMedia'),
                    dbus.String(u'org.freedesktop.Telepathy.Channel.TargetID'): dbus.String(TARGET),
            }, signature='sv'),
            dbus.UInt64(0),
            dbus.String(''),
            dbus_interface='com.nokia.Account.Interface.ChannelRequests')
     
    sys.exit(0)

Similar Threads

  1. How to build a C# Command Line Caller?
    By CesarG in forum Tips & Tweaks
    Replies: 1
    Last Post: 30-04-2012, 11:19 PM
  2. xcopy command line together with wmplayer command line
    By Aislinn in forum Operating Systems
    Replies: 5
    Last Post: 31-03-2010, 12:13 PM
  3. Replies: 3
    Last Post: 03-09-2009, 05:41 PM
  4. Command Line Ren (Rename) command broken?
    By SixSigmaGuy in forum Vista Help
    Replies: 2
    Last Post: 18-05-2008, 03:30 PM
  5. Replies: 1
    Last Post: 18-05-2007, 01:24 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,099,357.16773 seconds with 16 queries