Sending IM/SMS from the command line

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



pureroot <pureroot at gmail.com> writes:

> i guess y to use sip_setting command for manage account 
>
> sip_settings --account add sip_user at sip_domain sip_pass
>
> sip_message --account sip_user at sip_domain

OK, done that, but am afraid that without interfacing to pjsua's config,
it doesn't work, since I get:

sip_settings --account add xxxxx at xxxxx xxxxx
/7/2.6/16/msrplib/digest.py:3: DeprecationWarning: the md5 module is deprecated; use hashlib instead
  import md5
/7/2.6/12/eventlet-0.8.16-py2.6.egg/eventlet/processes.py:22: DeprecationWarning: The popen2 module is deprecated.  Use the subprocess module.
  import popen2
Account added
shiroikuma at ubuntu:~$ sip_message --account xxxxx at xxxxxx
/7/2.6/16/msrplib/digest.py:3: DeprecationWarning: the md5 module is deprecated; use hashlib instead
  import md5
/7/2.6/12/eventlet-0.8.16-py2.6.egg/eventlet/processes.py:22: DeprecationWarning: The popen2 module is deprecated.  Use the subprocess module.
  import popen2
Using account xxxxxx at xxxxxxx
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
Traceback (most recent call last):
  File "/0/32/sip_message", line 324, in <module>
    application.start(target, options)
  File "/0/32/sip_message", line 127, in start
    SIPApplication.start(self)
  File "/7/2.6/17/sipsimple/api.py", line 100, in start
    self.voice_conference_bridge = ConferenceBridge(input_device, output_device, settings.audio.sample_rate, settings.audio.tail_length)
  File "core.sound.pxi", line 137, in sipsimple.core.ConferenceBridge.__init__ (sipsimple/core.c:10319)
  File "core.sound.pxi", line 281, in sipsimple.core.ConferenceBridge._start_sound_device (sipsimple/core.c:12075)
sipsimple.core.PJSIPError: Could not create sound device: Invalid sample rate

Which means it's trying to open the wrong sound audio device, etc.,
which was the problem before I figured pjsua configs and stored them in
its config file to use them.

So how do I utilize the particular config necessary for me?
-- 
???
ShiroiKuma.org



[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux