Puppy Phone - VOIP using SIP

Under development: PCMCIA, wireless, etc.
Message
Author
User avatar
smokey01
Posts: 2813
Joined: Sat 30 Dec 2006, 23:15
Location: South Australia :-(
Contact:

#61 Post by smokey01 »

dogle you are quite right.

I have identified this above at para 2 and some years ago.

It's one of the bugs I am going to try and fix as we never managed to last time. It's really not that much of an issue but it one all users should be aware of.

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

#62 Post by smokey01 »

Lobster your little setup wizard is quite good except there is a huge delay before you hear the 2barks, 15 - 30 seconds.

I must have press the test sound button many times as I was getting barks every now and then for up two three minutes.

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

#63 Post by Lobster »

The sound bug may be related to the delay
I don't have it - but not good
Maybe a forced close of pjsua for this part of the wizard?
Micko says 'aplay' does play .au files - on my system it does not
Maybe a solution would be to use 'defaultmediaplayer' - assuming there is such a command?

I will do some more work on the wizard and let you have any results soon :)

Crash?
Run Puppy!
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:

#64 Post by smokey01 »

I think I have found a solution to make the sound card play nice with Psip.

add the following line to /root/.psip/pjsua.cfg file:

Code: Select all

--snd-auto-close=0
This appears to release the sound card by Psip when not in use so you can play songs after using Psip without having to close it down.

More testing is required but this is how I tested it so far.

Test 1
Without the code inserted as above, check voice mail.
Now play a song with Psip running.
No sound

Test 2
Add the code to the pjsua.cfg file
Check voice mail
Now play a song
You should hear the song

Let me know if this works for you too.

dogle
Posts: 409
Joined: Thu 11 Oct 2007, 12:41

#65 Post by dogle »

maybe there's more than one ...

The 'motorboating' one - which seems to be provoked by asking pjsua to make an invalid call (eg to 'voicemail' when not registered with Iptel) is not relieved for me (I'm running 4.3.1 BTW) by addition of the code Smokey kindly suggests.

Note, it can be provoked by telling pjsua to make an invalid call using the CLI, so probably not Psip-dependent at all.

If so this could be tough on the newcomer who has at present no indicator that pjsua is still running when he thinks his VoIP application has been shut down. (Tray anyone?).

dogle
Posts: 409
Joined: Thu 11 Oct 2007, 12:41

#66 Post by dogle »

Hey, this might be something a bit more serious -

Just after posting, I noticed something very odd with the xload indicator ... red hills disappearing behind Venetian blind ... that brace!, brace! feeling.

Seems that my fiddling, ahem, testing session had left me with close on a dozen Psip processes (not pjsua) still running - that's with nothing on the desktops but the rxvt/topview tablet.

Bummer when one has to restart the X server to clear it.

Edit: Yes, seems Psip is not closed properly unless you do Phone=>Quit and shutdown. Yer average user is just going to hit the X-button, all unawares, like me ... possibly this was intentional to maintain presence for incoming calls? ... but still a big newbie-trap as it stands.

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

#67 Post by Lobster »

Enclosed is the latest version 0.2 of the PSIP2 Setup wizard

It was designed on and for slacko
- so might need to change sound setter to something more universal than just retrovol

The enclosed zip file has two config.png's - you only need one

It should be simpler to use and understand . . . :)
Attachments
ps2wv0.2.tar.gz
(35.55 KiB) Downloaded 367 times
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:

#68 Post by smokey01 »

dogle the shutdown issue has been around since the beginning of development. I'm sure we have included this in the documentation so part of the solution is education. I have never had more than one instance of Psip running as I was always aware of the problem.

I guess clicking on X and making Psip minimize to the tray would be good except I have no idea how to program that, any ideas?

I know other developers have had the same problem such as zigberts Pmusic but he now has overcome the problem. I will have a look at his code and see what he did.

You are right, the releasing of the sound card is not 100% fixed but it's now much better than it was. I also noticed that if I made an unsuccessful call to someone who was offline it did not seem to release the card. If I then tried my voice mail it worked again and I could listen to music.

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

#69 Post by smokey01 »

Lobster wrote:Enclosed is the latest version 0.2 of the PSIP2 Setup wizard

It was designed on and for slacko
- so might need to change sound setter to something more universal than just retrovol

The enclosed zip file has two config.png's - you only need one

It should be simpler to use and understand . . . :)
Looks pretty good. I don't know why aplay has such a long pause as it would be a better choice than using defaultmediaplayer or defaultaudioplayer.

I think we could make it the GUI a bit more compact too just by moving things around. There seems to be a fair bit of real estate not used.

Is it your plan to have this as a stand alone gui?, include it in the main gui? or invoke it from the main gui?

seaside
Posts: 934
Joined: Thu 12 Apr 2007, 00:19

#70 Post by seaside »

smokey01 wrote:
I guess clicking on X and making Psip minimize to the tray would be good except I have no idea how to program that, any ideas?
smokey01,

A possible option might be to make the dialog "undecorated" which would hide the minimize-close options.

Then a "quit" button with total close down code would assure a proper close. This would still allow a minimize/maximize toggle by clicking the tray item (in JWM).

Cheers,
s

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

#71 Post by Lobster »

Is it your plan to have this as a stand alone gui?, include it in the main gui? or invoke it from the main gui?
:)
I suggest it goes in its own directory for easy upgrading
I suggest a new 'Quick start wizard' button is added to the main GUI to invoke the wizard
I am leaving any mods to the main GUI to you for now - not looking at that at all
I intend to create a 'second page GUI' that will provide 'first call' wizard help.

I then want to explore the use of ffmpeg for video support which you suggested.
Have you any knowledge or idea of how to:
1. Display a video box of a connected webcam (using ffmpeg)
2. Also send the video box contents
3. Receive and display the video contents
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:

#72 Post by Lobster »

Will try and attend conference call on Sunday
- any apart from Smokey and Eric attending?
We may see a development of Bow wow . . .
http://puppylinux.org/wikka/BowWow

The twinkle SIP utility (5MB), seems to work and (of interest to me)
also has a wizard . . .
I sent Eric a voicemail - will try some more with twinkle
http://www.murga-linux.com/puppy/viewto ... 837#558837

. . . will also try leaving messages on android phone perhaps
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:

#73 Post by smokey01 »

seaside wrote:
smokey01 wrote:
I guess clicking on X and making Psip minimize to the tray would be good except I have no idea how to program that, any ideas?
smokey01,

A possible option might be to make the dialog "undecorated" which would hide the minimize-close options.

Then a "quit" button with total close down code would assure a proper close. This would still allow a minimize/maximize toggle by clicking the tray item (in JWM).

Cheers,
s
Sounds like a reasonable solution. How do I do that?

Thanks

seaside
Posts: 934
Joined: Thu 12 Apr 2007, 00:19

#74 Post by seaside »

smokey01,

Something like this-

Code: Select all


export PSIPPY='
 <window decorated="false">
 <vbox>
  <frame PSIPPY wrapper>
   <tree>
    <label>PSIPPY</label>
    <height>250</height><width>200</width>
	<variable>PSIPPY</variable>	
    <input>echo "PSIPPY dialog here"</input>
   </tree>
  </frame>
 <hbox>
 <button>	
    <input file icon="gtk-quit"></input>
    <label>Quit</label>
    <action>echo "shut down code here"</action>
 </button>
 </hbox> </vbox></window>'
gtkdialog3 -p PSIPPY 
This would give you a window that couldn't be closed by mouse action (but could be by key combination alt-f4) and still allow moving the window by alt-lclick.

NOTE: I haven't looked at PSIPPY, so I don't know if you can even put a wrapper or a helper script around it.

Regards,
s
EDIT: Just had a chance to look at PSIPPY and the code would look like this

Code: Select all

export DIALOG='
<window decorated="false" window-position="1" icon-name="gtk-yes" width="800" BackgroundColor="ffffff">
Last edited by seaside on Thu 01 Sep 2011, 19:02, edited 1 time in total.

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

#75 Post by Caneri »

Hi All,

@lobster...I got the voice message loud and clear from Twinkle
@Grant...your voice was broken and low with rasp/clipping .

Well I just had a set back.
My older lappy lost the monitor and it's the only one that runs psip so far.

I tried Slacko but no joy on my kit. Tried Twinkle and no joy as well.

I may try to hook up to my digital HDTV via monitor cable to try repairs or test further.

Grrrrr...bad timing and I really liked that old lappy.

I still have a few days until Sunday so hopefully a solution will present itself....I wish I had a spare monitor but that kit went to Computers for Kids.....should have kept a monitor.

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

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

#76 Post by smokey01 »

seaside wrote:smokey01,

Something like this-

Code: Select all


export PSIPPY='
 <window decorated="false">
 <vbox>
  <frame PSIPPY wrapper>
   <tree>
    <label>PSIPPY</label>
    <height>250</height><width>200</width>
	<variable>PSIPPY</variable>	
    <input>echo "PSIPPY dialog here"</input>
   </tree>
  </frame>
 <hbox>
 <button>	
    <input file icon="gtk-quit"></input>
    <label>Quit</label>
    <action>echo "shut down code here"</action>
 </button>
 </hbox> </vbox></window>'
gtkdialog3 -p PSIPPY 
This would give you a window that couldn't be closed by mouse action (but could be by key combination alt-f4) and still allow moving the window by alt-lclick.

NOTE: I haven't looked at PSIPPY, so I don't know if you can even put a wrapper or a helper script around it.

Regards,
s
EDIT: Just had a chance to look at PSIPPY and the code would look like this

Code: Select all

export DIALOG='
<window decorated="false" window-position="1" icon-name="gtk-yes" width="800" BackgroundColor="ffffff">
seaside it worked fine. Thanks for that. I couldn't find any reference to "decorated" in my search on the web.

I think it would be nice to make it close fully from the X but your solution will do fine for the moment.

I might also remove, or hide from noobs, the other shut down options under the file menu.

It might be best to keep the options very limited for simplicity.

seaside
Posts: 934
Joined: Thu 12 Apr 2007, 00:19

#77 Post by seaside »

smokey01 wrote:
I think it would be nice to make it close fully from the X but your solution will do fine for the moment.

I might also remove, or hide from noobs, the other shut down options under the file menu.

It might be best to keep the options very limited for simplicity.
smokey01,

You could run it from a "helper script" like this -

Code: Select all

 
#!/bin/sh
Psippy (Gtkdialog)
--close code here--
exit
Then no matter how PSIPPY was closed, the close code would always run.

Regards,
s

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

#78 Post by smokey01 »

seaside wrote: smokey01,

You could run it from a "helper script" like this -

Code: Select all

 
#!/bin/sh
Psippy (Gtkdialog)
--close code here--
exit
Then no matter how PSIPPY was closed, the close code would always run.

Regards,
s
seaside your coding skills are obviously superior to mine. Are you able to provide the code.

I have had a look at Pmusic and studied the func_kill function which seems to kill all likely running process but my knowledge is limited to understand what is actually means.

I'm also not sure how the function is called from the X on the window.

In this case I guess we only need to kill pjsua.

Very happy to take advice and offerings.

It might even be useful to have a chat, on Psip no less.

Thanks

seaside
Posts: 934
Joined: Thu 12 Apr 2007, 00:19

#79 Post by seaside »

smokey01 wrote:
seaside wrote: smokey01,

You could run it from a "helper script" like this -

Code: Select all

 
#!/bin/sh
Psippy (Gtkdialog)
--close code here--
exit
Then no matter how PSIPPY was closed, the close code would always run.

Regards,
s
seaside your coding skills are obviously superior to mine. Are you able to provide the code.

I have had a look at Pmusic and studied the func_kill function which seems to kill all likely running process but my knowledge is limited to understand what is actually means.

I'm also not sure how the function is called from the X on the window.

In this case I guess we only need to kill pjsua.

Very happy to take advice and offerings.

It might even be useful to have a chat, on Psip no less.

Thanks
smokey01,

Yes, you need to kill psua which I assume is done by this line in the dialog "<action>'$PJAPPDIR'/func_shutdownpjsua</action>"
However, I don't see the additional "functions" file that contains the shutdown and other functions code?

As far as the "x close" of the window goes, if you use a "helper script" as above, when the Gtkdialog window is clicked to close, the lines following the "Psippy" command line of the script will execute the killing of psua. (hmmm. that sounds like a good title for a movie) :)

Regards,
s

dogle
Posts: 409
Joined: Thu 11 Oct 2007, 12:41

#80 Post by dogle »

The ekiga registration engine is broken (Captcha problems - not for the first time, I see).

I was sniffing ekiga because Iptel says
By default, voicemail2email is enabled for offline users and not answered calls.
Ye who have taken the plunge with Iptel, does the usage "enabled" mean that there is a user-accessible means to disable that garbage?

(If not, that could be a real PITA, IMHO especially if there be no way to deregister!). :-)

Post Reply