Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - pw44

Pages: 1 [2] 3 4 ... 45
Users / Asterisk AST_CONFIG - lost entries
« on: March 01, 2013, 11:54:58 pm »
today i discovered that some directives i've inserted into the asteriks ast_table were lost, after an update (don' t know which).
All the entries regarding NAT, EXTERNIP, LOCALNET and so on, to enable remote extensions simply disapeared.
As i had the external extension working, and after for coincidence updated ios and softphone i did for the last four weeks try to fix the problem on the softphone configs, with not luck, until i looked into the asterisk config to discover my directives were not there.
Would be nice if the updates do not delete the custom entries.
Best regards.

Developers / Re: Missing asterisk directives.
« on: March 01, 2013, 11:18:40 pm »

installing my sip line (voipcheap), i did note it did not register.
So, looking into the database, table ast_config, i noted that some directives were missing.

Code: [Select]
83 0 18 0 sip.conf general alwaysauthreject yes
85 0 18 0 sip.conf general nat                        yes
86 0 60 0 sip.conf general externhost
87 0 5 0 sip.conf general externrefresh        5
88 0 60 0 sip.conf general localnet     
89 0 9 0 sip.conf general allow                g729
90 0 10 0 sip.conf general allow                g723
91 0 101 0 sip.conf general register      
The 83 is very inportant for fail2ban and 85-88 to have the NAT.
I also would like to know which are the rules for cat_metric and var_metric.

Anyway, my sip line register, but i keep getting
Code: [Select]
> doing dnsmgr_lookup for ''
       > doing dnsmgr_lookup for ''
       > doing dnsmgr_lookup for ''
       > doing dnsmgr_lookup for ''
       > doing dnsmgr_lookup for ''
in the asterisk verbose, i can place calls, but no sound incoming and outgoing and receiving a call is rejected with "no service message" in my asterisk.

Way to solve it?


After updating asterisk, all the entries i did were gone :(
No more NAT, externip, etc....

Users / Re: Asterisk CDR registering error.
« on: March 01, 2013, 12:35:39 am »
apt-get install --reinstall lmce-asterisk done. What's next?

Users / Re: Asterisk CDR registering error.
« on: February 28, 2013, 10:47:39 am »
Your is a 5 month old version.  Did apt-get report any packages held back?


No, apt-get report did no report held back.

Users / Re: Asterisk CDR registering error.
« on: February 27, 2013, 08:45:01 pm »
This is what i have in my The last apt-get update && upgrade is three days ago.

LINESSQL="$LINESSQL INSERT INTO $DB_Extensions_Table (context,exten,priority,app,appdata) VALUES \
        ('$context','$phonenumber','1','Set','__FROM_DID=\${EXTEN}'), \
        ('$context','$phonenumber','3','gotoif','\$[\"\${PAI}\" = \"\"] ? 4:8'), \
        ('$context','$phonenumber','4','Set','CALLERID(num)=\${CALLERID(ani)}'), \
        ('$context','$phonenumber','5','Noop','Incoming call from \${CALLERID(num)}'), \
        ('$context','$phonenumber','6','Set','FAX_RX='), \
        ('$context','$phonenumber','8','noop','Using p-asserted-id SIP header: ${PAI}'),\
        ('$context','$phonenumber','9','set','tmpcid=\${CUT(PAI,:,2)}'), \
        ('$context','$phonenumber','10','Set','tmpcid=\${CUT(tmpcid,@,1)}'), \
        ('$context','$phonenumber','12','Noop','Incoming call from \${CALLERID(num)}'),\
        ('$context','$phonenumber','13','Set','FAX_RX='), \

It's different from yours.

Users / Asterisk CDR registering error.
« on: February 26, 2013, 12:23:34 am »
browsing the Asterisk CDR table, i did note the it registers wrong. Incoming calls coming via my SPA3102 is registered as caller id "Unknown Caller" <2122498618>, which is my POTS number.
Code: [Select]
calldate clid src dst dcontext channel dstchannel lastapp lastdata duration billsec disposition amaflags accountcode userfield uniqueid
2013-02-24 20:46:54 "Unknown Caller" <2122498618> 2122498618 2122498618 from-trunk SIP/2122498618-00000009 Local/204@trusted-cac0;1 Set TIMEOUT(response)=20 41 11 ANSWERED 3     1361749614.37
Is this error known?

Users / Re: Asterisk Security
« on: February 23, 2013, 11:15:25 pm »
Wiki was updated for asterisk 1.8. As asterisk 1.8 logs includes the host IP and the port, fail2ban was not blocking attackers IP.
For the ones using lmce 1004, please update the fail2ban configuration file according the the wiki example.
For lmce 810, no change is needed.

Users / Re: 10.04 Telecom problem
« on: February 23, 2013, 11:02:33 pm »
I also have 3 lines configured, but would be nicer to have a way to define a dialplan, instead of having 3 dialout prefixes :(.

Users / Re: Asterisk Security
« on: January 13, 2013, 11:40:07 pm »
so I failed on the second step:

/etc/asterisk/sip.conf doesn't exist

You can enter it in the asterisk database, table ast_config, mine looks like:
    Edit    Delete    83    0    18    0    sip.conf    general    alwaysauthreject    yes

Users / Re: [SOLVED] Voicemail in 1004
« on: January 11, 2013, 08:46:09 pm »
I remember i corrected the permissions twice after install and updates.

Users / Re: Asterisk Security
« on: January 11, 2013, 08:42:27 pm »

Can you confirm that the wiki page for this is correct?

should the ignore IP line look like:

ignoreip =

The wiki is correct, i tested it again with lmce 10.04. I created it while using lmce 8.10.
The ignoreip will make fail2ban ignore the given ip's or blocks, so ip's in your network will not be blocked by fail2ban in case of successive failed tries..

Users / CDR not showing incoming numbers.
« on: December 15, 2012, 04:05:28 pm »
i did note that the CDR records of asterisk only shown the trunk numbers, not the dialed or incoming calling numbers.
Best regards!

Users / Re: No VPN Connection on 10.04
« on: December 11, 2012, 09:56:11 pm »
Frankly speaking, i gave up with ipsec/l2tp.
My setup is:
ADSL <------>  Tomato router <----> external NIC LMCE <-----> Internal NIC <-----> Home network.
On my tomato: UDP 500, 1701 and 4500 forward to external NIC
On my LMCE Firewall: 500 and 4500.
I did read a ton of tutorials, had examples, but got it working only 2 times for less than 3 minutes each.
That's all.
I will set up the old pptp, which i had working on my 8.10 box with no glitch, but after vacation.

Users / Re: No VPN Connection on 10.04
« on: December 06, 2012, 07:19:45 pm »
ipsec maybe working, but xl2tpd is unreliable..... could not make it work for more than 2 minutes and repeat it.... i only got it working 2 times, for less than 2 minutes, in a universe of more than 100 tries.

Users / Re: FreePbx
« on: December 05, 2012, 10:02:10 pm »

instead of posting it to the wiki, see if you can create a pnp script for the SPA. Look at the grandstream perl scripts how it is done.

Posde, i did not forget the issue. Searching, there is one way, but it's a backup done by saving the webpage of the spa3102 and editing some parameters and then loading the page again.
I'm not sure if this is a reliable solution. I will keep you posted.

Pages: 1 [2] 3 4 ... 45