Home Forum Developers IP0x Oslec for IP0x

JRPassphrase Registration Control

In order to register on this site, you must first submit the passphrase below.

TODO list for each hardware target can be found as sticky topic in the corresponding forum


admin
useravatar
User Info

Oslec for IP0x

Hi Guys,

I have tested Oslec a bit.
I have spent some time with GUI 4.0 and I would say that it become really cool smile !!!
Thank you Jason for this great GUI I think we all should try to finalize it and migrate to it!   

I saw a small issue in the GUI. 'echocan' should become 'echocanceller' in the system.conf
I dare to commit the update so now I think the GUI behaves better in terms of e/c setting. Jason can you please confirm that I have not broke something. 

On 'hardware setting' update sometimes I get 'loading ...' forever. Not sure why it is.

Some suggestions related with the GUI:
When we change something related with FXS/FXO it is enough to execute 'CLI> dahdi restart' instead full box restart.
For e/c update i think it is enough to execute 'dahdi_cfg' and then 'CLI> dahdi restart'   

To check if you have e/c enabled just check 'CLI> dahdi show channel chan_num' during the active call. You should see 'Echo Cancellation: 128 taps, currently ON' if it is enabled.

Luke you have echo in your setup. Can you please confirm that enabling of Oslec makes a difference for you.

And once again lets forward our regards to David Rowe who made this great Open Source Line Echo Canceller (OSLEC)

Cheers
Dimitar



Edited By:  admin
May-26-10 00:47:22

Administrator has disabled public posting
luckman212
useravatar
User Info

Re: Oslec for IP0x

sounds good Dimitar I will compile svn 161 and report back shortly!


Administrator has disabled public posting
admin
useravatar
User Info

Re: Oslec for IP0x

Hi Luke,

Actually you can just do

make asterisk-gui
make image

Cheers
Dimitar


Administrator has disabled public posting
luckman212
useravatar
User Info

Re: Oslec for IP0x

Hi Dimitar!
i hope you're sleeping now, here's my latest news:

I checked out svn 161 and as you said, ran make asterisk-gui and then make image.  I flashed this to my ip02 but I still get no dialtone & not able to make any calls with e/c enabled.  I rebooted several times.

do I have to do a full hard-reset on the device (wipe all settings) to get this to work? I was thinking that I would not have to do this since not much was changed... but let me know if you think that will fix it.

also, one more thing (gui related) is that even though both checkboxes are "enabled" for e/c on FXS port 1,2  there is still a red circle next to it which indicates it's disabled.  Maybe this is somehow related?  2 screenshots below

http://i.imgur.com/ADrsP.png http://i.imgur.com/hS33f.png

cheers


Administrator has disabled public posting
Albi90
useravatar
User Info

Re: Oslec for IP0x

Hi Luke

You may have to remove the echocan=
line from your system.conf under /etc/dahdi/

hope this work.

In the next few days I will fix the restart issue, when I get home in a few hrs I can check the red dot issue.


Administrator has disabled public posting
admin
useravatar
User Info

Re: Oslec for IP0x

Hi Luke,

I have tested with clean asterisk configurations and the e/c was working pretty well. (Somethimes it was necesery to restart the box after enable /disable the e/c but other then that the e/c red/green dot was reflecting properly for me after reboot)

To reset asterisk config you may delete the file

/persistent/.unpacked

Or 'reset to defaults' in the GUI 4.0 'options' window (not 100% sure if it is working in GUI 4.0)

In the default asterisk configs the e/c is enabled.

Regards
Dimitar


Administrator has disabled public posting
luckman212
useravatar
User Info

Re: Oslec for IP0x

Hi Dimitar,
well I don't know what may be wrong with my setup then... because I did delete /persistent/.unpacked and rebooted, which did reset everything back to defaults.  But I then tried to enable e/c again and again I get no dial tone after enabling it, and red dot stays on despite checkmarks enabled in hardware setup.


Administrator has disabled public posting
admin
useravatar
User Info

Re: Oslec for IP0x

Hi Luke,

can you provide me with ssh and http access to your box
I can take a look in about 1.5h.

Regards
Dimitar


Administrator has disabled public posting
luckman212
useravatar
User Info

Re: Oslec for IP0x

Yes I can, I will email you the details as soon as I have it set up


Administrator has disabled public posting
admin
useravatar
User Info

Re: Oslec for IP0x

Hi Luke,

I have just logged in your box and immediately realize what could be the reason of your problems.
I am answering here as it may be useful for others.

I. Your default asterisk configs are not updated in the uImage. ====================================

I've told you to do
make asterisk-gui
make image

but I forgot that we have updated the default configs so it is actually necessary to do:
make asterisk-gui
make persistent
make image

|| Your asterisk-gui is not updated. =======================================================
Switchfin containing few local components as you can see from the link below
http://switchfin.svn.sourceforge.net/viewvc/switchfin/
asterisk-gui/
lec/
mISDN/
mISDNuser/
switchfin/

Most of the time you need to update only the main component but somethimes we change others as well.
Switchfin is doing the following thinsg during building:

1. Check out the above 4 local components (as well as many other fixed external components) in swithcfin/dl/ folder
2. Copy those components from swithcfin/dl/ into switchfin/build_xx/ and compiles them there

To update your asterisk gui you need to go in switchfin/dl/asterisk-gui-4.0/ and do 'svn up' , then   
make asterisk-gui
make image

will do the job.

Recently we have updated only 'lec' and 'asterisk-gui'  but 'lec' is not relevant for IP0x.


Moral: =====================================================================
1. To be sure that you have the recent Switchfin you need to execute 'svn up' in switchfin/ folder
2. To be 100% sure you use the recent components you need to either delete switchfin/dl/ (not advisable as after that you will need to download everything again) or go to switchfin/dl/'component' and do 'svn up' for all of the above 4 components. (for IP0x only 'asterisk-gui' is relevant)   
3. To be 100% sure to compile everything you need to delete /switchfin/build_xx/ and do:
make
make image

I hope I have managed to explain smile

Cheers
Dimitar


Administrator has disabled public posting
luckman212
useravatar
User Info

Re: Oslec for IP0x

ok thanks Dimitar, Yes i understand what you have explained.  But just to be on the safe side I think I am just going to delete the whole switchfin folder and check out a fresh trunk and build again from scratch.

in the mean time, do you still need access to my ip-pbx?  or can I close the firewall?  thx again!!


Administrator has disabled public posting
admin
useravatar
User Info

Re: Oslec for IP0x

Hi Luke,

wait I am almost sure that you need to do only

'svn up' in switchfin/dl/asterisk-gui-4.0/ and then
make asterisk-gui
make persistent
make image

Try this and please reset your configs during uImage update.
If you still have issues then you can delete everything

Cheers
Dimitar


Administrator has disabled public posting
admin
useravatar
User Info

Re: Oslec for IP0x

Nope I don't need your box anymore please close the ports.


Administrator has disabled public posting
luckman212
useravatar
User Info

Re: Oslec for IP0x

haha its too late I alerady started compiling smile I will let you know the results shortly.....


Administrator has disabled public posting
admin
useravatar
User Info

Re: Oslec for IP0x

Cheers beer ;-)


Administrator has disabled public posting
luckman212
useravatar
User Info

Re: Oslec for IP0x

ahhhhhh it is almost there!!
I completely deleted my switchfin folder, re-downloaded & rebuilt svn 161 from scratch.  Flashed my box, reset all to defaults.  Step by step went through added trunks, in/out call rules, extensions, etc.  All was looking good.  Enabled E/C on the hardware page (but showing red dot still) and rebooted.

again I have no dial tone & unable to make / receive calls........ sad
I turned off E/C and all was working again.

Then I turned on E/C and reboot again, and then I was able to get dialtone  & make calls!  so something is not right in the GUI still I think.      A clue may be that after rebooting the box the 2nd time, I was given this dialog box, which I have never seen before:

http://i.imgur.com/swI4e.png

and also right away in top of the GUI I saw the "apply changes" button even though I had not made any changes yet. I think if I will press "Apply Changes" now then the dialtone will stop working again.

is there some way from console that I can determine if E/C is actually enabled? because in GUI it shows the red dot no matter what.  thanks again Dimitar!


Administrator has disabled public posting
luckman212
useravatar
User Info

Re: Oslec for IP0x

well actually I read some of your older comments and I noticed you already told me how to test if EC was working... so I opened the console and what do you know! it seems to be working, at least according to this output:

IP04*CLI> dahdi show channel 1
Channel: 1
File Descriptor: 12
Span: 1
Extension:
Dialing: no
Context: DLPN_DialPlan1
Caller ID: 6000
Calling TON: 0
Caller ID name: Luke
Destroy: 0
InAlarm: 0
Signalling Type: FXO Kewlstart
Radio: 0
Owner: DAHDI/1-1
Real: DAHDI/1-1
Callwait: <None>
Threeway: <None>
Confno: -1
Propagated Conference: -1
Real in conference: 0
DSP: yes
Relax DTMF: no
Dialing/CallwaitCAS: 0/0
Default law: ulaw
Fax Handled: no
Pulse phone: no
Echo Cancellation: 128 taps, currently ON
DSP cycles last: 93465 worst: 500589 average: 115101 sample: 0
Actual Confinfo: Num/0, Mode/0x0000
Actual Confmute: No
Hookstate (FXS only): Offhook


So yes there is still some issue in the GUI being "out of sync with reality" but somehow it is working now.  Maybe Jason will be able to figure out the GUI issue in a coming update.

cheers!! smile


Administrator has disabled public posting
Albi90
useravatar
User Info

Re: Oslec for IP0x

Hi Luke

I have planned to improve a few things in the GUI this weekend and will put the E/C settings on my list to check and fix.

I’m glad its now working any other issues you encounter please don’t hesitate to ask.


Administrator has disabled public posting
admin
useravatar
User Info

Re: Oslec for IP0x

Hi Luke,

What about the Oslec performance?
Does it solve your echo issues?

Regards
Dimitar


Administrator has disabled public posting
luckman212
useravatar
User Info

Re: Oslec for IP0x

haha.. it was very late so actually I didn't make any calls.  I will test today and definitely let you guys know.  Thanks again so much for all of the help wink


Administrator has disabled public posting
luckman212
useravatar
User Info

Re: Oslec for IP0x

well I can finally say this is really working nice!!
oslec echo cancelling is definitely working, and its really fantastic.
I want to again thank Dimitar & Jason for your amazing work.
I am up and running on svn 161
cool
have a great weekend !!!!


Administrator has disabled public posting
Albi90
useravatar
User Info

Re: Oslec for IP0x

Hi Guys

The OSLEC indicator in hardware config should now be working in the SVN head (however I haven’t tested it with dual port cards like yours Luke).

Also there is no need to restart after hardware changes and restoring backups from the GUI.

Thanks
Jason


Administrator has disabled public posting
luckman212
useravatar
User Info

Re: Oslec for IP0x

This is really super-- builds are really starting to come together now.  I just flashed up to svn 178:  and for the first time I'm seeing the green dots!
http://i.imgur.com/KKLng.png

I spent the last 2 days looking into Outlook integration and finally got ActivaTSP set up properly and I have Click-To-Dial from Outlook now, which is so fantastic cool

I am putting together a small list of issues which I will post in the next couple of days.  But thanks to all the hard work you guys are putting in, my ip02 is finally useful after almost 6 months sitting in a box collecting dust.  Bravo!!


Administrator has disabled public posting
admin
useravatar
User Info

Re: Oslec for IP0x

Thank you Luke for the good words smile
Dimitar


Administrator has disabled public posting
luckman212
useravatar
User Info

Re: Oslec for IP0x

hi guys, well I have posted my list into a new thread
http://switchfin.org/index.php?option=c … ;Itemid=54


Administrator has disabled public posting

Board Info

Board Stats:   Total Users: 2587  Total Topics: 299  Total Polls: 1  Total Posts: 1727  Dormant
User Info:   Newest User :  user2553   Members Online: 0   Guests Online: 199
Online  There are no members online
Topic
New
Locked
Topic
New
Locked
Sticky
Active
New/Active
Sticky
Active
New/Active
New/Closed
New Sticky
Closed/Active
New/Locked
New Sticky
Locked/Active
Active/Sticky
Sticky/Locked
Sticky Active Locked
Active/Sticky
Sticky/Locked
Sticky/Active/Locked