VOIP

Under development: PCMCIA, wireless, etc.
Post Reply
Message
Author
User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#16 Post by Lobster »

Update - this rudimentary program now available for testing
see first post in this thread for latest release

Now updated 25 June to merge with CEL's code and drop the FreeBasic Part
CEL's code implemented - not tested
Smokey01 aka Grants config file with extra SIP numbers . . .

you should change the cofig1.cfg
to match your details, like so:

Code: Select all

--id sip:crusty_lobster@proxy01.sipphone.com
--registrar sip:proxy01.sipphone.com
--reg-timeout 300
--realm *
--username crusty_lobster
--password ***********
Last edited by Lobster on Tue 01 Jul 2008, 06:24, edited 4 times in total.
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

Caneri
Posts: 1513
Joined: Tue 04 Sep 2007, 13:23
Location: Canada

#17 Post by Caneri »

Ok...I got past the registering on PuppySip

my login is caneri@proxy01.sipphone.com

All I have heard so far is machine guns but maybe my local router is in the way as NAT is not working/configured I think...I guess...doh..hmmm

By the way @ Lobster...I love the front end gui picture :-)

Eric
[color=darkred][i]Be not afraid to grow slowly, only be afraid of standing still.[/i]
Chinese Proverb[/color]

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#18 Post by Lobster »

Glad you liked the Sip pic Eric,

:) had a go connecting with Tom and we also got the machine gun effect
not sure what parameters to change though - so advisement welcome . . .
It is getting the right commands here maybe . . .
http://www.pjsip.org/pjsua.htm
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
smokey01
Posts: 2813
Joined: Sat 30 Dec 2006, 23:15
Location: South Australia :-(
Contact:

#19 Post by smokey01 »

I spent another few hours trying to get the voice to work. I still have machine gun affect.

I have been scouring through the FAQ and help on the PJSIP site but no solution yet.

I wonder if the Gizmo server might be the problem. Maybe we could try another SIP server, anyone got any suggestions.

Has anyone tried an IP to IP connect yet?

I'm also going to post a message on the PJSIP site and try and find someone with experience. This may save us some time, although it is fun to play it's starting to get frustrating.

Smokey

User avatar
smokey01
Posts: 2813
Joined: Sat 30 Dec 2006, 23:15
Location: South Australia :-(
Contact:

#20 Post by smokey01 »

Lobster, have you checked this out?

http://www.murga-linux.com/puppy/viewtopic.php?t=24342

Twinkle. Is quite small and open source.

User avatar
HairyWill
Posts: 2928
Joined: Fri 26 May 2006, 23:29
Location: Southampton, UK

#21 Post by HairyWill »

smokey01 wrote:Twinkle. Is quite small and open source.
but it has a dependency on qt
Will
contribute: [url=http://www.puppylinux.org]community website[/url], [url=http://tinyurl.com/6c3nm6]screenshots[/url], [url=http://tinyurl.com/6j2gbz]puplets[/url], [url=http://tinyurl.com/57gykn]wiki[/url], [url=http://tinyurl.com/5dgr83]rss[/url]

User avatar
smokey01
Posts: 2813
Joined: Sat 30 Dec 2006, 23:15
Location: South Australia :-(
Contact:

#22 Post by smokey01 »

Not only that it keeps on locking up on puppy 4.

Will, what is the issue with QT dependencies?

I do like pjsip, if I could only get it to work properly. I do like the single file + config file.

Smokey

User avatar
HairyWill
Posts: 2928
Joined: Fri 26 May 2006, 23:29
Location: Southampton, UK

#23 Post by HairyWill »

smokey01 wrote:Will, what is the issue with QT dependencies?
Only size, the qt package for puppy4 is 4MB. This would probably put it out of Barry's shopping list for inclusion in an official puppy.
Will
contribute: [url=http://www.puppylinux.org]community website[/url], [url=http://tinyurl.com/6c3nm6]screenshots[/url], [url=http://tinyurl.com/6j2gbz]puplets[/url], [url=http://tinyurl.com/57gykn]wiki[/url], [url=http://tinyurl.com/5dgr83]rss[/url]

muggins
Posts: 6724
Joined: Fri 20 Jan 2006, 10:44
Location: hobart

#24 Post by muggins »

Smokey & Will,

Twinkle is currently dependent on qt3. On his website the developer has migration to qt4 on his roadmap.

Caneri
Posts: 1513
Joined: Tue 04 Sep 2007, 13:23
Location: Canada

#25 Post by Caneri »

Hi All,

I have contacted a free Canadian stun/turn server with regards to accessing their service to be used for Puppy.

look here http://numb.viagenie.ca/

I'm not educated as to how this all works but maybe something can come of this...who knows...or am I totally off track here?

Best,
Eric
[color=darkred][i]Be not afraid to grow slowly, only be afraid of standing still.[/i]
Chinese Proverb[/color]

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#26 Post by Lobster »

:) Good idea Eric

I have registered with them
but not quite sure how to make use of their service as is
within twinkle?
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
Aitch
Posts: 6518
Joined: Wed 04 Apr 2007, 15:57
Location: Chatham, Kent, UK

#27 Post by Aitch »

Hello folks

I've so far only had one successful gizmo chat with puppyluvr,

though I've had messages successfully left on peoples answering m/c thingy

eric, hairywill & lobster have contacted me, but can't hear me - I can't

explain it - as I txted to lobster maybe because i'm stuck in win at the

moment :(

maybe its the sipserver itself

I've done a bit of trawling & found these links

http://www.voip-info.org/wiki-Linux

http://www.pernau.at/kd/voip/bookmarks-sip-stacks.html

http://www.pernau.at/kd/voip/bookmarks-sip-apps.html

and this looks promising

http://www.openser.org/mos/view/Features/

here's more info - linux voip howto

http://www.linux.org/docs/ldp/howto/VoIP-HOWTO.html

anyone fancy porting trixbox to puppy? :wink: :D

http://www.voip-info.org/wiki/view/trixbox

Aitch

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#28 Post by Lobster »

Good links Aitch
Maybe this Sip Server could be set up? - anyone up for it?
http://www.voip-info.org/wiki/view/SIP+Express+Router
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
Aitch
Posts: 6518
Joined: Wed 04 Apr 2007, 15:57
Location: Chatham, Kent, UK

#29 Post by Aitch »

Lobster

Just a thought

Could that SIP server or the OpenSer I linked to, or maybe Freeswitch, be somehow added to the community website, so that the Puppy community has it's own VOIP phone server?
OpenSER can run on embedded systems, with limitted resources - the performances can be up to hundreds of call setups per second
OpenSER can be used in geographic distributed VoIP platforms
on systems with 4GB memory, OpenSER can serve a population over 300 000 online subscribers
Anyone got any knowledge or experience with this type of thing?

Aitch

User avatar
CEL
Posts: 24
Joined: Sun 02 Sep 2007, 21:58

#30 Post by CEL »

smokey01 wrote:I wonder if the Gizmo server might be the problem. Maybe we could try another SIP server, anyone got any suggestions.
Gizmo's server is problematic. When I try to make calls through it, the sound quality is garbage. When I use a different server, it's much better, but still has the constant jitter.

If all you want to do is call a sip address, I don't think you need a server at all. You can run pjsua without a config file, maybe just with an --id argument for identification and --stun-srv in case stun is needed, and you should be able to make calls.
smokey01 wrote:Has anyone tried an IP to IP connect yet?
I've done this over my local network; it works well. The address just looks like sip:x.x.x.x
Caneri wrote:look here http://numb.viagenie.ca/
Using a STUN server with pjsua didn't help my calls. But then again, most of my calls were in my LAN and stun is basically for getting around firewalls... To try for yourself, add this line to your config file (this is to use Gizmo's stun server):
--stun-srv=stun01.sipphone.com
Aitch wrote:Could that SIP server or the OpenSer I linked to, or maybe Freeswitch, be somehow added to the community website, so that the Puppy community has it's own VOIP phone server?
I think a SIP server for the puppy community is a really nice idea. But would one of us be able to host it? It can't be embedded into a website, it's its own process. We also probably would not be able to dial out to regular phones from it.

Lobster,

here's a script we can add to PuppySIP. It uses a gtkdialog to allow easy set up of the account info in pjsua's config file. It could probably be optimized more, but it's functional right now. It uses /root/.pjsua as the location of the config file because I couldn't figure out how to reference the one inside the PS package. Also, the buttondialog window might need to be reorganized a little because when I tried adding another button, the window became too tall for my screen (800x480).

Code: Select all

#!/bin/bash
#
# pjconfig.sh - Set up SIP account options for pjsua

export PJCFG='/root/.pjsua' # config-file

export DIALOG='
<vbox>
  <hbox>
    <text>
      <label>Your SIP URL:</label>
    </text>
    <entry>
      <input>sed -rn /^--id/s/^--id.//p /$PJCFG</input>
       <variable>SIP_ID</variable>
     </entry>
    <text>
      <label>ex: sip:yourname@proxy01.sipphone.com</label>
    </text>
  </hbox>
  <hbox>
    <text>
      <label>Registrar URL:</label>
    </text>
    <entry>
      <input>sed -rn /^--registrar/s/^--registrar.//p /$PJCFG</input>
       <variable>SIP_REGISTRAR</variable>
     </entry>
    <text>
      <label>ex: sip:proxy01.sipphone.com</label>
    </text>
  </hbox>
  <hbox>
    <text>
      <label>Auth Realm:</label>
    </text>
    <entry>
      <input>sed -rn /^--realm/s/^--realm.//p /$PJCFG</input>
       <variable>SIP_REALM</variable>
     </entry>
    <text>
      <label>ex: *</label>
    </text>
  </hbox>
  <hbox>
    <text>
      <label>Username:</label>
    </text>
    <entry>
      <input>sed -rn /^--username/s/^--username.//p /$PJCFG</input>
       <variable>SIP_USERNAME</variable>
     </entry>
    <text>
      <label>ex: yourname</label>
    </text>
  </hbox>
  <hbox>
    <text>
      <label>Password:</label>
    </text>
    <entry invisible_char="*" visibility="false">
      <input>sed -rn /^--password/s/^--password.//p /$PJCFG</input>
      <variable>SIP_PASSWORD</variable>
    </entry>
  </hbox>
  <hbox>
    <button ok></button>
    <button cancel></button>
  </hbox>
</vbox>'

I=$IFS; IFS=""
for STATEMENTS in $(gtkdialog3 --program DIALOG --name PuppySIPConfig); do
  eval $STATEMENTS
done
IFS=$I

if [ "$EXIT" = "OK" ]; then
  sed -e /^--id/d -e /^--registrar/d -e /^--realm/d -e /^--username/d -e /^--password/d $PJCFG > /tmp/puppysiptmp
  mv /tmp/puppysiptmp $PJCFG 
  echo "
--id $SIP_ID
--registrar $SIP_REGISTRAR
--realm $SIP_REALM
--username $SIP_USERNAME
--password $SIP_PASSWORD" >> $PJCFG  
fi

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#31 Post by Lobster »

Update - this program now available for testing - Freebasic dropped now gtkdialog3 only . . .
http://tmxxine.com/sip/ps6.tar.gz


NB:
Latest Code in first post


Now updated 26 June to merge with CEL's code and drop the FreeBasic part
CEL's code implemented but not tested. . .

this is an example of how I filled in the details
yours should be similar but not identical . .
If you recieved a voicemail about adding password each time
- don't worry - you just have to do it once and it is saved then just press the PJSAU button to run . . .

Code: Select all

--id sip:crusty_lobster@proxy01.sipphone.com
--registrar sip:proxy01.sipphone.com
--realm *
--username crusty_lobster
--password *******
Below is the code part of the updated file

Code: Select all

#!/bin/bash
# GPL v3 License
# PS v 0.5 June 25 008
# created by Lobster, CEL, HairyWill
###################

export PJCFG='config2.cfg' # config-file

export DIALOG='
<window title="PS" window-position="1">
<vbox>
  <hbox>
     <text><label>PS5 ~ frontend for PJSUA VOIP ~ Puppy Community June 25 2008</label></text>
  </hbox>   
  <frame>
         <pixmap>
         <input file>logo.jpg</input>
       </pixmap>
         <text><label>Fill in details and save config</label></text>
         <text><label>Click PJSUA to run - Press return in console for menu options</label></text>
   </frame>
  <hbox>
    <text>
      <label>Your SIP URL:</label>
    </text>
    <entry>
      <input>sed -rn /^--id/s/^--id.//p /$PJCFG</input>
       <variable>SIP_ID</variable>
     </entry>
    <text>
      <label>ex: sip:yourname@proxy01.sipphone.com</label>
    </text>
  </hbox>
  <hbox>
    <text>
      <label>Registrar URL:</label>
    </text>
    <entry>
      <input>sed -rn /^--registrar/s/^--registrar.//p /$PJCFG</input>
       <variable>SIP_REGISTRAR</variable>
     </entry>
    <text>
      <label>ex: sip:proxy01.sipphone.com</label>
    </text>
  </hbox>
  <hbox>
    <text>
      <label>Auth Realm:</label>
    </text>
    <entry>
      <input>sed -rn /^--realm/s/^--realm.//p /$PJCFG</input>
       <variable>SIP_REALM</variable>
     </entry>
    <text>
      <label>ex: *</label>
    </text>
  </hbox>
  <hbox>
    <text>
      <label>Username:</label>
    </text>
    <entry>
      <input>sed -rn /^--username/s/^--username.//p /$PJCFG</input>
       <variable>SIP_USERNAME</variable>
     </entry>
    <text>
      <label>ex: yourname</label>
    </text>
  </hbox>
  <hbox>
    <text>
      <label>Password:</label>
    </text>
    <entry invisible_char="*" visibility="false">
      <input>sed -rn /^--password/s/^--password.//p /$PJCFG</input>
      <variable>SIP_PASSWORD</variable>
    </entry>
  </hbox>
  <hbox> 
      <text>
      <label>Save config details</label>
      </text>
         <button ok></button>
          <button>
            <label>Run PJSAU</label>
            <action>rxvt -e ./pjsua --config-file=config2.cfg &</action>
          </button>    
     <button cancel></button>
  </hbox> 
</vbox>
 </window>'

I=$IFS; IFS=""
for STATEMENTS in $(gtkdialog3 --program DIALOG --name PuppySIPConfig); do
  eval $STATEMENTS
done
IFS=$I

if [ "$EXIT" = "OK" ]; then
  sed -e /^--id/d -e /^--registrar/d -e /^--realm/d -e /^--username/d -e /^--password/d $PJCFG > /tmp/puppysiptmp
  mv /tmp/puppysiptmp $PJCFG
  echo "
--id $SIP_ID
--registrar $SIP_REGISTRAR
--realm $SIP_REALM
--username $SIP_USERNAME
--password $SIP_PASSWORD" >> $PJCFG 
fi
Last edited by Lobster on Tue 01 Jul 2008, 06:26, edited 4 times in total.
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#32 Post by Lobster »

HairyWill has recompiled pjsau - download the updated prog from here and see if that produces better result - we have had some success with it . . .
http://tmxxine.com/sip/ps5.tar.gz
Will was able to send a voice message . . .

remember to change the permissions so it an executable program
:)
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
CEL
Posts: 24
Joined: Sun 02 Sep 2007, 21:58

#33 Post by CEL »

Success! Thank you HairyWill! My calls are now all clear. One thing I had to adjust though: I added --clock-rate 22000 to my config file. Before I did that, it would hang, before every call, at "attempting to open devices @16000 Hz." So if other people confirm this I suggest we add that line to the default config file.

Another thing: You may have noticed that the account fields are blank when you open puppysip even after you've already filled them out. It's because the script doesn't have an absolute path to the config file. (This is set at line #7 in v5.) So maybe this could be put in /root/.pjsuacfg or installed in /usr/local/puppysip/

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#34 Post by Lobster »

Image

OK updates
including sound and retaining of config details

download this to /root
http://tmxxine.com/sip/ps6.tar.gz

it should when you click on it create a directory called /root/puppysip6

the config details entered are mine

run ps6 to run prog (remember to set permissions)

change 'Your Sip URL:'

Code: Select all

sip:crusty_lobster@proxy01.sipphone.com
to something like:

Code: Select all

sip:my_gizmo_name@proxy01.sipphone.com
and 'Username' to

Code: Select all

my_gizmo_name
You should also add your Gizmo 'Password' at this point

When you click OK
the details are saved in 'config6.cfg'
and you can then press the 'Run PJSUA' button (spelling wrong on prog - will change)

I was able to (perhaps) send a message to Eric 'Caneri'
I could hear voice - progress continues . . .

At the moment only people registered with and using Gizmo have details of a sip account but maybe there are other ways to get a Sip number/proxy and password?
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
HairyWill
Posts: 2928
Joined: Fri 26 May 2006, 23:29
Location: Southampton, UK

#35 Post by HairyWill »

Yesterday I managed to use pjsua to make a call to my mobile using my gizmo out credit. My account credentials are stored in the config file.

Code: Select all

pjsua --config-file=config2.cfg sip:+447833111111@proxy01.sipphone.com
Will
contribute: [url=http://www.puppylinux.org]community website[/url], [url=http://tinyurl.com/6c3nm6]screenshots[/url], [url=http://tinyurl.com/6j2gbz]puplets[/url], [url=http://tinyurl.com/57gykn]wiki[/url], [url=http://tinyurl.com/5dgr83]rss[/url]

Post Reply