[asterisk-users] Chan_sip How to store Register Call ID?
Hello, I am trying to find a way to store the Register Call ID along with the peer info, or at least extract it from a log. What can be tweak in chan_sip to accomplish this? To illustrate, if the phone REGISTER message Call-ID header was something like 002584a2-58e40003-5b7b478e-f56e8005@192.168.1.200, then I would like to retrieve it somehow for that peer. I guess this might have some complications if multiple SIP clients register from the same IP, but the contact header can be used to differenciate. I see this is store along the Peers info and shows up from a sip show peer I checked thesecurity_events.h project, it seems like it is still disabled in Asterisk 1.8. Maybe if I could match REGISTER messages from that API, I could initiate a logging action somewhere. Any suggestion will be greatly appreciated *José Pablo Méndez * -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[asterisk-users] Multiple route failover zaps registration
Hi all, I've got a customer who is bringing up a second Internet connection for fail- over. I've configured a WRT54 with 2 LAN ports and arranged for it to fail over when one of the routes is no longer available. That works just fine at the IP level. However, when the router fails over, the phones lose their registration, presumably because their IP address has changed from Asterisk's point of view. The phones happen to be Polycom 335's, and I'm running Asterisk 1.6.2.9. What is the best way to manage this situation so that the phones don't become unavailable during failover? I'm considering using the Tinc VPN solution to prevent the IP address from chaing, but I'm hoping for a more simple solution. Any ideas? -- Take care and have fun, Mike Diehl. -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] [OT]: Require suggestions - GSM Gateway - Asterisk
Hello Sean McMaster, Am 2011-12-08 20:46:20, hacktest Du folgendes herunter: Hello, I am looking for ideas and suggestions. I want to use a 16 port GSM gateway as a trunk for outbound/inbound. I will also have two PSTN phone lines coming into the Asterisk server. All calls will go to an IVR on the Asterisk PBX. Outbound from extensions will route to GSM-GW when the dialed number matches a pattern set in the GSM-GW trunk. And accordingly for the PSTN trunks. But that's not the problem. The problem is that this GSM-GW (Eurotech VoIP2All 16 channel gateway) doesn't handle SMS properly. It supports Email-to-SMS (that too, only from Outlook) and when/if a recipient responds to the SMS sent by the GSM-GW.. we cannot just reply to it. We will need to compose a new email to the same number. So, no, no thread based reply system. I need to know if someone, who knows about this problematic setup, especially with SMS has an suggestions or alternatives.Thanks! Because I have alredy bought 8 differentSMS-Gateway with 4-8 ports, I gaved up! I payed around 6000 Euro in total for the last crap on earth! So, now I use an Marvel Discovery MV78100 with two attached USB (MTT) 7-Port Hubs where I can attach my Huawei K3765-HV (currently I use 3 = Bouygues Telecom/FR, O2/DE and Ortel/DE) which are supported by Asterisk and FreeSWITCH I suggest you to do the same, because if one USB-Stick is broken, you can get it easyly on the Internet for less then 30 Euro under 3 days. Thanks, Greetings and nice Day/Evening/weekend Michelle Konzack -- # Debian GNU/Linux Consultant ## Development of Intranet and Embedded Systems with Debian GNU/Linux Internet Service Provider, Cloud Computing http://www.itsystems.tamay-dogan.net/ itsystems@tdnet Jabber linux4miche...@jabber.ccc.de Owner Michelle Konzack Gewerbe Strasse 3 Tel office: +49-176-86004575 77694 Kehl Tel mobil: +49-177-9351947 Germany Tel mobil: +33-6-61925193 (France) USt-ID: DE 278 049 239 Linux-User #280138 with the Linux Counter, http://counter.li.org/ signature.pgp Description: Digital signature -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Multiple route failover zaps registration
On 12/11/2011 07:22 PM, Mike Diehl wrote: Hi all, I've got a customer who is bringing up a second Internet connection for fail- over. I've configured a WRT54 with 2 LAN ports and arranged for it to fail over when one of the routes is no longer available. That works just fine at the IP level. However, when the router fails over, the phones lose their registration, presumably because their IP address has changed from Asterisk's point of view. The phones happen to be Polycom 335's, and I'm running Asterisk 1.6.2.9. What is the best way to manage this situation so that the phones don't become unavailable during failover? I'm considering using the Tinc VPN solution to prevent the IP address from chaing, but I'm hoping for a more simple solution. Any ideas? Shorten the registration expiration time on the phones? It'll make them a bit chattier, but it'll make sure Asterisk has the most recent IP address. Shorten it down to as long as you feel the phones can be without service, but also make sure you don't make them too chatty so they're reregistering every second. -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] [OT]: Require suggestions - GSM Gateway - Asterisk
Hi Michelle, Thanks for your reply. But I'm a little confused if these sticks you speak of have SMS AND telephony support? Thanks! -Original Message- From: Michelle Konzack linux4miche...@tamay-dogan.net Date: Sat, 10 Dec 2011 18:34:11 To: asterisk-users@lists.digium.com Subject: Re: [asterisk-users] [OT]: Require suggestions - GSM Gateway - Asterisk Hello Sean McMaster, Am 2011-12-08 20:46:20, hacktest Du folgendes herunter: Hello, I am looking for ideas and suggestions. I want to use a 16 port GSM gateway as a trunk for outbound/inbound. I will also have two PSTN phone lines coming into the Asterisk server. All calls will go to an IVR on the Asterisk PBX. Outbound from extensions will route to GSM-GW when the dialed number matches a pattern set in the GSM-GW trunk. And accordingly for the PSTN trunks. But that's not the problem. The problem is that this GSM-GW (Eurotech VoIP2All 16 channel gateway) doesn't handle SMS properly. It supports Email-to-SMS (that too, only from Outlook) and when/if a recipient responds to the SMS sent by the GSM-GW.. we cannot just reply to it. We will need to compose a new email to the same number. So, no, no thread based reply system. I need to know if someone, who knows about this problematic setup, especially with SMS has an suggestions or alternatives.Thanks! Because I have alredy bought 8 differentSMS-Gateway with 4-8 ports, I gaved up! I payed around 6000 Euro in total for the last crap on earth! So, now I use an Marvel Discovery MV78100 with two attached USB (MTT) 7-Port Hubs where I can attach my Huawei K3765-HV (currently I use 3 = Bouygues Telecom/FR, O2/DE and Ortel/DE) which are supported by Asterisk and FreeSWITCH I suggest you to do the same, because if one USB-Stick is broken, you can get it easyly on the Internet for less then 30 Euro under 3 days. Thanks, Greetings and nice Day/Evening/weekend Michelle Konzack -- # Debian GNU/Linux Consultant ## Development of Intranet and Embedded Systems with Debian GNU/Linux Internet Service Provider, Cloud Computing http://www.itsystems.tamay-dogan.net/ itsystems@tdnet Jabber linux4miche...@jabber.ccc.de Owner Michelle Konzack Gewerbe Strasse 3 Tel office: +49-176-86004575 77694 Kehl Tel mobil: +49-177-9351947 Germany Tel mobil: +33-6-61925193 (France) USt-ID: DE 278 049 239 Linux-User #280138 with the Linux Counter, http://counter.li.org/ -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[asterisk-users] What version to upgrade to...?
Hi all, I have 2 servers running 1.6.2.9 and I'm about to build a third server. This suggests the possibility of doing a rolling upgrade of all of my servers. This brings up the question of what version to install and upgrade to. I don't have many upgrade opportunities, so I'd like to get as much bang for my buck. Since I've applied some custom patches to my 1.6, I'd also like to get to a new enough version that my patches would be useful to the community. Should I go to 1.8.x? Or all the way up to 10.x? This is a production system and I can't afford to be testing code. -- Take care and have fun, Mike Diehl. -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Multiple route failover zaps registration
Why don't you use FQDN in phone instead of IP of server and configure DNS Server to failover resolve to next IP while set SIP reg expiry same as DNS TTL. Regards, Faisal Hanif -Original Message- From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Mike Diehl Sent: Monday, December 12, 2011 5:22 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: [asterisk-users] Multiple route failover zaps registration Hi all, I've got a customer who is bringing up a second Internet connection for fail- over. I've configured a WRT54 with 2 LAN ports and arranged for it to fail over when one of the routes is no longer available. That works just fine at the IP level. However, when the router fails over, the phones lose their registration, presumably because their IP address has changed from Asterisk's point of view. The phones happen to be Polycom 335's, and I'm running Asterisk 1.6.2.9. What is the best way to manage this situation so that the phones don't become unavailable during failover? I'm considering using the Tinc VPN solution to prevent the IP address from chaing, but I'm hoping for a more simple solution. Any ideas? -- Take care and have fun, Mike Diehl. -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Multiple route failover zaps registration
Actually, I've configured the phones to use DNS SRV records to find the Asterisk server, and this works very well. The problem is that when the router fails over, the phones IP address changes and this causes them to be unavailable from Asterisk's point of view. On Sunday 11 December 2011 10:02:21 pm Faisal Hanif wrote: Why don't you use FQDN in phone instead of IP of server and configure DNS Server to failover resolve to next IP while set SIP reg expiry same as DNS TTL. Regards, Faisal Hanif -Original Message- From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Mike Diehl Sent: Monday, December 12, 2011 5:22 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: [asterisk-users] Multiple route failover zaps registration Hi all, I've got a customer who is bringing up a second Internet connection for fail- over. I've configured a WRT54 with 2 LAN ports and arranged for it to fail over when one of the routes is no longer available. That works just fine at the IP level. However, when the router fails over, the phones lose their registration, presumably because their IP address has changed from Asterisk's point of view. The phones happen to be Polycom 335's, and I'm running Asterisk 1.6.2.9. What is the best way to manage this situation so that the phones don't become unavailable during failover? I'm considering using the Tinc VPN solution to prevent the IP address from chaing, but I'm hoping for a more simple solution. Any ideas? -- Take care and have fun, Mike Diehl. -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Multiple route failover zaps registration
Hi, I'm only going to rephrase what James said, shorten the registration expiration timer and retry timers. That way phones will retry registrations lets say after 1 min so after 1 min all phones will failover to the secondary SRV record. Regards, Sammy On Mon, Dec 12, 2011 at 10:35 AM, Mike Diehl mdi...@diehlnet.com wrote: Actually, I've configured the phones to use DNS SRV records to find the Asterisk server, and this works very well. The problem is that when the router fails over, the phones IP address changes and this causes them to be unavailable from Asterisk's point of view. On Sunday 11 December 2011 10:02:21 pm Faisal Hanif wrote: Why don't you use FQDN in phone instead of IP of server and configure DNS Server to failover resolve to next IP while set SIP reg expiry same as DNS TTL. Regards, Faisal Hanif -Original Message- From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Mike Diehl Sent: Monday, December 12, 2011 5:22 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: [asterisk-users] Multiple route failover zaps registration Hi all, I've got a customer who is bringing up a second Internet connection for fail- over. I've configured a WRT54 with 2 LAN ports and arranged for it to fail over when one of the routes is no longer available. That works just fine at the IP level. However, when the router fails over, the phones lose their registration, presumably because their IP address has changed from Asterisk's point of view. The phones happen to be Polycom 335's, and I'm running Asterisk 1.6.2.9. What is the best way to manage this situation so that the phones don't become unavailable during failover? I'm considering using the Tinc VPN solution to prevent the IP address from chaing, but I'm hoping for a more simple solution. Any ideas? -- Take care and have fun, Mike Diehl. -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Multiple route failover zaps registration
On 12/12/2011 12:35 AM, Mike Diehl wrote: Actually, I've configured the phones to use DNS SRV records to find the Asterisk server, and this works very well. The problem is that when the router fails over, the phones IP address changes and this causes them to be unavailable from Asterisk's point of view. And that's why I was suggesting the short registration timer. I'm assuming that the LAN connections/WRT54 is for client phones, not the server. The phone registers, Asterisk sees it as coming from 75.0.0.1 port 5060 (the external IP of the WRT54). And the phone re-registers every 30 seconds, and Asterisk just refreshes the registration. Now, the primary internet connection falls over and the WRT switches to the other connection. If you set the registration timeout to a short interval, the phone sends out a register message and Asterisk sees it as coming from 85.0.0.1, port 5060. Asterisk then updates the registration IP for that peer and it can deliver and receive calls from those phones. The only thing that will happen is that active calls *will* get dropped. There is no way to hide the IP change from that without the VPN tunnel. -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users