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 Fri 19 Sep 2014, 18:19
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 3 of 12 [167 Posts]   Goto page: Previous 1, 2, 3, 4, 5, ..., 10, 11, 12 Next
Author Message
Lobster
Official Crustacean


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

PostPosted: Wed 25 Jun 2008, 01:42    Post subject:  

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:
--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:
#!/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

_________________
Puppy WIKI

Last edited by Lobster on Tue 01 Jul 2008, 02:26; edited 4 times in total
Back to top
View user's profile Send private message Visit poster's website 
Lobster
Official Crustacean


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

PostPosted: Wed 25 Jun 2008, 09:25    Post subject:  

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
Smile

_________________
Puppy WIKI
Back to top
View user's profile Send private message Visit poster's website 
CEL


Joined: 02 Sep 2007
Posts: 24

PostPosted: Wed 25 Jun 2008, 23:24    Post subject:    

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/
Back to top
View user's profile Send private message 
Lobster
Official Crustacean


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

PostPosted: Thu 26 Jun 2008, 00:22    Post subject:  



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:
sip:crusty_lobster@proxy01.sipphone.com


to something like:
Code:
sip:my_gizmo_name@proxy01.sipphone.com


and 'Username' to
Code:
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 WIKI
Back to top
View user's profile Send private message Visit poster's website 
HairyWill


Joined: 26 May 2006
Posts: 2949
Location: Southampton, UK

PostPosted: Thu 26 Jun 2008, 02:48    Post subject:  

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:
pjsua --config-file=config2.cfg sip:+447833111111@proxy01.sipphone.com

_________________
Will
contribute: community website, screenshots, puplets, wiki, rss
Back to top
View user's profile Send private message 
muggins

Joined: 20 Jan 2006
Posts: 6687
Location: lisbon

PostPosted: Thu 26 Jun 2008, 04:24    Post subject:  

Lob,

nice looking frontend. I haven't used the app, but I'm wondering if it would it be possible to have traditional "Ring" & "Hang up", to replace "Run pjsua" etc, whilst still using the same underlying code?
Back to top
View user's profile Send private message 
smokey01


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

PostPosted: Thu 26 Jun 2008, 05:03    Post subject:  

Will, I have also called a phone, not a mobile but a normal one. It rang but I didn't answer it.

What I also tried was dialing into the Gizmo server to retrieve messages. This worked fine except pressing option 2 didn't work but the sound was very clear. I think the keypad in Gizmo must generate tones, not key codes.

This could be added to the Buddies:
sip:611@proxy01.sipphone.com

Just need to work out how to generate the appropriate tone for each key.

Things are looking better all the time. All this in about .5 Meg, although compressed not too bad.

I can't wait to try a voice call with someone.

Smokey
Back to top
View user's profile Send private message Visit poster's website 
Caneri

Joined: 04 Sep 2007
Posts: 1580
Location: Canada

PostPosted: Thu 26 Jun 2008, 05:35    Post subject:  

Hi Lobster,

Hooray!! I got your voice mail from PuppySip version 6 and the quality was good.

I also have a response from viagenie.ca with some advice and will inform the group when I can make heads or tails of it.

One thing they recommended was to run a voip server somewhere and then use their service to punch holes through local/personal NAT routers.

I may have a spot to run this Puppy VOIP server...

and the fun continues...Wink

Best,
Eric
lobster_416x300.jpg
 Description   
 Filesize   23.16 KB
 Viewed   1373 Time(s)

lobster_416x300.jpg


_________________
Be not afraid to grow slowly, only be afraid of standing still.
Chinese Proverb

Back to top
View user's profile Send private message 
eccentric

Joined: 05 Jan 2006
Posts: 139
Location: Khon Kaen Thailand.....NOW back in the UK

PostPosted: Thu 26 Jun 2008, 09:14    Post subject: voip
Subject description: Voice over a crusty lobster
 

the phone is by Salvador Dahli, there is another all white phone in the same vain but i cannot remember the artist, both where on show at the V&A in London. last year. ( from :- telegraph.co.uk).

Michael in China, using two empty bean tins and a length of string.
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger 
Lobster
Official Crustacean


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

PostPosted: Fri 27 Jun 2008, 01:15    Post subject:  


Thanks to Smokey01 (Grant) and Eric - received voicemail from Puppy Sip - that part works. Smile

Thanks guys Smile

Salvador Dali I believe created 4 Lobster phones. They worked. I have seen one in the Tate gallery London.

Tate modern may eventually have a Lobster room, where all Lobster themed artwork is displayed.

Has anyone done Puppy Sip to Puppy Sip yet?

_________________
Puppy WIKI
Back to top
View user's profile Send private message Visit poster's website 
charnisingh

Joined: 06 Oct 2007
Posts: 138

PostPosted: Fri 27 Jun 2008, 02:25    Post subject: VOIP
Subject description: testing
 

Lobster,

i tried the VOIP sip phone to day but could noy register myself, may be

my details of form filling was not correctly filled.

Charni.
Back to top
View user's profile Send private message 
Lobster
Official Crustacean


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

PostPosted: Fri 27 Jun 2008, 03:18    Post subject:  

Hi Charni Smile

hope this helps:

change 'Your Sip URL:'
sip:chanrnisingh@proxy01.sipphone.com

and 'Username' to
chanrnisingh

add your gzmo password
the rest stays the same

then click on Save config details [OK]
and then [Run PjSUA]

Press enter
type m to make a call
enter the number of the person you wish to phone . . .
if they are not online leave a voicemail . . .

h to hangup

_________________
Puppy WIKI
Back to top
View user's profile Send private message Visit poster's website 
Lobster
Official Crustacean


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

PostPosted: Fri 27 Jun 2008, 05:55    Post subject:  

OK new version out (still in Puppy6 directory)

Puppy SIP 7
http://tmxxine.com/sip/ps7.tar.gz

New features
    Pull down menu
    Help section, Wiki and forum thread link and configure edit section
    Suggestions implemented

Only tested in Puppy Dingo

_________________
Puppy WIKI
Back to top
View user's profile Send private message Visit poster's website 
smokey01


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

PostPosted: Fri 27 Jun 2008, 06:29    Post subject:  

Guys, apart from lobsters improvements tombh and myself had a great conversation for about 2 hours today. The quality was great with less lag than skype.

The online status is a bit tricky. you can press s (subscribe) [enter] then your own address from the buddy list. This will then show you that you are online. I then pressed s [enter] 6 [enter] which is tom's address and it displayed his status as online.

Now the big discovery. When you call someone they must press a to answer. It tells you to type in a code between 100-699. You need to select between 200-299. You can then have a good clear two way conversation. To finish press h [enter]

Smokey
Back to top
View user's profile Send private message Visit poster's website 
HairyWill


Joined: 26 May 2006
Posts: 2949
Location: Southampton, UK

PostPosted: Fri 27 Jun 2008, 06:50    Post subject:  

I've playing with pjsua lots and have it working in lots of ways.

I've built the windows pjsua and used it to make calls to and from the linux version both using ip-ip and making direct unauthenticated calls to another instance of pjsua connected to the gizmo network (ie pjsua sip:hairywill@proxy01.sipphone.com).

I've made direct unauthenticated calls from pjsua on linux to gizmo on windows. (spoke to puppyluvr yesterday)

What I can't do is use pjsua to make a call to gizmo on linux this gives me a big long stream of
Code:
pjsip bad rtp pt 117 (expecting 103)
this probably being thrown from pjproject/trunk/pjmedia/src/pjmedia/stream.c

If anyone happens to be running gizmo this afternoon and gets a call from me (or anonymous) that dies before it starts. It would be great if you could close down gizmo and start pjsua I will try again 2 times at 2 minute intervals.

_________________
Will
contribute: community website, screenshots, puplets, wiki, rss
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 3 of 12 [167 Posts]   Goto page: Previous 1, 2, 3, 4, 5, ..., 10, 11, 12 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Cutting edge
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


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