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
16
Users / Asterisk AST_CONFIG - lost entries
« on: March 01, 2013, 11:54:58 pm »
Hya,
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.

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

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        mydyndns.homeunix.org
87 0 5 0 sip.conf general externrefresh        5
88 0 60 0 sip.conf general localnet               192.168.80.0/255.255.255.0
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                pwollny:XXXXXXXXX@sip.voipcheap.com/2062036594
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 'sip.voipcheap.com'
       > doing dnsmgr_lookup for 'sip.voipcheap.com'
       > doing dnsmgr_lookup for 'sip.voipcheap.com'
       > doing dnsmgr_lookup for 'sip.voipcheap.com'
       > doing dnsmgr_lookup for 'sip.voipcheap.com'
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?

TIA




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

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

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

J.



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

20
Users / Re: Asterisk CDR registering error.
« on: February 27, 2013, 08:45:01 pm »
This is what i have in my db_phone_config.sh. 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','2','Set','PAI=\${SIP_HEADER(FROM)}'),\
        ('$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','7','Goto','custom-linuxmce,$line,1'),\
        ('$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','11','Set','CALLERID(num)=\${tmpcid}'),\
        ('$context','$phonenumber','12','Noop','Incoming call from \${CALLERID(num)}'),\
        ('$context','$phonenumber','13','Set','FAX_RX='), \
        ('$context','$phonenumber','14','Goto','custom-linuxmce,$line,1');"
}

It's different from yours.

21
Users / Asterisk CDR registering error.
« on: February 26, 2013, 12:23:34 am »
Hya,
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?
TIA






22
Users / Re: Asterisk Security
« on: February 23, 2013, 11:15:25 pm »
Wiki http://wiki.linuxmce.org/index.php/Fail2ban_-_A_tool_against_brute_force 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.

23
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 :(.

24
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

25
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.

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

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

http://wiki.linuxmce.org/index.php/Fail2ban_-_A_tool_against_brute_force

should the ignore IP line look like:

ignoreip = 127.0.0.1 192.168.80.1 192.168.80.0/254

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..

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

28
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.

29
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.

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

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.
BR

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