Puppy Phone - VOIP using SIP
- Lobster
- Official Crustacean
- Posts: 15522
- Joined: Wed 04 May 2005, 06:06
- Location: Paradox Realm
- Contact:
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!
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!
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:
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.
add the following line to /root/.psip/pjsua.cfg file:
Code: Select all
--snd-auto-close=0
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.
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?).
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?).
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.
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.
- Lobster
- Official Crustacean
- Posts: 15522
- Joined: Wed 04 May 2005, 06:06
- Location: Paradox Realm
- Contact:
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 . . .
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 371 times
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.
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.
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.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 . . .
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?
smokey01,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?
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
- Lobster
- Official Crustacean
- Posts: 15522
- Joined: Wed 04 May 2005, 06:06
- Location: Paradox Realm
- Contact:
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
- Lobster
- Official Crustacean
- Posts: 15522
- Joined: Wed 04 May 2005, 06:06
- Location: Paradox Realm
- Contact:
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
- 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
Sounds like a reasonable solution. How do I do that?seaside wrote:smokey01,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?
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
Thanks
smokey01,
Something like this-
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
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
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.
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
@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]
Chinese Proverb[/color]
seaside it worked fine. Thanks for that. I couldn't find any reference to "decorated" in my search on the web.seaside wrote:smokey01,
Something like this-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.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
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 thisCode: Select all
export DIALOG=' <window decorated="false" window-position="1" icon-name="gtk-yes" width="800" BackgroundColor="ffffff">
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,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.
You could run it from a "helper script" like this -
Code: Select all
#!/bin/sh
Psippy (Gtkdialog)
--close code here--
exit
Regards,
s
seaside your coding skills are obviously superior to mine. Are you able to provide the code.seaside wrote: smokey01,
You could run it from a "helper script" like this -Then no matter how PSIPPY was closed, the close code would always run.Code: Select all
#!/bin/sh Psippy (Gtkdialog) --close code here-- exit
Regards,
s
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,smokey01 wrote:seaside your coding skills are obviously superior to mine. Are you able to provide the code.seaside wrote: smokey01,
You could run it from a "helper script" like this -Then no matter how PSIPPY was closed, the close code would always run.Code: Select all
#!/bin/sh Psippy (Gtkdialog) --close code here-- exit
Regards,
s
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
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
The ekiga registration engine is broken (Captcha problems - not for the first time, I see).
I was sniffing ekiga because Iptel says
(If not, that could be a real PITA, IMHO especially if there be no way to deregister!). :-)
I was sniffing ekiga because Iptel says
Ye who have taken the plunge with Iptel, does the usage "enabled" mean that there is a user-accessible means to disable that garbage?By default, voicemail2email is enabled for offline users and not answered calls.
(If not, that could be a real PITA, IMHO especially if there be no way to deregister!). :-)