Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 02 Oct 2014, 05:15
All times are UTC - 4
 Forum index » Advanced Topics » Cutting edge
VOIP
Moderators: Flash, Ian, JohnMurga
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 12 Posts_count   Goto page: 1, 2, 3, ..., 10, 11, 12 Next
Author Message
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15117
Location: Paradox Realm

PostPosted: Sat 14 Jun 2008, 22:08    Post_subject:  VOIP
Sub_title: pjsip
 



Latest version
http://tmxxine.com/sip/psip-0.9.11.pet

--------- links - old info

Puppy Sip 0.9.3
http://tmxxine.com/sip/ps9.3.tar.gz

create the directory puppysip6 in /root
and run ps7

New for this version
New improved and smaller pjsua base from Benny
icons from Smokey



Now updated to include Smokey01 aka Grants
config file with extra SIP numbers . .
and CEL's enhancements.
program recompiled by HairyWill
quality enhanced and details retained
install and run from /root

http://www.opensourcesociety.org/2008/01/20/pjsip-command-line-voip-client-for-linux/
Get it from:
http://www.pjsip.org/

and the developer sfs to compile . . . (I used an earlier one but this is currently the latest)
ftp://ibiblio.org/pub/linux/distributions/puppylinux/test/puppy-4.1alpha2

"Pjsua" that seems to do it all...
http://www.pjsip.org/pjsip/docs/html/page_pjsip_samples.htm

Pretty easy to use too...
http://www.pjsip.org/pjsua.htm#basic

_________________
Puppy WIKI

Edited_times_total
Back to top
View user's profile Send_private_message Visit_website 
mcewanw

Joined: 16 Aug 2007
Posts: 2346
Location: New Zealand

PostPosted: Sat 14 Jun 2008, 23:10    Post_subject: Re: VOIP
Sub_title: pjsip
 

Lobster wrote:

To much for me to attempt
but if you are tempted all the info for compiling is there


The above refers to:

http://www.murga-linux.com/puppy/viewtopic.php?p=206406#206406

mcewanw wrote:
Here is something that looks very interesting to me. If this could be made to work, maybe someone could even write a simple gtkdialog or similar frontend to it?
...
Seems to be pretty easy to use too...
http://www.pjsip.org/pjsua.htm#basic
...
I think this is a job for muggins!


I still think muggins would like to try this one, or Newcrest maybe, they've both compiled and tested several VOIP apps before, and I think this commandline programmable one is going to be a winner. Will it connect successfully with Gizmo5? I imagine it will.

Alas, I have no time to do any more computing for one month, (or I'd have done tried it already) - since flying away in 2 weeks time and in process of getting organised.
Back to top
View user's profile Send_private_message Visit_website 
CEL


Joined: 02 Sep 2007
Posts: 24

PostPosted: Fri 20 Jun 2008, 23:41    Post_subject:
Sub_title: pjsua
 

Here is the pjsua executable I've compiled for everyone's use. It's a nice 1.1mb when uncompressed. I've been able to make calls with it, but the sound is choppy. I think it might be just my machine, so let me know how it works for you.

I really like the idea of a gtkdialog frontend for this. We could have a Gizmo alternative in just a few megabytes! Very Puppy-like.
pjsua.gz
Description  pjsua - Command Line SIP User Agent/Softphone
gz

 Download 
Filename  pjsua.gz 
Filesize  492.28 KB 
Downloaded  1265 Time(s) 
Back to top
View user's profile Send_private_message 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15117
Location: Paradox Realm

PostPosted: Sat 21 Jun 2008, 00:51    Post_subject:  

Many thanks for compiling . . . Smile
The raw material is now in place Smile

Quote:
I've been able to make calls with it

eh how? Confused

The prog is running but from the documentation I could not work out much . . .
Do we need a server?
How does one obtain or use a Sip address?
Did you phone to a mobile phone?

How can we set up a one to one call?
Who is up for it?
What do I do? Rolling Eyes

_________________
Puppy WIKI
Back to top
View user's profile Send_private_message Visit_website 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15117
Location: Paradox Realm

PostPosted: Sat 21 Jun 2008, 04:40    Post_subject:  

OK found out my sip phone number

sip:crusty_lobster@proxy01.sipphone.com

Jack Tronkel has phoned me - no sound yet (sounding like a robot apparently) - so connection . . . of sorts . . . Cool

_________________
Puppy WIKI

Edited_time_total
Back to top
View user's profile Send_private_message Visit_website 
CEL


Joined: 02 Sep 2007
Posts: 24

PostPosted: Sat 21 Jun 2008, 16:30    Post_subject:  

Lobster wrote:
sip: 17473301020@prox


Yeah all Gizmo accounts have a SIP address like sip:1747#######@proxy01.sipphone.com
So to start pjsua with your gizmo account you should be able to run it like this:
./pjsua --id sip:17473301020@proxy01.sipphone.com --registrar sip:proxy01.sipphone.com --realm proxy01.sipphone.com --username 17473301020 --password yourpassword

When I use this with my gizmo account though, I'm having the same problem as you with the audio being sounding like a robot… For some reason it sounds okay with accounts on other SIP providers I've tried. (freecall.com and callwithus.com are good cheap ones) But there is still a constant jitter in all my calls, and my microphone isn't being recognized at all.

To make a call in pjsua, type m and press enter. Then type in the SIP address to call and press enter. The SIP address for a PSTN phone # looks like this: sip:1##########@proxy01.sipphone.com (Or if not using gizmo, it's at a different domain of course)

Also, you don't necessarily need a registrar server to use SIP. If you have a client like pjsua running, you can use your ip address as a SIP address (sip:###.###.###.###). But then you can't call out to the PSTN and you might have firewall issues or something.
Back to top
View user's profile Send_private_message 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15117
Location: Paradox Realm

PostPosted: Sun 22 Jun 2008, 14:00    Post_subject:  



Thanks CEL

Hacking the FreeBasic buttondialogue provided by MU
http://www.murga-linux.com/puppy/viewtopic.php?p=208351#208351
I have created this rudimentary front end
which includes pjsua (the phone part)

http://tmxxine.com/sip/ps6.tar.gz

Now updated to include Smokey01 aka Grants
config file with extra Ip numbers . . .

If so this very simple prog can have those commands added
modification welcome . . .

_________________
Puppy WIKI

Edited_times_total
Back to top
View user's profile Send_private_message Visit_website 
CEL


Joined: 02 Sep 2007
Posts: 24

PostPosted: Sun 22 Jun 2008, 14:35    Post_subject:  

Nice! But how can the program interface with pjsua to send commands once its running? Or would we just type them?
Back to top
View user's profile Send_private_message 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15117
Location: Paradox Realm

PostPosted: Sun 22 Jun 2008, 14:50    Post_subject:  

Smile You need variables and a programmer for that . . .

Smile
The most I have been able to do is send voice one way
Really what I have created is pre alpha - more buttons can be added

Sip phone numbers can be found in Gizmo (under personal profile)
right clicking - allows you to find others profile and their Sip numbers.

Can we register sip numbers somewhere?
Are there interfaces for pjsua written in C?
Can we phone Sip phones?

_________________
Puppy WIKI
Back to top
View user's profile Send_private_message Visit_website 
CEL


Joined: 02 Sep 2007
Posts: 24

PostPosted: Sun 22 Jun 2008, 15:45    Post_subject:  

Ah, I see. Well I'm looking at gtkdialog now so we'll see if I'm able to come up with anything.

pjsua itself is written in C, as are the other pj… libraries, and they're meant to be able to be embedded. The site describes pjsua as a "High level SIP UA library, combining SIP and media stack into high-level easy to use API."

When a sip client "registers," it means that it is sending its server its location (IP address) so the server knows where to find it when another client wants to call it. Or do you mean a different kind of registering?

To call a sip phone from the PSTN (Public switched telephone network, aka traditional phones), you need to have a "DID" number (Direct Inward Dialing). This is a phone number that you buy and then calls to it are gatewayed to your SIP address. There is one site I know that provides DIDs for free: ipkall.com. (They have an odd business model but it works!)
Back to top
View user's profile Send_private_message 
smokey01


Joined: 30 Dec 2006
Posts: 1822
Location: South Australia

PostPosted: Sun 22 Jun 2008, 17:09    Post_subject: pjsua  

Guys, I have some good news with the im part anyway.

The simple instructions:

Put the single file in /urs/bin/pjsua

from a terminal window type pjsua and you get the menu

What I did to advance past this stage was create a config file. You can name the config file anything you like. I actually created this file from scratch with geany.

It is possible to create the file from the menu with the dc (dump config) and f (save config) commands.

Here is an example what is in the config file:

#
# Logging options:
#
--log-level 5
--app-log-level 4

#
# Account 0:
#
--id sip:wombat01@proxy01.sipphone.com
--registrar sip:proxy01.sipphone.com
--reg-timeout 300
--realm *
--username wombat01
--password ***********

#
# Network settings:
#
--local-port 5060

#
# Media settings:
#
#using default --clock-rate 16000
#using default --quality 5
#using default --ec-tail 200
#using default --ilbc-mode 20
--rtp-port 4000

#
# User agent:
#
--max-calls 4

#
# Buddies:
--add-buddy=sip:crusty_lobster@proxy01.sipphone.com
--add-buddy=sip:puppyluvr@proxy01.sipphone.com
#

The im becomes easy to drive when using the config file.

To use the config file:

pjsua --config-file whatever.cfg

You will notice the config file above register me onto the gizmo server.

when I press the i command, it displays my buddy list:

See attachment.

Now you can select [1 - 2] press enter, then you can type your message and press enter to send it.

I tested it between two computer with different logins and it seemed to work fine. Both people have to be online for it to work. It seems to produce error messages if the receiving person is not online.

I'm still working on the voice quality. Currently it is machine gun like.

I did have limited success. On one call to lobster, the gizmo message said lobster was not available, played back perfectly. I have no idea what I did to make it work but I guess it does produce hope.

So far we have IM and Buddy Lists, next the world.

Smokey
buddy.jpg
 Description   Buddy list screen shot
 Filesize   63.22 KB
 Viewed   4584 Time(s)

buddy.jpg

Back to top
View user's profile Send_private_message Visit_website 
Aitch


Joined: 04 Apr 2007
Posts: 6825
Location: Chatham, Kent, UK

PostPosted: Sun 22 Jun 2008, 20:31    Post_subject:  

add me to the universal puppybuddy list, please

17473313699@proxy01.sipphone.com

Aitch
Back to top
View user's profile Send_private_message 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15117
Location: Paradox Realm

PostPosted: Sun 22 Jun 2008, 22:28    Post_subject:  

Quote:
Ah, I see. Well I'm looking at gtkdialog now so we'll see if I'm able to come up with anything.


I wanted to test out FreeBasic . . . Smile

gtkdialog would be more efficient for small progs like this
- use the included graphic if useful

Everyone attempting a prog in gtkdialog3 . . .
Barry mentions on his blog for 23 Jun 2008
this directory in Dingo - slight differences in the 4.1 Alpha
Code:
/usr/share/doc/gtkdialog3/examples

gives examples

but change
this bottom line on all code
Code:
gtkdialog --program=MAIN_DIALOG


to
Code:
gtkdialog3 --program=MAIN_DIALOG
logo.jpg
 Description   
 Filesize   7.07 KB
 Viewed   4625 Time(s)

logo.jpg


_________________
Puppy WIKI
Back to top
View user's profile Send_private_message Visit_website 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15117
Location: Paradox Realm

PostPosted: Sun 22 Jun 2008, 22:43    Post_subject:  

This part of the code that Grant (smokey01) mentions

Code:
#
# Buddies:
--add-buddy=sip:crusty_lobster@proxy01.sipphone.com
--add-buddy=sip:puppyluvr@proxy01.sipphone.com
--add-buddy=sip:aitch@proxy01.sipphone.com

#


can have as many sip numbers as possible during testing (available in Gizmo)

I have added Aitch in the above snippet of the config file Smile
the numbers and names are equivalent - numbers is what you see when viewing profile . . .

_________________
Puppy WIKI
Back to top
View user's profile Send_private_message Visit_website 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15117
Location: Paradox Realm

PostPosted: Sun 22 Jun 2008, 22:58    Post_subject:  

Aitch wrote:
add me to the universal puppybuddy list, please

17473313699@proxy01.sipphone.com

Aitch


added here under Puppy buddies . . . more welcome
http://tmxxine.com/wik/wikka.php?wakka=PuppySip

_________________
Puppy WIKI

Edited_time_total
Back to top
View user's profile Send_private_message Visit_website 
Display_posts:   Sort by:   
Page 1 of 12 Posts_count   Goto page: 1, 2, 3, ..., 10, 11, 12 Next
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Cutting edge
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1070s ][ Queries: 13 (0.0151s) ][ GZIP on ]