Stefan Helbing
2005-Apr-22 08:40 UTC
[Asterisk-Users] chan capi: Long incomingmsn line in capi.conf?
Hello, the incomingmsn line in chan_capi's capi.conf is limited to 80 characters (AST_MAX_EXTENSION default value). My problem: I have to include several MSNs but NOT all. The interface is a 30 channel PRI card with a number area of 600 numbers, splitted in different functions. Some numbers are used for fax, some for PPP, some for telephony. (Example: 1234567xx is used for fax, 1234568xx is used for ppp, 1234569xx is used for telephony) When I set incomingmsn to * it's fine for asterisk - it gets all calls - but PPP and fax are not working anymore because they don't get any calls. In Germany I have to take the whole number without the leading zero of the area prefix. So every MSN has a length of 10 characters. This limits the count of usable MSN to 7 (7*10 + 6 commas = 76 chars). I tried out to use a wildcard in the string (using the example above: 1234569*) but this doesn't work. Any idea (except modifying the source code)? Thank you! :-) Best regards Stefan
Peter Braidwood
2005-Apr-25 10:19 UTC
[Asterisk-Users] chan capi: Long incomingmsn line in capi.conf?
I modified the source code as I have 10 msn numbers here at home, I will try to make a diff of the changes. Peter> -----Original Message----- > From: Stefan Helbing [mailto:sth@weblab.de] > Sent: 22 April 2005 16:40 > To: asterisk-users@lists.digium.com > Subject: [Asterisk-Users] chan capi: Long incomingmsn line in > capi.conf? > > > Hello, > > the incomingmsn line in chan_capi's capi.conf is limited to > 80 characters (AST_MAX_EXTENSION default value). > My problem: I have to include several MSNs but NOT all. The > interface is a 30 channel PRI card with a number area of 600 > numbers, splitted in different functions. Some numbers are > used for fax, some for PPP, some for telephony. > (Example: 1234567xx is used for fax, 1234568xx is used for > ppp, 1234569xx is used for telephony) > When I set incomingmsn to * it's fine for asterisk - it gets > all calls - but PPP and fax are not working anymore because > they don't get any calls. > In Germany I have to take the whole number without the > leading zero of the area prefix. So every MSN has a length of > 10 characters. This limits the count of usable MSN to 7 (7*10 > + 6 commas = 76 chars). > I tried out to use a wildcard in the string (using the > example above: 1234569*) but this doesn't work. > > Any idea (except modifying the source code)? Thank you! :-) > > Best regards > Stefan > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > > ______________________________________________________________ > __________ > This email has been scanned for all viruses by the Star > Internet Virus Screen. > The service is provided in partnership with MessageLabs, the > email security company. > For more information on a higher level of virus protection > visit www.star.net.uk > ______________________________________________________________ > __________ >________________________________________________________________________ This e-mail has been scanned for all viruses by Star. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk ________________________________________________________________________
Jason Williams
2005-Apr-26 03:56 UTC
[Asterisk-Users] chan capi: Long incomingmsn line in capi.conf?
On 4/26/05, Stefan Gofferje <stefan@gofferje.homelinux.org> wrote:> Stefan Helbing schrieb: > > >Hello, > > > >the incomingmsn line in chan_capi's capi.conf is limited to 80 characters (AST_MAX_EXTENSION default value). > >My problem: I have to include several MSNs but NOT all. The interface is a 30 channel PRI card with a number area of 600 numbers, splitted in different functions. Some numbers are used for fax, some for PPP, some for telephony.According to another email on this list, accept all incoming MSN's but create an entry in extensions.conf for each msn you wish to ignore (or wildcard) as follows exten => _123456XX,1,Wait(30) The wait will stop asterisk from answering the call so the other capi devices fax etc should then answer the call. Try it and let us know it would be good for future reference Jason
Peter Braidwood
2005-Apr-26 15:33 UTC
[Asterisk-Users] chan capi: Long incomingmsn line in capi.conf?
The incommingmsn line is not the issue for me as I just use * its the msn line. I need to have an entry in there for each of the msn numbers that I want to dial out on, so with 10 msn numbers at 10 digits each and 9 commas between them its a bit longer than 80 chars. Peter> -----Original Message----- > From: Stefan Gofferje [mailto:stefan@gofferje.homelinux.org] > Sent: 26 April 2005 09:24 > To: Asterisk Users Mailing List - Non-Commercial Discussion > Subject: Re: [Asterisk-Users] chan capi: Long incomingmsn line in > capi.conf? > > > Stefan Helbing schrieb: > > >Hello, > > > >the incomingmsn line in chan_capi's capi.conf is limited to > 80 characters (AST_MAX_EXTENSION default value). > >My problem: I have to include several MSNs but NOT all. The > interface is a 30 channel PRI card with a number area of 600 > numbers, splitted in different functions. Some numbers are > used for fax, some for PPP, some for telephony. > >(Example: 1234567xx is used for fax, 1234568xx is used for > ppp, 1234569xx is used for telephony) > >When I set incomingmsn to * it's fine for asterisk - it gets > all calls - but PPP and fax are not working anymore because > they don't get any calls. > >In Germany I have to take the whole number without the > leading zero of the area prefix. So every MSN has a length of > 10 characters. This limits the count of usable MSN to 7 (7*10 > + 6 commas = 76 chars). > >I tried out to use a wildcard in the string (using the > example above: 1234569*) but this doesn't work. > > > > > Are you sure you have to use the full number? I use only the > MSN without > area code and it works fine. However, if you are behind a PRI, the > normal way would be to let the PBX handle it all. What you > could do is > use incomingmsn = * and then do a exten => <faxMSN>,1,wait(30) in the > incoming ISDN context, so your other device has the time to > pick up the > call. Or go to Beronet.com, buy a Digium FXO card and use a > fax modem or > a standalone fax... > > Regards, > Stefan > > -- > (o_ Stefan Gofferje | Linux Systems Specialist > //\ Reg'd Linux User #247167 | Network Security Specialist > V_/_ Heckler & Koch - the original point and click interface > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > > ______________________________________________________________ > __________ > This email has been scanned for all viruses by the Star > Internet Virus Screen. > The service is provided in partnership with MessageLabs, the > email security company. > For more information on a higher level of virus protection > visit www.star.net.uk > ______________________________________________________________ > __________ >________________________________________________________________________ This e-mail has been scanned for all viruses by Star. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk ________________________________________________________________________