Home Forum Developers IP0x I can't get my IP02 to ring my analog Line on inbound calls

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


luckman212
useravatar
User Info

I can't get my IP02 to ring my analog Line on inbound calls

Hello,
I have an IP02 device which originally came with ATCOM firmware (purchased from Voiptel) and I have flashed it successfully to SwitchFin because the development of Voiptel SE firmware has halted since many months ago.  I used the latest

uImage-ip02-ip08-ui2.14.img
  from
http://www.switchvoice.com/files/uImage … ui2.14.img

Flash was easy via TFTP.  I reset to defaults after flashing via the gui.

I was able to get basic options set up and my SIP provider (callcentric) is registered & I can make outbound calls fine via the analog Port (I have 2 FXS ports in my IP02 unit). 

The problem is, I cannot make any INBOUND calls to the pbx.  When I call from outside, I get routed immediately to the IVR menu it says "congratulations, you have successfully installed asterisk blah blah".  I have defined my user (6001) and in incoming call rules I set the "catch-all" rule ('s') to forward directly to ext 6001.  Despite this, the phone does never ring.  I checked CDR report and I do see the inbound call is coming in fine but for some reason it is not routing correctly.   NOW, if during the recorded voice I break in and press '6001' then it does ring my phone and I can answer and talk normally, so I know the system & components work-  it seems to be some sort of config problem.

I am new to asterisk so I have no idea where to even check in the config files (extensions.conf??) to see where the problem might be.

Here are some screen shots I took of my config, please help if you have any ideas!!  thank you so much,
http://i41.tinypic.com/14azw4z.png
http://i42.tinypic.com/25z17w7.png
http://i44.tinypic.com/2h4i82s.png
http://i41.tinypic.com/25hh55t.png
http://i43.tinypic.com/vmr812.png
http://i39.tinypic.com/24mbx91.png
http://i44.tinypic.com/2lurk2q.png
http://i40.tinypic.com/15eakgx.png
http://i43.tinypic.com/2rxcm0x.png
http://i39.tinypic.com/dh4up1.png
http://i39.tinypic.com/29g0ilj.png
http://i43.tinypic.com/10eepv9.png


Administrator has disabled public posting
luckman212
useravatar
User Info

Re: I can't get my IP02 to ring my analog Line on inbound calls

p.s- I should also note that with the ATCOM firmware I was not able to make inbound calls either.  So this seems to be some very basic config problem with Astfin base in general.  I am not sure if it is only affecting analog/FXS ports because I only have analog equipment, no SIP phones.


Administrator has disabled public posting
Albi90
useravatar
User Info

Re: I can't get my IP02 to ring my analog Line on inbound calls

Hi luckman212

there are a few things you can try step one change your codec preferences in your trunk settings and extension settings to uLaw, aLaw, GSM as there is a problem with G.729 on the IP04/02 firmware (this is being fixed now) also if you tick sip in your extension config the extension should now show up in the ring group settings.

The mISDN section problem has been fixed in the newer versions of GUI 3.0 and GUI 4.0, how ever you would have to compile your own image from the SVN.

Let me know if it works, if not i can do some testing on my IP04 for you.

oh also remove extension 6001 as the operator extension as this may overide your incomming call rule.


Administrator has disabled public posting
admin
useravatar
User Info

Re: I can't get my IP02 to ring my analog Line on inbound calls

Hi luckman212,

Did you solve the problem already?
If not please ssh your IP02 and enter

asterisk -rvvvvvvvv

to connect to your asterisk.

Then do the problematic call and send us the information asterisk reports.
This information will help us to see what is going on.

Regards
Dimitar


Administrator has disabled public posting
luckman212
useravatar
User Info

Re: I can't get my IP02 to ring my analog Line on inbound calls

hello-
I did not have luck compiling from svn using Ubuntu 9 or 10, so I installed Fedora now and am trying to compile... should be done soon I hope!!

I will try again with latest trunk build.

what is the default ssh password for switchfin?  thanks!!


Administrator has disabled public posting
admin
useravatar
User Info

Re: I can't get my IP02 to ring my analog Line on inbound calls

Hi luckman212

There shouldn't be any problems with Ubuntu
Can you please share some more details so we help.

WEB user name/pass are admin/switchfin
ssh user name/pass are root/uClinux

Dimitar


Administrator has disabled public posting
luckman212
useravatar
User Info

Re: I can't get my IP02 to ring my analog Line on inbound calls

hello,
I gave up on Ubuntu.  too many missing modules & libraries.  I got so many errors during compile.

So I decide to use Fedora (that's what you are developing on right?)
now I am almost there, but during compile, I get this:

cc ../objects/tic.o ../objects/dump_entry.o  -I../progs -I../../ncurses-5.7/progs -DHAVE_CONFIG_H -I../../ncurses-5.7/progs/../include -I. -I../include  -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64  -DNDEBUG -O2 -g  --param max-inline-insns-single=1200 -static -L../lib -lncurses -L../lib -lncurses -dynamic  -ldl  -o tic
/usr/bin/ld: cannot find -ldl
collect2: ld returned 1 exit status
make[6]: *** [tic] Error 1
make[6]: Leaving directory `/home/luke/Desktop/switchfin/build_ip04/uClinux-dist/lib/ncurses/build-host-ncurses-5.7/progs'
make[5]: *** [host-build] Error 2
make[5]: Leaving directory `/home/luke/Desktop/switchfin/build_ip04/uClinux-dist/lib/ncurses'
make[4]: *** [build-host-ncurses-5.7/Makefile] Error 2
make[4]: Leaving directory `/home/luke/Desktop/switchfin/build_ip04/uClinux-dist/lib/ncurses'
make[3]: *** [ncurses] Error 2
make[3]: Leaving directory `/home/luke/Desktop/switchfin/build_ip04/uClinux-dist/lib'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/luke/Desktop/switchfin/build_ip04/uClinux-dist/lib'
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory `/home/luke/Desktop/switchfin/build_ip04/uClinux-dist'
make: *** [uClinux] Error 2
[root@fedora switchfin]#


don't know what to do next??


Administrator has disabled public posting
Albi90
useravatar
User Info

Re: I can't get my IP02 to ring my analog Line on inbound calls

Have you installed ncurses-devel


Administrator has disabled public posting
luckman212
useravatar
User Info

Re: I can't get my IP02 to ring my analog Line on inbound calls

you know what, I didn't.  (was that somewhere in the FAQ or README anywhere?  i didn't remember seeing it...)

anyway I did install this, but sadly I am still not able to compile:

ranlib ../lib/libncurses_g.a
make[7]: Leaving directory `/home/luke/Desktop/switchfin/build_ip04/uClinux-dist/lib/ncurses/build-host-ncurses-5.7/ncurses'
cc ../objects/tic.o ../objects/dump_entry.o  -I../progs -I../../ncurses-5.7/progs -DHAVE_CONFIG_H -I../../ncurses-5.7/progs/../include -I. -I../include  -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64  -DNDEBUG -O2 -g  --param max-inline-insns-single=1200 -static -L../lib -lncurses -L../lib -lncurses -dynamic  -ldl  -o tic
/usr/bin/ld: cannot find -ldl
collect2: ld returned 1 exit status
make[6]: *** [tic] Error 1
make[6]: Leaving directory `/home/luke/Desktop/switchfin/build_ip04/uClinux-dist/lib/ncurses/build-host-ncurses-5.7/progs'
make[5]: *** [host-build] Error 2
make[5]: Leaving directory `/home/luke/Desktop/switchfin/build_ip04/uClinux-dist/lib/ncurses'
make[4]: *** [build-host-ncurses-5.7/Makefile] Error 2
make[4]: Leaving directory `/home/luke/Desktop/switchfin/build_ip04/uClinux-dist/lib/ncurses'
make[3]: *** [ncurses] Error 2
make[3]: Leaving directory `/home/luke/Desktop/switchfin/build_ip04/uClinux-dist/lib'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/luke/Desktop/switchfin/build_ip04/uClinux-dist/lib'
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory `/home/luke/Desktop/switchfin/build_ip04/uClinux-dist'
make: *** [uClinux] Error 2
[luke@fedora switchfin]$

are there any other things I might be missing here?


Administrator has disabled public posting
admin
useravatar
User Info

Re: I can't get my IP02 to ring my analog Line on inbound calls

Hi luckman212,

Did you fix this?

Regards
Dimitar


Administrator has disabled public posting
luckman212
useravatar
User Info

Re: I can't get my IP02 to ring my analog Line on inbound calls

I was able to compile yes (I emailed you) using Ubuntu 10.04 but as of yesterday I have bricked my ip02.  I compiled trunk svn build 119 using options asterisk 1.6 + switchfin gui 4.0 and when I uploaded this image to my ip02 (reset all settings to default) it seemed to accept it and I can ping 192.168.1.100 but there is no webserver accepting connections.  so I have to hook up my serial console again and see what happened.  :-(

my main problem at this point is there are too many bugs in the GUI so it is hard to get the configuration correct.  For example with the Outgoing Call Rules as well as the Voice Menus (impossible to select the correct sound files from the drop down menu-- seems like a javascript issue?) so I decided to again try for the 4.0 gui since I guess the majority of the development will go towards that.  bUt now I have basically bricked my ip02 for now.  I have to find my serial console so I can hopefully restore it.


Administrator has disabled public posting
Albi90
useravatar
User Info

Re: I can't get my IP02 to ring my analog Line on inbound calls

Hi luckman212

Your IP02 is far from bricked, the asterisk 1.6 trunk has a few problems to access the GUI 4.0 point your browser to http://192.168.1.100/static/config/index.html

As asterisk 1.6 breaks the redirect, this should get you into the GUI but be aware there is an issue with asterisk 1.6 piping shell cmds and you will be unable to flash the firmware from the GUI.

I would sugest you update to the latest SVN and rebuild using your uImage using asterisk 1.4 until the 1.6 issues are sorted, you can then flash the IP02 by ftp'ing (winscp supports ftp) into 192.168.1.100 and palcing the new uImage-md5 in /persistent/imageupdate and rename it to uImage.

Then just reboot and your IP02 should be re-flashed.


Administrator has disabled public posting
luckman212
useravatar
User Info

Re: I can't get my IP02 to ring my analog Line on inbound calls

hi guys, thanks for the help.  Unfortunately, even though my ip02 is responding to PING at 192.168.1.100, I cannot telnet, SSH, or FTP to the box.  Also, the webserver is not running (I get a timeout, Not a 404) so even attempting to manually go to the redirect site is not working.   Not sure what went wrong.  Hopefully I can recover using uBoot  + TFTP.

so is it OK if I compile using trunk + Asterisk 1.4 + GUI 4.0?


Administrator has disabled public posting
Albi90
useravatar
User Info

Re: I can't get my IP02 to ring my analog Line on inbound calls

Asterisk 1.4 and GUI 4.0 should be stable, although we are constantly updating both the GUI and the OS.  If you have any problems let us know as we cant fix what we cant find.

If you have any problems/errors with the GUI 4.0 please PM me so i can fix them.


Administrator has disabled public posting
luckman212
useravatar
User Info

Re: I can't get my IP02 to ring my analog Line on inbound calls

ok thanks, I will compile today and report back!


Administrator has disabled public posting
luckman212
useravatar
User Info

Re: I can't get my IP02 to ring my analog Line on inbound calls

Hello, ok I have compiled svn trunk v124 (i saw 125 was just committed but, too late I missed it!)

anyway, I had to flash with uBoot and re-do all settings.
this time I chose Asterisk 1.4 + SF GUI 4.0, nothing else.
build compiled easily and loaded successfully. big_smile

the GUI 4.0 is coming along nice!! almost all functions were working correctly, including status page, hardware detection, extensions, etc.  None of this was working before and now its working, so these more recent builds are getting very much better!  I really love the look & function of v4.0 GUI!! smile

I did have some problems however--- and one of them is a "show stopper" (cannot answer any inbound calls):

1) inbound calls go to "user is unavailable" (SIP-REJECT) message from my provider.  I checked 'asterisk -rvvvvv' from the RS232 console and then made an inbound call which results in:

Code:

[May 17 18:45:46] NOTICE[314]: chan_sip.c:15144 handle_request_invite: Call from '17772601691' to extension 's' rejected because extension not found.

Here are my incoming call rules
http://i44.tinypic.com/hsly74.png
so you can see I do have an 's' catch-all defined and it points to my Voice Menu.    So, not sure what is wrong-- this was working well with previous build svn 119 + GUI 3.0.   If I knew the Asterisk command-line config better I am sure I could probably spot the problem but, I am not that good (yet).


2) clicking on "Ring Groups - New RingGroup" button does nothing.  (Browser reports JavaScript error tested in Firefox + IE:  'rgs_list' is undefined javascript error in ringgroups.html)

3) Clicking on "Voice Menu Prompts" causes stack dump the first time it is executed.  Not sure why, and I think after reboot it is ok.  But I just wanted to report it.  output below:

Code:

WARNING: at net/sched/sch_generic.c:226 _dev_watchdog+0x1ec/0x1f4()

NETDEV WATCHDOG: eth0 (dm9000): transmit timed out
Modules linked in: wcfxs dahdi crc_ccitt sport_interface bfsi
Stack info:
SP: [0x001b1cbc] 
FP: (0x001b1eb4)
Memory from 0x001b1cb0 to 001b2000
001b1cb0: 00000000  001b1cbc  001a01e4 [0000c960]<0000c964> 001b1cdc  0017b580  00000000
001b1cd0: 0017b580  000000e2  001b1cdc  7665645f  7461775f  6f646863  78302b67  2f636531
001b1cf0: 66317830  00000034  acfc1499  00000095  001b1d2c <00009114> 001b1d2c <0000917e>
001b1d10: 02ae492c  00000000  00195438  00000001 <00008232><010fef00><010fef00> 001b1d58
001b1d30: 001b1d58  001b1d58 <00008232> 02ae4900  02ae4900  00000003  00000003  001b1d68
001b1d50: 00000000  31f0ed00  001b1d70 <00008304> 00195408  001b1d88  00000000  02abcf2c
001b1d70: 001b1d8c  001b1d8c <00009500> 0284e52c  0284e538  00000000  0000001f  001b1dcc
001b1d90:<0001c9ce> 02ac3fb8  0025c068  00000000  00000001  0000fff8  fff80000 <000ede68>
001b1db0: ffffffff  00000100  001a3d20  001b1de0 <000faba8> 001a5164  ffffffff  00000100
001b1dd0: 001a3d20  00494b58  004391a0  001908a4  02ad2800  001b1de8  30396d64  00003030
001b1df0: 0000001f  00000009  0019b640  00000000  00000000  00000000  00000000  24537fe2
001b1e10: 00000000  001b1e34 <00014728> 00000000  001b1e54 <00014328><000143c4> 0019a28c
001b1e30: 001b1e4c  000fa9bc  001b0000  001a3d20 <ffa08424> 0019b620  00000006  001b1e4c
001b1e50: 001b1e4c  00000001 <00010da6> 0019a17c  001b0000  0019a118  00000001  00000004
001b1e70: 00000100 <00029050> 001a5f14  00000006  001908a4  00000006  001a3d20 <ffa08302>
001b1e90: 0019e780  001b0000  001908a4  00000006  00000000  00000000  00000000  0298b606
001b1eb0: ffa0936c (00000000)<ffa08ba8> ffc00014  00190004  00000000  00000000  00000000
001b1ed0: 00000000  ffa08244  00008050  00002000  00000000  012f8000  002cd8ac  ffa08244
001b1ef0:<ffa08140> 00000006  02002020  0068c2ff  ffa092f6  0068c2f2  ffa092f6  00000043
001b1f10: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000
001b1f30: 00000000  00000000  00000000  00000000  00000000  02a28edc  02a28ed4  0059e4b0
001b1f50: 00000000  00000000  00000000  010bb040  010bb030  001b2000  001a3d20  ffa08224
001b1f70: 001b0000  001908a4  001a3d20  001b0000  ffa08930  00190004  00000000  00000000
001b1f90: 00000000  00000014  00000002  0000ffff  0000ffff  0000ffff  ffa08930  00000006
001b1fb0: 00190004  00000000  00000000  001b26d6  0019cabc  001c3a04  00190010  00190004
001b1fd0: 00000000  001c3a04  0018f888  00000015  001b20a8  001c6454  001b2000  001b9214
001b1ff0: 00000000  00000000  00000000  ff900000
Return addresses in stack:
    address : 
    address : 
    address : 
    address : 
    address : 
    address : 
    address : 
    address : 
    address : 
    address : 
    address : 
    address : 
    address : 
    address : 
    address : 
    address : 
    address : 
    address : 
    address : 
    address : 
   frame  1 : 
    address : 
---[ end trace 8c07d1d363292b5e ]---


Administrator has disabled public posting
Albi90
useravatar
User Info

Re: I can't get my IP02 to ring my analog Line on inbound calls

Hi luckman212 i will fix the ring group issue tonight as i have to commit a few changes to enable voice recording as for the inbound calls issue is it possible for you to post you extensions.conf or email it to me jason at ii-tec.com

you can find it located in /etc/asterisk/extensions.conf

Thanks


Administrator has disabled public posting
luckman212
useravatar
User Info

Re: I can't get my IP02 to ring my analog Line on inbound calls

ok thanks!  sure, I have emailed you the file...


Administrator has disabled public posting
Albi90
useravatar
User Info

Re: I can't get my IP02 to ring my analog Line on inbound calls

The ring group issue should be solved in the latest SVN


Administrator has disabled public posting
Albi90
useravatar
User Info

Re: I can't get my IP02 to ring my analog Line on inbound calls

DID issues caused by incorrect context naming should be fixed in the latest SVN


Administrator has disabled public posting
luckman212
useravatar
User Info

Re: I can't get my IP02 to ring my analog Line on inbound calls

ok, thats is great news!
I will compile and flash later today,
will report back later,
cheers


Administrator has disabled public posting
admin
useravatar
User Info

Re: I can't get my IP02 to ring my analog Line on inbound calls

Hi Luke,

Thank you for your test efforts.

WARNING: at net/sched/sch_generic.c:226 _dev_watchdog+0x1ec/0x1f4()
NETDEV WATCHDOG: eth0 (dm9000): transmit timed out
Modules linked in: wcfxs dahdi crc_ccitt sport_interface bfsi
...

This core dump is a known issue in the bfsi driver so in the IP0x family.
It doesn't affect the normal PBX operation other then blocking the Ethernet flow for the watchdog timeout period. It appears very rarely.

This is scheduled to be solved in the next few days.

Best Regards
Dimitar


Administrator has disabled public posting
luckman212
useravatar
User Info

Re: I can't get my IP02 to ring my analog Line on inbound calls

ok, great.  I have just compiled a fresh svn 130 uImage.  Should I revert to defaults after flashing it or is it safe to keep my config from svn 124?


Administrator has disabled public posting
admin
useravatar
User Info

Re: I can't get my IP02 to ring my analog Line on inbound calls

Hi Luke,

Jason is adjusting the configs files now so as a rule of thumb you better reset the configs during the re-flashing.

Most of the time it is not needed but to be safe I would advice you do it.
Even though you will have to re-configure the PBX again.

Cheers
Dimitar


Administrator has disabled public posting
luckman212
useravatar
User Info

Re: I can't get my IP02 to ring my analog Line on inbound calls

not a problem, I will make a note of my settings and then reset to defaults.


Administrator has disabled public posting
luckman212
useravatar
User Info

Re: I can't get my IP02 to ring my analog Line on inbound calls

Hello guys,
well I am back to make some more reports!

Now I've compiled uImage using svn trunk 132 from today.
The GUI 4.0 keeps getting better, I really love it!:=D


So far I have not had the problem with incorrect DID contexts so that is good.  I am noticing some issues though, here we go:

1) analog extension I have defined, after saving & then going back in to Edit, I find that it has blanked out the flash /rxflash time setting, either one or the other or sometimes both.  They become null.  If I set them & save they usually stay but then later they get cleared out again.  Not sure if these are even important settings? here's a screenshot
http://i46.tinypic.com/de5u28.png

2) after saving changes to Voice Menus, I often get redirected by the GUI back to "Home" page.  This is unexpected.

3) there is included in the "[default]" context of extensions.conf the "demo" context -- is this correct? (pic below)
http://i45.tinypic.com/m8nwuf.png

I think this is problematic, because until I removed it, my voice menu was rolling over into the demo after playing the initial greeting.

3) Most important:  there is an echo on the line!  Inbound caller hears himself speaking, I tested this from several different outside phones.  Is there some way to control the echo cancellation? is this  a compile-time setting??  Do I need different FXS hardware?  (I use IP02 with Dual FXS analog module from atcom)

thank you again as always!!


Administrator has disabled public posting
admin
useravatar
User Info

Re: I can't get my IP02 to ring my analog Line on inbound calls

Hi Luke,

Yes 'demo' is typically included in the default section.
I think your problem with the voice menu is somewhere else.
Can you please attach your complete extension.conf

In your image the Oslec line echo canceler is not included and this is the reason for the echo. Your hardware is completely OK. 

Please give us few days to fix this.

Cheers
Dimitar


Administrator has disabled public posting
Albi90
useravatar
User Info

Re: I can't get my IP02 to ring my analog Line on inbound calls

Hi Luke

I will also look into the rxflash issue in the next few days in the mean time you can add these values in users.conf under the required user context just add rxflash = 1250

Thanks
Jason


Administrator has disabled public posting
luckman212
useravatar
User Info

Re: I can't get my IP02 to ring my analog Line on inbound calls

thank you guys. 
so for the echo cancellation, is it something I can fix at compile-time or do I have to wait for a fix to get into the svn?  I do not need to change my hardware?  thanks again.

oh and re: above msg from Dimitar, here is my complete extensions.conf
extensions.conf


Administrator has disabled public posting
admin
useravatar
User Info

Re: I can't get my IP02 to ring my analog Line on inbound calls

Hi Luke,

I have added Oslec in Switchfin
Oslec is one of the best open source LEC available due to David Rowe.

Can you compile the latest trunk and confirm if it solves your echo issues.

In your extensions.conf the paging masks the voice menu extensions which are in the range [7000 - 7100]

exten => _7XXX,1,Macro(page,SIP/${EXTEN})

This is a bug which we will fix. For now you may comment the above line

Cheers
Dimitar


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: 382
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