Re: [asterisk-users] Dropped calls when all DAHDI lines in use
- Original Message - > From: "John Novack SCII_U" > To: "Asterisk Users Mailing List, Non-Commercial Discussion" > , "Andrew Martin" > > Sent: Monday, October 8, 2018 4:29:41 PM > Subject: Re: [asterisk-users] Dropped calls when all DAHDI lines in use > Have you given any thought to moving to at least a current supported version > 13? > Asterisk 11 has been EOL for some time now > I doubt you will get a resolution to a version no longer supported. > Moving to the latest version 13 should be relatively quick and painless, and > if > the issue persists you might find more assistance. > > John Novack > > > Andrew Martin wrote: >> Hello, >> >> I am running Asterisk 11.17 with DAHDI 2.9.0 and an OpenVox A800P with 8x >> analog >> POTS lines coming into my Asterisk server from the phone company. >> Internally, I >> have about 180 SIP clients defined in sip.conf. What appears to be happening >> is >> that if existing calls are consuming all 8 external lines and a new SIP >> client >> attempts to make a call, an existing call gets dropped. The asterisk log >> simply >> shows this as a normal hangup, so I am not able to easily distinguish >> between a >> normal hangup and this type of dropped call. In testing, I am able to get a >> new >> SIP client to report "service unavailable" when all 8 lines are consumed, yet >> still drops are reported. >> >> I have been unable to find any configuration settings pertaining to >> prioritizing >> existing calls over new calls. What else can I look for to attempt to debug >> and >> fix this so that existing calls are not dropped? >> >> Thanks, >> >> Andrew >> > > -- > Dog is my Co-Pilot John, Thanks for the reply. Yes, I am planning on moving to version 13 but need to find a solution in the interim. If there are any configuration options that pertain to which actions to take with existing calls when new calls come in, I think it is likely that they would be shared between both versions (and I want to make sure I have the correct settings when I switch to version 13 too). Can you advise on any tunables related to handling existing vs new calls? Thanks, Andrew -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- Astricon is coming up October 9-11! Signup is available at: https://www.asterisk.org/community/astricon-user-conference Check out the new Asterisk community forum at: https://community.asterisk.org/ New to Asterisk? Start here: https://wiki.asterisk.org/wiki/display/AST/Getting+Started asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[asterisk-users] Dropped calls when all DAHDI lines in use
Hello, I am running Asterisk 11.17 with DAHDI 2.9.0 and an OpenVox A800P with 8x analog POTS lines coming into my Asterisk server from the phone company. Internally, I have about 180 SIP clients defined in sip.conf. What appears to be happening is that if existing calls are consuming all 8 external lines and a new SIP client attempts to make a call, an existing call gets dropped. The asterisk log simply shows this as a normal hangup, so I am not able to easily distinguish between a normal hangup and this type of dropped call. In testing, I am able to get a new SIP client to report "service unavailable" when all 8 lines are consumed, yet still drops are reported. I have been unable to find any configuration settings pertaining to prioritizing existing calls over new calls. What else can I look for to attempt to debug and fix this so that existing calls are not dropped? Thanks, Andrew -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- Astricon is coming up October 9-11! Signup is available at: https://www.asterisk.org/community/astricon-user-conference Check out the new Asterisk community forum at: https://community.asterisk.org/ New to Asterisk? Start here: https://wiki.asterisk.org/wiki/display/AST/Getting+Started asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[asterisk-users] IFTIME and timezones
Hello, Considering we're in the apex of daylight savings time confusions worldwide, I was wondering if there's a way to make IFTIME() timespecs take timezone information. We have offices around the globe that are being handled by a common Asterisk instance, and it seems otherwise impossible to enforce time-based extension flows. If not, then is this something to consider to be added to Asterisk? Thanks for any feedback, -- @martinkrafft | http://madduck.net/ anybody can sympathise with the sufferings of a friend, but it requires a very fine nature to sympathise with a friend's success. -- oscar wilde spamtraps: madduck.bo...@madduck.net digital_signature_gpg.asc Description: Digital GPG signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current) -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- Check out the new Asterisk community forum at: https://community.asterisk.org/ New to Asterisk? Start here: https://wiki.asterisk.org/wiki/display/AST/Getting+Started asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Dial() using full SIP account details
> Incidentally, I do know I can put a Register statement into sip.conf, and > then be able to use the Dial() application just using the username (and > this works), however I need a solution which can support two or more > accounts at different remote providers having the same username. You can define all your remote providers in sip conf: [Provider1] type=peer host=provider1.tld defaultuser=yourusername fromuser=yourusername secret=yourverysecretpassword [Provider2] type=peer host=provider2.tld defaultuser=yourusername fromuser=yourusername secret=yourverysecretpassword And then use Dial(Sip/Provider1/callednumber) No registration should be neccessary in this case unless you want to receive calls as well. (you will need to change type to friend too in this case...) Martin > > Therefore the username alone will not be unique, but the combination of > username + password + server name will be, hence the reason why I would need > to use this in the dialplan. > > > If anyone can offer suggestions on how to use the full SIP credentials in a > Dial() statement, and also how to escape special characters such as ! I > would be very grateful. > > > Thanks, > > > Antony. -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- Check out the new Asterisk community forum at: https://community.asterisk.org/ New to Asterisk? Start here: https://wiki.asterisk.org/wiki/display/AST/Getting+Started asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[asterisk-users] T-Mobile "wifi calling"
Hi everyone. Did anybody ever tried to connect asterisk to t-mobile network using their "wifi calling" feature? From what I was able to find it's just SIP over TLS using phone number, IMEI (not sure why) and IMSI to authenticate. Trying to make this work to be able to use my existing cell number to receive/send calls in the office if possible. This document describes some details, I just dont want to reinvent the wheel if somebody did already... https://www2.eecs.berkeley.edu/Pubs/TechRpts/2013/EECS-2013-18.pdf Martin -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- Check out the new Asterisk community forum at: https://community.asterisk.org/ New to Asterisk? Start here: https://wiki.asterisk.org/wiki/display/AST/Getting+Started asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] double NAT - one way audio
On Wednesday 15 of March 2017 07:55:09 Andre Gronwald wrote: > ISP won't change, but will check. > in the hidden menus it isn't changeable either. Can you get your own modem? (double) NAT is ugly hack. > However, it is working after i deactivated VoIP in the router. And even > after reenabling VoIP it is still working. I don't understand why... > However, it works. :-D Not sure what is VoIP in the router here, but looks like some sort of SIP ALG or VoIP passthrough - disable it! It rewrites ip addresses inside of the packets ang it generally messes things up. Also make sure your asterisk can get correct public IP - "externip=" ... Martin -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- Check out the new Asterisk community forum at: https://community.asterisk.org/ New to Asterisk? Start here: https://wiki.asterisk.org/wiki/display/AST/Getting+Started asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[asterisk-users] Problem with rport (CGNAT) going from Linux kernel 3.16 to 4.9
Hello, I operate an Asterisk server (v11.13.1) on Debian stable, and it's rock-solid. The other day, however, I accidentally upgraded the kernel from the stable 3.16.0 to 4.9.0. Subsequently, audio stopped working. Below you can find my analysis while running the 4.9.0 kernel. 888 is a simply Echo() extension. I am calling it from a phone behind carrier-grade NAT ("mtvic-main"). The problem is that the Asterisk server sends RTP to the 100.64.0.0/10 address I have on the internal side of NAT, even though the Asterisk server correctly (?) transports the actual socket on the outside via rport (cf. the 401 Unauth response). Once I boot back into 3.16.0, it all works again. I didn't capture any logs yet, but since audio works, I am led to believe that the 100.64.0.0/10 address is not being used. Right now it works, but eventually, the kernel upgrade will be required. It's possible that a newer Asterisk will work with the v4 kernel, but in any case I'd be interested in finding out the root of the problem at hand. Any hints appreciated. Thank you! >>> sip.conf <<< [general] nat=auto_force_rport,auto_comedia [mtvic-main] md5secret=xxx context=mtvic-in-main callerid="Martin in windy Wellington <60>" dtmfmode=rfc2833 context=from-office type=friend directmedia=no host=dynamic nat=force_rport,comedia # sip show peer output below >>> /sip.conf <<< >>> debug output <<< [Feb 2 08:35:24] <--- SIP read from UDP:219.88.239.74:43525 ---> [Feb 2 08:35:24] INVITE sip:8...@madduck.net;user=phone SIP/2.0 [Feb 2 08:35:24] Via: SIP/2.0/UDP 100.64.45.19:5865;branch=z9hG4bK2c95e270486c659f91f1baa7712ebc80;rport [Feb 2 08:35:24] From: "Penny & Martin / Wellington" <sip:mtvic-m...@madduck.net>;tag=4132889942 [Feb 2 08:35:24] To: <sip:8...@madduck.net;user=phone> [Feb 2 08:35:24] Call-ID: 4239363066@192_168_15_112 [Feb 2 08:35:24] CSeq: 2 INVITE [Feb 2 08:35:24] Contact: <sip:mtvic-main@100.64.45.19:5865> [Feb 2 08:35:24] Max-Forwards: 70 [Feb 2 08:35:24] User-Agent: S685IP/02227000 [Feb 2 08:35:24] Supported: replaces [Feb 2 08:35:24] Allow-Events: message-summary, refer [Feb 2 08:35:24] Allow: INVITE, ACK, CANCEL, BYE, OPTIONS, INFO, REFER, SUBSCRIBE, NOTIFY [Feb 2 08:35:24] Content-Type: application/sdp [Feb 2 08:35:24] Content-Length: 375 [Feb 2 08:35:24] [Feb 2 08:35:24] v=0 [Feb 2 08:35:24] o=mtvic-main 8602 68 IN IP4 100.64.45.19 [Feb 2 08:35:24] s=Mapping [Feb 2 08:35:24] c=IN IP4 100.64.45.19 [Feb 2 08:35:24] t=0 0 [Feb 2 08:35:24] m=audio 8602 RTP/AVP 9 8 0 96 97 2 18 101 [Feb 2 08:35:24] a=rtpmap:9 G722/8000 [Feb 2 08:35:24] a=rtpmap:8 PCMA/8000 [Feb 2 08:35:24] a=rtpmap:0 PCMU/8000 [Feb 2 08:35:24] a=rtpmap:96 G726-32/8000 [Feb 2 08:35:24] a=rtpmap:97 AAL2-G726-32/8000 [Feb 2 08:35:24] a=rtpmap:2 G726-32/8000 [Feb 2 08:35:24] a=rtpmap:18 G729/8000 [Feb 2 08:35:24] a=fmtp:18 annexb=no [Feb 2 08:35:24] a=rtpmap:101 telephone-event/8000 [Feb 2 08:35:24] a=fmtp:101 0-16 [Feb 2 08:35:24] <-> [Feb 2 08:35:24] --- (14 headers 16 lines) --- [Feb 2 08:35:24] Sending to 219.88.239.74:43525 (NAT) [Feb 2 08:35:24] Sending to 219.88.239.74:43525 (NAT) [Feb 2 08:35:24] Using INVITE request as basis request - 4239363066@192_168_15_112 [Feb 2 08:35:24] Found peer 'mtvic-main' for 'mtvic-main' from 219.88.239.74:43525 [Feb 2 08:35:24] [Feb 2 08:35:24] <--- Reliably Transmitting (NAT) to 219.88.239.74:43525 ---> [Feb 2 08:35:24] SIP/2.0 401 Unauthorized [Feb 2 08:35:24] Via: SIP/2.0/UDP 100.64.45.19:5865;branch=z9hG4bK2c95e270486c659f91f1baa7712ebc80;received=219.88.239.74;rport=43525 [Feb 2 08:35:24] From: "Penny & Martin / Wellington" <sip:mtvic-m...@madduck.net>;tag=4132889942 [Feb 2 08:35:24] To: <sip:8...@madduck.net;user=phone>;tag=as39e92fd2 [Feb 2 08:35:24] Call-ID: 4239363066@192_168_15_112 [Feb 2 08:35:24] CSeq: 2 INVITE [Feb 2 08:35:24] Server: Asterisk PBX [Feb 2 08:35:24] Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE [Feb 2 08:35:24] Supported: replaces, timer [Feb 2 08:35:24] WWW-Authenticate: Digest algorithm=MD5, realm="madduck.net", nonce="2a4c925b" [Feb 2 08:35:24] Content-Length: 0 [Feb 2 08:35:24] [Feb 2 08:35:24] [Feb 2 08:35:24] <> [Feb 2 08:35:24] Scheduling destruction of SIP dialog '4239363066@192_168_15_112' in 32000 ms (Method: INVITE) [Feb 2 08:35:25] [Feb 2 08:35:25] <--- SIP read from UDP:219.88.239.74:43525 ---> [Feb 2 08:35:25] ACK sip:8...@madduck.net;user=phone SIP/2.0 [Feb 2 08:35:25] Via: SIP/2.0/UDP 100.64.45.19:5865;branch=z9hG4bK2c95e270486c659f91f1baa7712ebc80;rport [Feb 2 08:35:25] From: "Penny & Martin / Wellington" <sip:mtvic-m...@madduck.net>;tag=4132889942 [Feb 2 08:35:25] To: <sip:8...@madduck.net;user=phone>;tag=as39e
[asterisk-users] [sip] setvar not executed when call comes in via registry
Hi, I have a line like register => 1yyy1:x...@sipconnect.sipgate.de/incoming in sip.conf, and a corresponding stanza (note especially the final setvar): [trunk-sipgate] type=peer qualify=yes insecure=invite language=de dtmfmode=rfc2833 host=sipconnect.sipgate.de fromdomain=sipconnect.sipgate.de fromuser=1yyy1 defaultuser=1yyy1 secret= context=in-trunk-sipgate session-timers=accept allow=!all,alaw,ulaw,g726 setvar=FOO=BAR If I 'sip show peer trunk-sipgate', the variable FOO is there. I also have a stanza for my local SIP phone, e.g. [0020fe8200de] ; abbreviated md5secret=abcdabcdabcdabcadbcdabcadbcdabcd context=in-martin setvar=DEFAULT_ORIGIN=11 When I make a call with this phone, the dialplan has access to ${DEFAULT_ORIGIN}. However, when a call comes in through the sipgate trunk and gets routed to the in-trunk-sipgate context, the ${FOO} variable is not set and thus not available from the dialplan. Am I doing something wrong (* v11.13 on Debian) Thanks, -- @martinkrafft | http://madduck.net/ | http://two.sentenc.es/ chaos reigns within. reflect, repent, reboot. order shall return. spamtraps: madduck.bo...@madduck.net digital_signature_gpg.asc Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current) -- _ -- 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] [sip] setvar not executed when call comes in via registry
also sprach martin f krafft <madd...@madduck.net> [2015-09-02 14:16 +0200]: > However, when a call comes in through the sipgate trunk and gets > routed to the in-trunk-sipgate context, the ${FOO} variable is not > set and thus not available from the dialplan. Thanks to [TK]-Fender, we isolated the problem to a different stanza matching the incoming call. :/ -- @martinkrafft | http://madduck.net/ | http://two.sentenc.es/ seminars, n.: from "semi" and "arse", hence, any half-assed discussion. spamtraps: madduck.bo...@madduck.net digital_signature_gpg.asc Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current) -- _ -- 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] SIP Phones over VPN Drop Audio One-Way
Hello, I am running Asterisk 11 on CentOS 6.x using the DAHDI module with 8x PSTN analog phone lines for outside connectivity. Internally, I am using several models of Yealink SIP phones (e.g SIP-T32G) on a dedicated VoIP network, 192.168.0.0/24. I have a few of these Yealink SIP phones configured with an OpenVPN certificate so that users working remotely can directly access the phone system (VPN subnet is 192.168.1.0/24). Note that this is not a NAT; VPN clients are able to directly address the Asterisk server and other SIP phones. Last week the phones connecting over the VPN started dropping audio during the call (e.g caller 1 can still hear caller 2, but not vise versa). These calls are between two SIP phones (one over the VPN, one internal). The dropouts last for 20 seconds or more, and sometimes the audio does recover and come back. I made some changes to the infrastructure last week, but I am not sure that they are the cause. First, I added echotraining=yes to /etc/asterisk/chan_dahdi.conf to try and fix echo problem (seems unrelated since the call is all SIP). I also cleaned up some extraneous firewall rules on the OpenVPN gateway, but I still allow the VPN phones to connect to the Asterisk server on ports 5000 - 2 for SIP and RSTP so this also seems unrelated. I've looked at the syslog on the SIP phones as well as the asterisk output with sip set debug and rtp set debug on but I don't see anything obviously wrong. The only sign of a problem I can see is this message when the call is hung up: pbx.c: == Spawn extension (dial-extension, 124, 1) exited non-zero on 'SIP/123-01d9' Here is an example user in my sip.conf: http://pastebin.com/6U2AhyWT Do you have any ideas about what is causing these dropouts, or what I should look at next for additional debug information? Thanks, Andrew Martin -- _ -- 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] Queues don't follow dialplan if no members are registered
- Original Message - From: John Kiniston johnkinis...@gmail.com To: Asterisk Users Mailing List - Non-Commercial Discussion asterisk-users@lists.digium.com Sent: Wednesday, July 29, 2015 11:53:13 AM Subject: Re: [asterisk-users] Queues don't follow dialplan if no members are registered Wow, Looks like they have really increased the options since I last looked. I just pulled down the Asterisk 13 queues.conf.sample and it's got this in it: ; paused: a member is not considered available if he is paused ; penalty: a member is not considered available if his penalty is less than QUEUE_MAX_PENALTY ; inuse: a member is not considered available if he is currently on a call ; ringing: a member is not considered available if his phone is currently ringing ; unavailable: This applies mainly to Agent channels. If the agent is a member of the queue ; but has not logged in, then do not consider the member to be available ; invalid: Do not consider a member to be available if he has an invalid device state. ; This generally is caused by an error condition in the member's channel driver. ; unknown: Do not consider a member to be available if we are unable to determine the member's ; current device state. ; wrapup: A member is not considered available if he is currently in his wrapuptime after ; taking a call. An unknown state would be a device that has a valid configuration but isn't registered. John, Thanks for the clarification and your help resolving this issue! Andrew -- _ -- 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] Queues don't follow dialplan if no members are registered
- Original Message - From: John Kiniston johnkinis...@gmail.com To: Asterisk Users Mailing List - Non-Commercial Discussion asterisk-users@lists.digium.com Sent: Tuesday, July 28, 2015 12:12:05 PM Subject: Re: [asterisk-users] Queues don't follow dialplan if no members are registered In your queues.conf do you have a leavewhenempty and joinempty set? in queues.conf [myqueue] leavewhenempty = strict joinempty = strict strategy = ringall ringinuse = no John, Thanks for the fast reply! I had joinempty=yes in queues.conf, which explains why I was seeing this behavior. It looks like the strict setting is partially-deprecated, so instead I'm using the following combination: [myqueue] musiconhold=default music=default strategy=ringall joinempty=unavailable,invalid,unknown leavewhenempty=unavailable,invalid,unknown timeout=18 member = SIP/100 member = SIP/101 Is there any reason that using any of these options would be a problem, in particular unknown? It is not very well defined what an unknown state is exactly. Thanks, Andrew -- _ -- 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] Queues don't follow dialplan if no members are registered
Hello, I am running Asterisk 11 on CentOS 6.x. I have configured several queues as follows in extensions.conf: exten = s,1,Queue(myqueue,rtnC,18) same = n,Background(user_unavail) same = n,WaitExten(10) exten = 1,1,Voicemail(@my-vm,s) This rings the phones in the queue for 18 seconds. If no queue members answer, the caller is then prompted to press 1 and leave a voicemail. This works well when at least 1 member is registered in the queue, however if no members are registered in the queue, the Queue() call never seems to return, and thus the remaining steps in the dialplan never execute. How can I correct this behavior so that even if the queue has no registered members, the dialplan is still followed? Thanks, Andrew -- _ -- 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] Asterisk virtual hosting
also sprach Steve Edwards asterisk@sedwards.com [2015-05-17 08:31 +0200]: While preprocessing could be called 'templating,' this may be confusing because Asterisk already as a configuration file feature called 'templates.' Fair point. Preprocessing it shall be. And you find preprocessing/templating complex? Hehe. The difference is that e.g. when encountering a problem, in your situation one always has to look at the preprocessor output, identify the issue, and then translate it into a fix in the input. Whereas with hierarchical includes, the files you edit are the same files Asterisk reads and hence this can be taken into account e.g. in log messages etc. Is this something to consider? I don't think so, primarily because it is specific to your problem. The audience is too small. You know the Henry Ford quote about faster horses, right? ;) Let's take a closer look at preprocessing using the preprocessor I referenced above to make sure I understand your needs. […] This lets you write generic contexts that will be prefixed as well as 'tailor' code specific to the value of the prefix. Isn't this what you're looking to accomplish? Yeah, and it's nicely done. Arguably it's still a hack and debugging becomes an indirect process (see above). But sure, it'll probably be the best solution for now. … although I believe Asterisk would benefit from better namespace separation between sets of registrations/contexts. -- @martinkrafft | http://madduck.net/ | http://two.sentenc.es/ you raise the blade, you make the change you rearrange me till i'm sane. you lock the door, and throw away the key, there's someone in my head but it's not me. -- pink floyd, 1972 spamtraps: madduck.bo...@madduck.net digital_signature_gpg.asc Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current) -- _ -- 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] Asterisk virtual hosting
Hello, I am in the peculiar situation to have to set up a PBX for two independent sites, but operated by the same entity. Yes, I could set up two VPSs and install Asterisk to each, put common stuff (e.g. conferencing setup) into Git and share between both using includes, but for various reasons (among them simplicity and cost), I'd prefer a single Asterisk instance. I know I can #include files from sip.conf and extensions.conf, so making a extensions.conf that consists of #include ext-common.conf #include foo/extensions.conf #include bar/extensions.conf is trivial. Unfortunately, the contexts in each of these files must not clash, and so I will be forced to use e.g. [bar-incoming] in bar/extensions.conf. That's a bit of redundancy here (which I am always trying to avoid like the plague) and I am wondering if there are better ways. Do you know of any, short of writing a script to compile the files and change the contexts based on path (which will be dirty and hard to get right)? Thanks, -- @martinkrafft | http://madduck.net/ | http://two.sentenc.es/ oh what a tangled web we weave, when first we practice to deceive. but my how we improve the score, as we practice more and more. -- sir walter scott spamtraps: madduck.bo...@madduck.net digital_signature_gpg.asc Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current) -- _ -- 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] Asterisk virtual hosting
also sprach Steve Edwards asterisk@sedwards.com [2015-05-16 23:22 +0200]: I use a preprocessor (http://software.hixie.ch/utilities/unix/preprocessor/) to tailor dialplans and configuration files to each host based on the client (or project) and the hostname. Yeah sure, templating works, but it introduces a layer of complexity that can make debugging hard(er). I just had the following alternative ideas. - when #include parses a file, prefix all stanzas found therein with text derived from the path, e.g. * #include foo/extensions.conf → foo- * #include bar.conf → bar- * #include foo/bar/moo.conf → foo-bar-moo- - if e.g. a context includes another context using a path separator, then the [common] context is looked up in a different location: * include foo/common→ foo/extensions.conf * include foo/bar/common→ foo/bar/extensions.conf:foo/bar.conf The same logic could be applied e.g. in the arguments of the Dial() application or local channels or registry instructions in sip.conf. The first is probably easier to implement, while the second is clearer to the user. Is this something to consider? -- @martinkrafft | http://madduck.net/ | http://two.sentenc.es/ when faced with a new problem, the wise algorithmist will first attempt to classify it as np-complete. this will avoid many tears and tantrums as algorithm after algorithm fails. -- g. niruta spamtraps: madduck.bo...@madduck.net digital_signature_gpg.asc Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current) -- _ -- 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] Retransmission Timeout results in dropped calls after 32 seconds
- Original Message - From: Joshua Colp jc...@digium.com To: Asterisk Users Mailing List - Non-Commercial Discussion asterisk-users@lists.digium.com Sent: Tuesday, May 12, 2015 5:42:57 PM Subject: Re: [asterisk-users] Retransmission Timeout results in dropped calls after 32 seconds Andrew Martin wrote: snip Joshua, As a mitigation for this problem, could I increase the timerb option in sip.conf to a large value, say 1 hour (instead of the default 32 seconds)? What other consequences would there be from this change? I don't know if chan_sip will allow this, but if it does... it'll keep transmitting over and over... it would be better to get to the bottom of the problem. Do a packet capture on the machine running Asterisk and see where the packet goes. That's the only thing left really. It's also possible something got fixed in relation to directmedia between your version and latest 11. Joshua, Looking at the packet capture from the asterisk server during this time, I see the following sequence of SIP packets: INVITE (102) - initial call connecting RINGING (102) - initial call connecting RINGING (102) - initial call connecting OK (102) - initial call connecting ACK (102) - initial call connecting OK (102) - initial call connecting (seems like a duplicate OK) INVITE (103) - re-INVITE to go to bypass mode ACK (102) - initial call connecting (seems like a duplicate ACK) INVITE (103) - re-INVITE to go to bypass mode (retry #1) INVITE (103) - re-INVITE to go to bypass mode (retry #2) INVITE (103) - re-INVITE to go to bypass mode (retry #3) INVITE (103) - re-INVITE to go to bypass mode (retry #4) INVITE (103) - re-INVITE to go to bypass mode (retry #5) Looking at the logs from the yealink phone (http://pastebin.com/aAWs4j6i), I see a few differences: INVITE (102) - initial call connecting TRYING (102) - initial call connecting RINGING (102) - initial call connecting INVITE (102) - initial call connecting (seems like a duplicate INVITE) RINGING (102) - initial call connecting OK (102) - initial call connecting ACK (102) - initial call connecting INVITE (103) - re-INVITE to go to bypass mode TRYING (103) - re-INVITE to go to bypass mode OK (103) - re-INVITE to go to bypass mode ACK (102) - initial call connecting (seems like a duplicate ACK) ACK (102) -initial call connecting (seems like a duplicate ACK) INVITE (103) - re-INVITE to go to bypass mode (retry #1) ACK (102) -initial call connecting (seems like a duplicate ACK) INVITE (103) - re-INVITE to go to bypass mode (retry #2) INVITE (103) - re-INVITE to go to bypass mode (retry #3) INVITE (103) - re-INVITE to go to bypass mode (retry #4) INVITE (103) - re-INVITE to go to bypass mode (retry #5) INVITE (103) - re-INVITE to go to bypass mode INVITE (103) - re-INVITE to go to bypass mode Most noteworthy is that the phone seems to send the OK for cseq 103, but it seems that the asterisk server never received this OK, which is why it kept re-transmitting the INVITE (103). Is this OK supposed to go to the asterisk server, or to the other phone? If it is supposed to go to the asterisk server, I suppose the explanation could be network turbulence prevented this OK from getting back to the server - does this seem like what happened? If so, what should be happening differently to ensure that this call doesn't get dropped? Thanks, Andrew -- _ -- 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] Retransmission Timeout results in dropped calls after 32 seconds
- Original Message - From: Joshua Colp jc...@digium.com To: Asterisk Users Mailing List - Non-Commercial Discussion asterisk-users@lists.digium.com Sent: Wednesday, May 13, 2015 10:50:02 AM Subject: Re: [asterisk-users] Retransmission Timeout results in dropped calls after 32 seconds Andrew Martin wrote: Since some packet loss is a possibility, I assume the protocol has mechanisms for dealing with it. What should be happening differently in the communication when packet loss occurs? Should the phone just be re-sending the OK, instead of printing 0 | ERROR | receive a request with same cseq?? to its log? Or should Asterisk be starting with a new cseq on each INVITE retry? The 200 OK should be retransmitted until an ACK is received. It honestly looks like the phone can't talk to Asterisk and it's just generally screwing up signaling. Thanks for the clarification and help debugging this problem. I will work with the phone vendor to see if they can resolve this from their end. If you have any other ideas about how to disable re-INVITEs on the asterisk side, beyond what I have done already, please let me know. Thanks, Andrew -- _ -- 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] Retransmission Timeout results in dropped calls after 32 seconds
- Original Message - From: Joshua Colp jc...@digium.com To: Asterisk Users Mailing List - Non-Commercial Discussion asterisk-users@lists.digium.com Sent: Wednesday, May 13, 2015 10:10:25 AM Subject: Re: [asterisk-users] Retransmission Timeout results in dropped calls after 32 seconds Andrew Martin wrote: - Original Message - snip Most noteworthy is that the phone seems to send the OK for cseq 103, but it seems that the asterisk server never received this OK, which is why it kept re-transmitting the INVITE (103). Is this OK supposed to go to the asterisk server, or to the other phone? If it is supposed to go to the asterisk server, I suppose the explanation could be network turbulence prevented this OK from getting back to the server - does this seem like what happened? If so, what should be happening differently to ensure that this call doesn't get dropped? The traffic is between the phone and Asterisk. As to why, I have no idea. The packets aren't getting to Asterisk - that's all I can say. I doubt it's network turbulence. Likely getting lost/blocked somewhere. Since some packet loss is a possibility, I assume the protocol has mechanisms for dealing with it. What should be happening differently in the communication when packet loss occurs? Should the phone just be re-sending the OK, instead of printing 0 | ERROR | receive a request with same cseq?? to its log? Or should Asterisk be starting with a new cseq on each INVITE retry? -- _ -- 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] Retransmission Timeout results in dropped calls after 32 seconds
- Original Message - From: Steve Davies davies...@gmail.com To: Asterisk Users Mailing List - Non-Commercial Discussion asterisk-users@lists.digium.com Sent: Wednesday, May 13, 2015 11:39:29 AM Subject: Re: [asterisk-users] Retransmission Timeout results in dropped calls after 32 seconds Hi, In my experience, all Yealink phones work just fine with Asterisk, we have hundreds (perhaps even low-thousands) out there with customers on Asterisk 1.2, 1.6.2, 1.8 and 11. If you are accurately representing the SIP trace on the phone and the SIP trace on Asterisk, then I would strongly suggest a SIP ALG exists in the network between the two devices and that SIP ALG does not understand SIP properly. The two halves simply do not match, so something must surely be interfering. In my experience it is often an innocent looking Cisco router. Cisco's SIP implementation is SIP By Cisco rather than RFC compliant SIP. If that is the case Cisco call it a SIP fixup and you just need to disable it. Hope that helps, Steve Steve, That is an interesting point - the server and the phone are both connected to Netgear switches where I have enabled their Auto-VoIP feature, which remarks packets based on protocol (SIP, SCCP, etc) for better QoS: http://kb.netgear.com/app/answers/detail/a_id/21758 I wonder if this remarking process is modifying another part of the packet too? Both devices are on the same subnet, so although these switches do route traffic as well, that shouldn't be coming into play here. Andrew -- _ -- 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] Retransmission Timeout results in dropped calls after 32 seconds
- Original Message - From: Andrew Martin amar...@xes-inc.com To: Asterisk Users Mailing List - Non-Commercial Discussion asterisk-users@lists.digium.com Sent: Monday, May 11, 2015 4:18:58 PM Subject: Re: [asterisk-users] Retransmission Timeout results in dropped calls after 32 seconds - Original Message - From: Andrew Martin amar...@xes-inc.com To: Asterisk Users Mailing List - Non-Commercial Discussion asterisk-users@lists.digium.com Sent: Monday, May 11, 2015 1:35:07 PM Subject: Re: [asterisk-users] Retransmission Timeout results in dropped calls after 32 seconds That should be all that is required. If that were broken I'd expect issue reports to implode - what's the configuration? Here's the sip.conf (only showing a single extension since they're all the same): [general] directmedia=no directrtpsetup=no dtmfmode=rfc2833 context=asterisk-internal allowsubscribe=no qualify=no disallow=all allow=ulaw allow=alaw allow=gsm localnet=10.10.32.0/255.255.248.0 localnet=192.168.32.0/255.255.255.0 [146] secret= host=dynamic type=friend From the aforementioned sip debug capture, 146 is on the 10.10.32.0/21 network and 113 is on the 192.168.32.0/24 network (these are directly route-able so no NAT is involved). However, I have now been able to reproduce the problem between two devices directly on the 10.10.32.0/21 network as well. I've gathered the log for this dialog from the SIP phone: http://pastebin.com/aAWs4j6i What I see is that there's an INVITE for CSeq 103, then an OK for CSeq 103, then another INVITE is received for CSeq 103, at which point the phone reports an error: 0 | ERROR | receive a request with same cseq?? From the asterisk side, it never seems to receive this OK for CSeq 103, hence the reason it sends out the INVITE again. Joshua, As a mitigation for this problem, could I increase the timerb option in sip.conf to a large value, say 1 hour (instead of the default 32 seconds)? What other consequences would there be from this change? Thanks, Andrew -- _ -- 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] Retransmission Timeout results in dropped calls after 32 seconds
- Original Message - From: Joshua Colp jc...@digium.com To: Asterisk Users Mailing List - Non-Commercial Discussion asterisk-users@lists.digium.com Sent: Monday, May 11, 2015 1:24:53 PM Subject: Re: [asterisk-users] Retransmission Timeout results in dropped calls after 32 seconds Could this perhaps be because the phone doesn't support bypass or re-INVITEs? Is there a way to disable this functionality and instruct asterisk to just stay in the middle of the conversation (bridging or native-bridging) for the duration of the call? I thought that setting directmedia=no and directrtpsetup=no would disable re-INVITEs and force asterisk to use bridging mode, but perhaps something else is required? That should be all that is required. If that were broken I'd expect issue reports to implode - what's the configuration? Here's the sip.conf (only showing a single extension since they're all the same): [general] directmedia=no directrtpsetup=no dtmfmode=rfc2833 context=asterisk-internal allowsubscribe=no qualify=no disallow=all allow=ulaw allow=alaw allow=gsm localnet=10.10.32.0/255.255.248.0 localnet=192.168.32.0/255.255.255.0 [146] secret= host=dynamic type=friend From the aforementioned sip debug capture, 146 is on the 10.10.32.0/21 network and 113 is on the 192.168.32.0/24 network (these are directly route-able so no NAT is involved). However, I have now been able to reproduce the problem between two devices directly on the 10.10.32.0/21 network as well. Thanks, Andrew -- _ -- 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] Retransmission Timeout results in dropped calls after 32 seconds
- Original Message - From: Joshua Colp jc...@digium.com To: Asterisk Users Mailing List - Non-Commercial Discussion asterisk-users@lists.digium.com Sent: Monday, May 11, 2015 12:32:06 PM Subject: Re: [asterisk-users] Retransmission Timeout results in dropped calls after 32 seconds Andrew Martin wrote: - Original Message - snip By doing a number of test calls today, I have managed to reproduce this while sip debugging was on, so I have that information available now as well: http://pastebin.com/ZJqzdvY3 This was a call from 113 to 146 via a queue. Note that the asterisk server is at 10.10.32.251. I see the following: INVITE sip:146@10.10.32.96:5062 SIP/2.0 SIP/2.0 180 Ringing SIP/2.0 180 Ringing SIP/2.0 200 OK ACK sip:146@10.10.32.96:5062 SIP/2.0 INVITE sip:146@10.10.32.96:5062 SIP/2.0 SIP/2.0 200 OK ACK sip:146@10.10.32.96:5062 SIP/2.0 INVITE sip:146@10.10.32.96:5062 SIP/2.0 INVITE sip:146@10.10.32.96:5062 SIP/2.0 INVITE sip:146@10.10.32.96:5062 SIP/2.0 INVITE sip:146@10.10.32.96:5062 SIP/2.0 INVITE sip:146@10.10.32.96:5062 SIP/2.0 This appears to start out with a successful SIP conversation (ending with the first ACK), so it is unclear to me why we have two new sets of INVITEs sent afterwards. Asterisk has sent a re-INVITE to have the media flow directly. The device (seems) to respond with the 200 OK (you can tell based on the CSeq) for the initial INVITE, and not for the re-INVITE. As Asterisk gets no response to its re-INVITE it gives up and terminates the dialog. Could this perhaps be because the phone doesn't support bypass or re-INVITEs? Is there a way to disable this functionality and instruct asterisk to just stay in the middle of the conversation (bridging or native-bridging) for the duration of the call? I thought that setting directmedia=no and directrtpsetup=no would disable re-INVITEs and force asterisk to use bridging mode, but perhaps something else is required? Thanks, Andrew -- _ -- 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] Retransmission Timeout results in dropped calls after 32 seconds
- Original Message - From: Andrew Martin amar...@xes-inc.com To: Asterisk Users Mailing List - Non-Commercial Discussion asterisk-users@lists.digium.com Sent: Monday, May 11, 2015 1:35:07 PM Subject: Re: [asterisk-users] Retransmission Timeout results in dropped calls after 32 seconds That should be all that is required. If that were broken I'd expect issue reports to implode - what's the configuration? Here's the sip.conf (only showing a single extension since they're all the same): [general] directmedia=no directrtpsetup=no dtmfmode=rfc2833 context=asterisk-internal allowsubscribe=no qualify=no disallow=all allow=ulaw allow=alaw allow=gsm localnet=10.10.32.0/255.255.248.0 localnet=192.168.32.0/255.255.255.0 [146] secret= host=dynamic type=friend From the aforementioned sip debug capture, 146 is on the 10.10.32.0/21 network and 113 is on the 192.168.32.0/24 network (these are directly route-able so no NAT is involved). However, I have now been able to reproduce the problem between two devices directly on the 10.10.32.0/21 network as well. I've gathered the log for this dialog from the SIP phone: http://pastebin.com/aAWs4j6i What I see is that there's an INVITE for CSeq 103, then an OK for CSeq 103, then another INVITE is received for CSeq 103, at which point the phone reports an error: 0 | ERROR | receive a request with same cseq?? From the asterisk side, it never seems to receive this OK for CSeq 103, hence the reason it sends out the INVITE again. Thanks, Andrew -- _ -- 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] Retransmission Timeout results in dropped calls after 32 seconds
- Original Message - From: Andrew Martin amar...@xes-inc.com To: Asterisk Users Mailing List - Non-Commercial Discussion asterisk-users@lists.digium.com Sent: Friday, May 8, 2015 5:12:28 PM Subject: [asterisk-users] Retransmission Timeout results in dropped calls after 32 seconds Hello, I am running Asterisk 11 on CentOS 6.4 with SIP clients (Yealink phones). All the SIP clients are on a LAN, so no NAT is involved. I have been experiencing an intermittent problem where a call will be successfully answered, but then dropped by Asterisk 32 seconds after it is answered (with a Retransmission timeout reached on transmission error). Here is an example of this happening in the asterisk console: http://pastebin.com/7LDwHAJe This problem only happens a fraction of the time, so I have been unable to enable SIP debugging before it happens to get a capture. However, usually the caller will just call back immediately and then the call will work without a problem. It sounds like SIP Timer B is what causes the call to be dropped if an ACK to the INVITE is not received within 32 seconds. How can I determine if this is the case and how can I resolve this Retransmission timeout problem? Here is my sip.conf: general] directmedia=no directrtpsetup=no dtmfmode=rfc2833 context=internal allowsubscribe=no qualify=no disallow=all allow=ulaw allow=alaw allow=gsm localnet=10.10.32.0/255.255.248.0 [123] secret=11 host=dynamic type=friend By doing a number of test calls today, I have managed to reproduce this while sip debugging was on, so I have that information available now as well: http://pastebin.com/ZJqzdvY3 This was a call from 113 to 146 via a queue. Note that the asterisk server is at 10.10.32.251. I see the following: INVITE sip:146@10.10.32.96:5062 SIP/2.0 SIP/2.0 180 Ringing SIP/2.0 180 Ringing SIP/2.0 200 OK ACK sip:146@10.10.32.96:5062 SIP/2.0 INVITE sip:146@10.10.32.96:5062 SIP/2.0 SIP/2.0 200 OK ACK sip:146@10.10.32.96:5062 SIP/2.0 INVITE sip:146@10.10.32.96:5062 SIP/2.0 INVITE sip:146@10.10.32.96:5062 SIP/2.0 INVITE sip:146@10.10.32.96:5062 SIP/2.0 INVITE sip:146@10.10.32.96:5062 SIP/2.0 INVITE sip:146@10.10.32.96:5062 SIP/2.0 This appears to start out with a successful SIP conversation (ending with the first ACK), so it is unclear to me why we have two new sets of INVITEs sent afterwards. Also in case it is relevant, the asterisk server has two NICs set up in a bond with bond-mode 1 (active/backup). Does this additional debug information provide any clues to why this intermittent retransmission timeout error is occurring? Thanks, Andrew -- _ -- 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] Retransmission Timeout results in dropped calls after 32 seconds
Hello, I am running Asterisk 11 on CentOS 6.4 with SIP clients (Yealink phones). All the SIP clients are on a LAN, so no NAT is involved. I have been experiencing an intermittent problem where a call will be successfully answered, but then dropped by Asterisk 32 seconds after it is answered (with a Retransmission timeout reached on transmission error). Here is an example of this happening in the asterisk console: http://pastebin.com/7LDwHAJe This problem only happens a fraction of the time, so I have been unable to enable SIP debugging before it happens to get a capture. However, usually the caller will just call back immediately and then the call will work without a problem. It sounds like SIP Timer B is what causes the call to be dropped if an ACK to the INVITE is not received within 32 seconds. How can I determine if this is the case and how can I resolve this Retransmission timeout problem? Here is my sip.conf: general] directmedia=no directrtpsetup=no dtmfmode=rfc2833 context=internal allowsubscribe=no qualify=no disallow=all allow=ulaw allow=alaw allow=gsm localnet=10.10.32.0/255.255.248.0 [123] secret=11 host=dynamic type=friend Thanks! Andrew Martin -- _ -- 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] Phones don't stop ringing when queue is answered
James, The WaitExten()s just provide a pause between the two Queue() calls to let the first group of phones finish ringing. In this example I am ringing the same group (queue_level_1) twice, however in a real-world scenario I would ring queue_level_1 and then ring queue_level_2 which each have a different list of phones. Thanks, Andrew - Original Message - From: James Thomas jthomas...@gmail.com To: Asterisk Users Mailing List - Non-Commercial Discussion asterisk-users@lists.digium.com Sent: Thursday, May 7, 2015 10:20:10 AM Subject: Re: [asterisk-users] Phones don't stop ringing when queue is answered What purpose do the WaitExten()s serve here? Are you really allowing the caller to connect to different extensions in the test-queue context? Have you tried without the WaitExten()s? -- _ -- 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] OpenVPN Clients Intermittently Cannot Call In
- Original Message - From: Guenther Boelter gboel...@gmail.com To: asterisk-users@lists.digium.com Sent: Tuesday, May 5, 2015 1:05:44 AM Subject: Re: [asterisk-users] OpenVPN Clients Intermittently Cannot Call In Looking into it further, in my case it does not appear to be a NATing issue, since running OpenVPN from pfSense means there's no NATing occurring between the clients or between the clients and the asterisk server. Although I was unable to reproduce the problems, I did notice some packet loss and jitter in sip show channelstats, here is a sample: Peer Call ID Duration Recv: Pack Lost ( %) Jitter Send: Pack Lost ( %) Jitter 192.168.32.26446613544@1 00:03:03 94 004238 (97.83%) 0. 00 000244 ( 0.00%) 0. 192.168.32.385b2ebdc92fd 00:03:03 59 01 ( 1.67%) 0. 00 91 ( 0.00%) 0.0028 I was unable to find documentation each of these columns, but the high percentage of loss for received packets for 192.168.32.26 seems suspicious. Do these statistics indicate a problem? Thanks, Andrew Hi Andrew, is this a linux machine? If so, check your NIC with ifconfig for hardware errors. Guenther Guenther, Yes, this machine is running CentOS 6.4 (see my original post for more details). This asterisk server has 2x gigabit NICs set up in a bond with bond mode 1. Both ifconfig and ethtool do not report any hardware errors, although they do show a few checksum errors: eth0 Link encap:Ethernet HWaddr 00:11:22:33:44:55 UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1 RX packets:467927100 errors:0 dropped:0 overruns:1 frame:0 TX packets:304724661 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:131747094082 (122.6 GiB) TX bytes:93869585242 (87.4 GiB) Memory:fb92-fb94 eth1 Link encap:Ethernet HWaddr AA:BB:CC:DD:EE:FF UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1 RX packets:41250363 errors:0 dropped:0 overruns:0 frame:0 TX packets:3467 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:5190889937 (4.8 GiB) TX bytes:1594075 (1.5 MiB) Memory:fb90-fb92 From ethtool -S eth0: tx_smbus: 164709 rx_smbus: 119082408 dropped_smbus: 104036 rx_queue_0_packets: 97532982 rx_queue_0_bytes: 16800645524 rx_queue_0_drops: 1 rx_queue_0_csum_err: 0 rx_queue_0_alloc_failed: 0 rx_queue_7_packets: 53850556 rx_queue_7_bytes: 12797600155 rx_queue_7_drops: 0 rx_queue_7_csum_err: 41 rx_queue_7_alloc_failed: 0 Thanks, Andrew -- _ -- 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] OpenVPN Clients Intermittently Cannot Call In
- Original Message - From: Administrator TOOTAI ad...@tootai.net To: asterisk-users@lists.digium.com Sent: Friday, May 1, 2015 6:42:38 AM Subject: Re: [asterisk-users] OpenVPN Clients Intermittently Cannot Call In Le 01/05/2015 00:05, Andrew Martin a écrit : - Original Message - From: Administrator TOOTAI ad...@tootai.net To: asterisk-users@lists.digium.com Sent: Thursday, April 30, 2015 4:43:33 PM Subject: Re: [asterisk-users] OpenVPN Clients Intermittently Cannot Call In I am running Asterisk 11.12.0 on CentOS 6.4. The asterisk server and internal phones are located on the 10.10.32.0/21 LAN subnet. I have many internal SIP phones, which appear to be working correctly. I have a few external phones (Yealink SIP-T32G or other Yealink model) on 192.168.32.0/24 which have an OpenVPN client configured on them that connects back to the LAN network through a pfSense gateway with OpenVPN configured on it. I faced problems with pfsense -no VPN involved- and finally installed siproxd on it. Also set the firewall mode to conservative. Daniel, Thanks for the information. Do you have an example or documentation on the siproxd configuration that you used? No, just follow the basis of the parameters given by the package. If I remember, SIP use the proxy siproxd and RTP is direct. Looking into it further, in my case it does not appear to be a NATing issue, since running OpenVPN from pfSense means there's no NATing occurring between the clients or between the clients and the asterisk server. Although I was unable to reproduce the problems, I did notice some packet loss and jitter in sip show channelstats, here is a sample: Peer Call ID Duration Recv: Pack Lost ( %) Jitter Send: Pack Lost ( %) Jitter 192.168.32.26446613544@1 00:03:03 94 004238 (97.83%) 0. 00 000244 ( 0.00%) 0. 192.168.32.385b2ebdc92fd 00:03:03 59 01 ( 1.67%) 0. 00 91 ( 0.00%) 0.0028 I was unable to find documentation each of these columns, but the high percentage of loss for received packets for 192.168.32.26 seems suspicious. Do these statistics indicate a problem? Thanks, Andrew -- _ -- 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] OpenVPN Clients Intermittently Cannot Call In
Hello, I am running Asterisk 11.12.0 on CentOS 6.4. The asterisk server and internal phones are located on the 10.10.32.0/21 LAN subnet. I have many internal SIP phones, which appear to be working correctly. I have a few external phones (Yealink SIP-T32G or other Yealink model) on 192.168.32.0/24 which have an OpenVPN client configured on them that connects back to the LAN network through a pfSense gateway with OpenVPN configured on it. Asterisk server LAN IP: 10.10.32.10 My internal test phone: 146 at 10.10.32.96 My external test phone: 265 at 192.168.32.10 My sip.conf for these external users is as follows: http://pastebin.com/2b9YE7Dz The dialplan uses this Dial() invocation when dialing either an internal or external phone. Note that the max timeout is 12 seconds: exten = _[12]XX,1,Dial(SIP/${EXTEN},12) These external phones register correctly, and internal users can call these external users, the phones ring immediately, and the call is normal. However, if the external users try to dial an internal phone, I've observed some different failure modes: * operating normally: sometimes the call rings immediately, the internal user answers, and the audio is present immediately * ringing delay and no connection even after pickup: sometimes there's a significant delay between when the call starts ringing on the external side and when it actually starts ringing on the internal user's phone. Consequently, the internal user only has 1 or 2 rings to answer. Even if they do answer during this time, the line is dead and it goes to voicemail (the next step in the dialplan) * delay before audio is connected after answer: sometimes the internal user answers, but there's a delay of 3-10 seconds before either party can hear audio I've enabled rtp and sip debug for this particular external phone (192.168.32.10) and attached console logs from both types of these failures: * ringing delay and no connection even after pickup: http://pastebin.com/fe1khEmF * delay before audio is connected after answer: http://pastebin.com/uZSMKczk What else can I try to debug these problems? Since it is intermittent, I am not always able to reproduce (sometimes the calls work just fine). Thanks, Andrew Martin -- _ -- 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] OpenVPN Clients Intermittently Cannot Call In
- Original Message - From: Administrator TOOTAI ad...@tootai.net To: asterisk-users@lists.digium.com Sent: Thursday, April 30, 2015 4:43:33 PM Subject: Re: [asterisk-users] OpenVPN Clients Intermittently Cannot Call In I am running Asterisk 11.12.0 on CentOS 6.4. The asterisk server and internal phones are located on the 10.10.32.0/21 LAN subnet. I have many internal SIP phones, which appear to be working correctly. I have a few external phones (Yealink SIP-T32G or other Yealink model) on 192.168.32.0/24 which have an OpenVPN client configured on them that connects back to the LAN network through a pfSense gateway with OpenVPN configured on it. I faced problems with pfsense -no VPN involved- and finally installed siproxd on it. Also set the firewall mode to conservative. Daniel, Thanks for the information. Do you have an example or documentation on the siproxd configuration that you used? Thanks, Andrew -- _ -- 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] customizing Asterisk CLI
Hello, when I am in the Asterisk CLI, I can exit with 'exit' or 'quit'. Ctrl+d has no effect. Is there any way to bind Ctrl+d to exit/quit ? Also, when I am in asterisk CLI, I can use command history and readline functions such as CTRL+r to search. But not all functions are available. For example, the alternate mappings for page up and page down to search the history do not work. They work in everything else (bash, mysql, ..) $ cat /etc/inputrc \e[5~: history-search-forward \e[6~: history-search-backward is there a way to make it work in asterisk ? I am using Asterisk 11.13 on Debian Wheezy. -- _ -- 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] Do public wifi block IAX port 4569
But when I catch open wifi network in a mall or a Tim Horton zoiper fail to register. Do they block IAX port 4569 or IAX protocol? Sometimes they use a Captive portal, you have to open a webpage first and confirm some agreement. Until you do, all the packets except those being redirected to this are dropped. Sometimes they only allow some ports, eg. 80, 443, or protocols (http...) Martin -- _ -- 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] asterisk prompt
Hello, I am trying to set up color prompt. In the documentation I have found this: %Cn[;n] Change terminal foreground (and optional background) color to specified. A full list of colors may be found in include/asterisk/term.h* But nowhere could I find what format the color code should be. I have tried all possible permutations, none of them works: ASTERISK_PROMPT=%Cn[COLOR_BLUE] %H: asterisk -vvr ASTERISK_PROMPT=%Cn[32;128] %H: asterisk -vvr ASTERISK_PROMPT=%Cn[32;] %H: asterisk -vvr ASTERISK_PROMPT=%Cn[;32] %H: asterisk -vvr ASTERISK_PROMPT=%Cn[;COLOR_CYAN] %H: asterisk -vvr ASTERISK_PROMPT=%Cn[32|128] %H: asterisk -vvr can somebody please tell me how to make my asterisk prompt red, for example? __ Also, I would like to piggyback a second question: I am using Asterisk 11.13 on Debian Wheezy. When I am in asterisk CLI, I can use command history and readline functions such as CTRL+r to search. But not all functions are available. For example, the alternate mappings for page up and page down to search the history do not work. They work in everything else (bash, mysql, ..) $ cat /etc/inputrc \e[5~: history-search-forward \e[6~: history-search-backward is there a way to make it work in asterisk ? thanks, Martin -- _ -- 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] Does Asterisk 1.8. Supports Video Calls
Dne St 3. září 2014 10:49:41, Khalid Touati napsal(a): I will be trying with H263+ and let you guys know, thank you for the good news! I almost lost hope in Asterisk enabling me to use video (with identical softphones using same codec :) ) It only worked for me when I had only one video codec allowed. (h.264 in my case) Not only there is no trnscoding available but also video codec negotiation doesn't (or didn't...) work properly. Martin -- _ -- 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] Internal calls without voice transport
Hey, we're experiencing a weird problem with Asterisk 1.8.13.1 (1:1.8.13.1~dfsg1-3+deb7). Calls that leave and enter Asterisk via a PBX (sipgate.de) work perfectly fine, almost 100% of the time. However, calls that are routed to sipgate.de, which then routes the call back to our Asterisk instance are silent most of the time. What I mean with that is that even though RTP traffic flows, neither side can hear anything from the other. This problem happens when people at site A dial someone at site B using the number provided by sipgate.de, but also if people call each other within a site through the external number, i.e. if I dial 089-1234567-100 from 089-1234567-200. I have not been able to reproduce this problem with purely internal calls, i.e. calling ext. 100 directly, so I am assuming there's a problem due to sipgate's involvement. However, as far as I understand, once the call is established (and both parties' phones suggest that), the traffic flows only via Asterisk (directmedia = update,nonat), so the problem is likely to be found there, no? Before I shower you with debug logs and traces, I am wondering if this sounds familiar to anyone…? Thanks, -- martin | http://madduck.net/ | http://two.sentenc.es/ if god had meant for us to be naked, we would have been born that way. spamtraps: madduck.bo...@madduck.net digital_signature_gpg.asc Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current) -- _ -- 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] Internal calls without voice transport
By chance, I managed to fig into this a bit and found the exact moment when audio stops. It is exactly the moment when the counterparty picks up and RTP debug output says: Got RTP packet from46.244.255.146:8058 (type 00, seq 000680, ts 340914880, len 000160) Sent RTP packet to 46.244.255.146:8058 (type 00, seq 026000, ts 3578986600, len 000160) -- SIP/lehel-sipgate-3573 answered SIP/lehel-martin-3572 -- Remotely bridging SIP/lehel-martin-3572 and SIP/lehel-sipgate-3573 Sent RTP P2P packet to 46.244.255.146:8058 (type 08, len 000160) Sent RTP P2P packet to 46.244.255.146:8058 (type 08, len 000160) so RTP switches to RTP P2P and no more packets are received from the phone. I did have a sniffer running on 46.244.255.146, and Wireshark really rocks, so now I know that the gateway firewall is at fault, and indeed, for some reason, nf_conntrack_sip and nf_nat_sip were not loaded. Now I am wondering how it worked in the first place, but that's that. Maybe this will fix things. Anyway, I don't quite yet understand what RTP P2P packets are or why they are sometimes used and not at other times. I assume they are packets intended to be exchanged directly between the two clients, but since I have MixMonitor() on Asterisk, this shouldn't actually be possible as Asterisk should always force itself into the middle. Thoughts? -- martin | http://madduck.net/ | http://two.sentenc.es/ dies ist eine manuell generierte email. sie beinhaltet tippfehler und ist auch ohne großbuchstaben gültig. spamtraps: madduck.bo...@madduck.net digital_signature_gpg.asc Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current) -- _ -- 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] modify from field sip headers
Hello, Im trying to modify the 'From' field in my sip headers in order to include extra info (user=tel) as it follows: From : sip:005114824403@200.91.0.146;user =tel However asterisk is still doing this header: sip:111@1.1.1.1;tag=as167b4b82 Is there a way to accomplish this? Ive been also looking up AGI but without any success. Ideas are welcome! Kind regards -- _ -- 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] Asterisk Fax detection *11.7
in the sip.conf i specified [general] sendrpid=rpid trustrpid=yes language=de videosupport=yes callevents=yes caninvite=yes There is a typo in the last line above. Should be canreinvite. AFAIK it's obsoleted in favor of directmedia. BTW, try to set it to NO. BTW, what is the codec order? Fax detection doesn't work reliably over compressed codecs (g729 etc...), in my case didn't work at all... try to add: directmedia=no disallow=all allow=ulaw allow=alaw to your peer definition. Martin --- Tato zpráva neobsahuje viry ani jiný škodlivý kód - avast! Antivirus je aktivní. http://www.avast.com -- _ -- 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] Cisco IP Phones and Skinny in asterisk
If I need to use SIP, from where to get the suitable firmware for these Cisco IP Phones 7942G? Be careful, not all versions of SIP firmware work with asterisk. I do have 8-3-1 (cmterm-7941_7961-sip.8-3-1)here and it works just fine with my 7961. Downloaded somewhere. Version 9.x is broken, SIP only works over TCP. Where do u download the SIP firmware usually for your Cisco IP Phones? Search for cmterm-7941_7961-sip.8-3-1.zip I also have some other files here but I don't remember what was the reason for them :-( Martin Your kindly help is highly appreciated. Regards Bilal I'm using the sip firmware.. It's alright.. I feel like I'm not receiving all the features I should.. But MWI works and multiple call appearance.. --- Tato zpráva neobsahuje viry ani jiný škodlivý kód - avast! Antivirus je aktivní. http://www.avast.com -- _ -- 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] language specific email templates
Hi, I am new to Asterisk. I'm using it behind a kamailio sip-router to provide voicemail boxes to sip-users. I followed these instruction: http://www.voip-info.org/wiki/view/Realtime+Integration+Of+Asterisk+1.4+With+Kamailio+1.5.x to set everything up, using ARA with a MySQL DB. After a few tweaks everything is basically working, however, a few questions remain that I could not find clear answers for - anywhere. Maybe some of the experts can help a little ... So far, my Asterisk DB features 1 table (voicemessages) and 2 views (vmusers and sipusers). vmusers shows the following columns: uniqueid, customer_id, context, mailbox, password, fullname, email, pager, stamp (sipusers shows: name, defaultuser, type, secret, host, callerid, context, mailbox, nat, qualify, fromuser, fromuser, authuser, fromdomain, insecure, canreinvite, disallow, allow, restrictcid, defaultip, ipaddr, port, regseconds) Questions: 1) In vmusers, the content for column fullname is composed from 2 columns (i.e. first_name, last_name) of the kamailio subscriber table that do not even natively exist there, but were manually added by me (to comply with the instructions). Q1a: Is the fullname column in the vmusers view mandatory for Asterisk to function properly? fullname might always stay empty... Q1b: Is the stamp column in the vmusers view mandatory for Asterisk to function properly? 2) in my world, sip-users have a language. At certain points, Asterisk will communicate with my users regarding voicemail. e.g.: a) Asterisk delivers the message left as a wav-attachment by email, b) VoicePrompts guide the user through the voicemail-menu So far, I am able to hard-code the language for the voiceprompts in extension.conf with Set(CHANNEL(language)=fr). But this set the language for everybody. Also, you can customise the email template ($emailbody, etc) for voicemail delivery in voicemail.conf. However, this is also covers one language only. Q2a:How can configure Asterisk I pick the voicemail-prompts of the respective sip-users language? Q2b:Is it useful for that purpose, to add a language column to the vmusers view ? Q2c:Where can language-specific email-templates for voicemail delivery be supplied and how can be achieved that the correct one is used ? 3) I would also like to use Asterisk as a SIP client (since Kamailio can't do this). Each vmuser may have one or many SIP accounts with foreign registrars. I would like Asterisk to register those accounts with their registrars and forward incoming calls to the kamailio (parent) account that the vmuser owns. (The kamailio (parent) account -in turn- shall forward this call to the user's asterisk voice-box, if the user is busy/not-registered/etc ). Q3a:How can I use ARA to configure Asterisk as a SIP client to act in the described fashion ? Q3b:Is it useful/necessary for that purpose, to host dial-plans in the MySQL-DB as well ? Q4: Can you point to some documentation that explains ARA a little more in depth and possibly illustrates a few examples? For any hint - thank you very much in advance! Best regards, -Thomas -- _ -- 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] Detecting fax without Aswer()ing the call first?
Trying to make the fax detection work. My current setup (with no fax) is done without Answer(), so the call is answered only when someone actually picks-up the phone. But when the incoming call is fax, I can her the tone and call is never forwarded to Fax extension. But... Strange thing happens when I (mistakenly) put a call on hold: -- Executing [youngandson-test@incoming:2] Gosub(SIP/66.193.176.35-00b8, process-callerid,s,1) in new stack -- Executing [s@process-callerid:1] Verbose(SIP/66.193.176.35-00b8, 3,- Original CallerID: FREE CALL TOLL 18009806858 ) in new stack -- - Original CallerID: FREE CALL TOLL 18009806858 -- Executing [s@process-callerid:2] GotoIf(SIP/66.193.176.35-00b8, 1?4) in new stack -- Goto (process-callerid,s,4) -- Executing [s@process-callerid:4] GotoIf(SIP/66.193.176.35-00b8, 0?8) in new stack -- Executing [s@process-callerid:5] GotoIf(SIP/66.193.176.35-00b8, 0?8) in new stack -- Executing [s@process-callerid:6] GotoIf(SIP/66.193.176.35-00b8, 1?7:8) in new stack -- Goto (process-callerid,s,7) -- Executing [s@process-callerid:7] Set(SIP/66.193.176.35-00b8, CALLERID(num)=18009806858) in new stack -- Executing [s@process-callerid:8] Return(SIP/66.193.176.35-00b8, ) in new stack -- Executing [youngandson-test@incoming:3] Macro(SIP/66.193.176.35-00b8, stdexten,210,sip/ra2501) in new stack -- Executing [s@macro-stdexten:1] Dial(SIP/66.193.176.35-00b8, sip/ra2501,360) in new stack == Using SIP RTP CoS mark 5 -- Called sip/ra2501 -- SIP/ra2501-00b9 is ringing [2013-02-24 17:05:12] WARNING[6554]: chan_sip.c:8979 process_sdp: ignoring 'video' media offer because port number is zero -- SIP/ra2501-00b9 answered SIP/66.193.176.35-00b8 -- Locally bridging SIP/66.193.176.35-00b8 and SIP/ra2501-00b9 [2013-02-24 17:05:31] WARNING[6554]: chan_sip.c:8979 process_sdp: ignoring 'video' media offer because port number is zero [2013-02-24 17:05:31] WARNING[6554]: chan_sip.c:8945 process_sdp: ignoring 'audio' media offer because port number is zero -- Started music on hold, class 'default', on channel 'SIP/66.193.176.35-00b8' [2013-02-24 17:05:31] WARNING[6532]: res_musiconhold.c:659 monmp3thread: poll() failed: Interrupted system call [2013-02-24 17:05:31] WARNING[6532]: res_musiconhold.c:659 monmp3thread: poll() failed: Interrupted system call [2013-02-24 17:05:34] WARNING[6532]: res_musiconhold.c:659 monmp3thread: poll() failed: Interrupted system call [2013-02-24 17:05:34] WARNING[6532]: res_musiconhold.c:659 monmp3thread: poll() failed: Interrupted system call == Redirecting 'SIP/66.193.176.35-00b8' to fax extension due to CNG detection -- Stopped music on hold on SIP/66.193.176.35-00b8 == Spawn extension (incoming, fax, 1) exited non-zero on 'SIP/66.193.176.35-00b8' in macro 'stdexten' == Spawn extension (incoming, fax, 1) exited non-zero on 'SIP/66.193.176.35-00b8' -- Executing [fax@incoming:1] Gosub(SIP/66.193.176.35-00b8, receive-fax,fax,1) in new stack -- Executing [fax@receive-fax:1] Verbose(SIP/66.193.176.35-00b8, 3,Incoming fax from 18009806858) in new stack -- Incoming fax from 18009806858 -- Executing [fax@receive-fax:2] Set(SIP/66.193.176.35-00b8, FAXDEST=/var/spool/fax/incoming) in new stack -- Executing [fax@receive-fax:3] Set(SIP/66.193.176.35-00b8, FAX-FILENAME=20130224-170534 Incoming Fax) in new stack -- Executing [fax@receive-fax:4] ReceiveFAX(SIP/66.193.176.35-00b8, /var/spool/fax/incoming/20130224-170534 Incoming Fax.tif) in new stack -- Channel 'SIP/66.193.176.35-00b8' receiving FAX '/var/spool/fax/incoming/20130224-170534 Incoming Fax.tif' == Using UDPTL CoS mark 5 == Spawn extension (receive-fax, fax, 4) exited non-zero on 'SIP/66.193.176.35-00b8' Fax is suddenly detected and received! (Im not sure why all these warnings came up, something misconfigured in music on hold...) Is there any way to make Asterisk listen for CNG tone during the connected call, eliminating the need for Answer() and Wait()? Is the fax detection completely impossible when compressed codec (g729, gsm...) is in use? I've read its unreliable but does not work at all for me. (Asterisk 1.8.13 installed from Debian repository) Thanks Martin -- _ -- 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 - Desktop SIP phone with OpenVPN client
Am 21.01.2013 14:21, schrieb Olivier: Hello, I've seen some desktop SIP phones (Snom, Yealink) intregrate a VPN (OpenVPN ?) client. Has someone experience to share about that particular feature ? Is this experience rather successful ? My underlying question is can one supervise and configure these desktop phones, in teleworking environment ? Is DHCP required ? With Snom phones, those need an underlying network connection (d'oh, you wouldn't guess :-). That can be configured just like you are used to do it with snom phones - DHCP, fixed IP, whichever you like. They also need a reachable NTP server. Then they will ( after booting) download the VPN config from your (hopefully protected) server and connect to the OpenVPN server. Address assignment on the VPN link is done by the OpenVPN internal mechanism. You will be able to reach the phone's web interface, afaik, both over its local address and the OpenVPN assigned one. Make sure to either have your PBX on the machine with the OpenVPN daemon or add appropriate route configuration to the OpenVPN client config. BR AMH -- _ -- 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] Recorded reminders
Am 13.01.2013 03:17, schrieb Adolphus Enaboifo: Hi List Members , its been about one months since I built my first Asterisk server. What I want to know is: are there ways to make Asterisk take recorded reminders. This is the scenario I have in mind. 1 You place a call to a specific extension say 350. 2 On recognizing the incoming extension the reminder application at extension 350 prompts you to enter a number say 1 to record a message to your profile as well as input the time when the application will call you to playback the message. 3 or enter another number say 0 to playback all your recorded reminders in your profile.with options to add to the list or delete from the list. and of course there will be a limit on the amount of messages per user. Please if such applications exist can you guys show me how to configure it. Hi Adolphus, this sounds like something that a little scripting + call files can do. There may be better ways (and others may point those out in a flash), but this is what springs to my mind: - Have one directory for recorded audio for each user. Name audio files for their target time, like 201301131500.wav - When someone calls 350 and presses 1, check the number of files in that directory. If more than MAXMSGS, deny. - If there is already a recording for the target time, deny. - Else prompt for target day (today, tomorrow...) and time. If a file for that date/time exists, deny. - Record file, move to the right directory - Create a call file on the same filesystem as the spool directory - touch it for the target date/time and move into call files directory You'd need some nice scripting later on to handle that outgoing call. If the messages is read (and possibly acknowledged by pressing 1 or the like), the sound file should be deleted. If either the call fails or the acknowledgement is not given, the sound file should be re-named to a new time (say, one hour later) and a new call file generated. A few things that also should be thought about: - To not have endless reminder calls over and over, you could have a failed delivery counter per user - once that reaches a certain threshold, say 5, the reminders can be emailed to the user and deleted from the spool. You can reset that counter if the counter file has a change date older than 2 days with a cronjob - so if no failed deliveries happen within 3 days or so, they will be activated again. Make sure the user is informed about this problem iff a file exists when he calls in to record a new message. - Do sane error checking. When the call file is fired and fails to find the wav file it expects, this should not trigger another call. Perhaps an email avoid endless loops. - It might be a good idea to have a variation in the touch to the call file such that the expected time is only precise in minutes. Like add a random number of seconds in the range (0...50, or even -180 to 180 if precision is not essential). Be sure to document that or users might complain that the telephone system clock is not space-age-precise (Lusers!) This should get around everyone wanting to be reminded of going home in time for the soccer match, and everyone typing in a reminder time of 1630. - You should monitor usage; there can be still quite a lot of calls to interesting times. Same problem that automatic window blinds have: If everyone sets the DCF controlled clock to open the shutters at 8:00 precisely, the start current of possibly many motors may be _noticeable_ for the power company. That is why those devices do not have and do not need clocks with ultra- high precision - some even vary the morning/evening action time by several minutes on purpose. BR AMH smime.p7s Description: S/MIME Kryptografische Unterschrift -- _ -- 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] Playing music through VoIP handsets while on hook
Am 11.01.2013 02:42, schrieb Christopher Harrington: Wow, that seems wildly bandwidth inefficient. Is it possible to do multicast VoIP? Snom phones[*] do support multicast streaming. You can setup an IP port combination that the phone will accept audio at; once stream data starts arriving, the phone will start playback. [*] and possibly others as well, but that is what I have on my desk. Reasonably multicast will be ignored during a call though. AFAIK Asterisk supports Page to multicast. VLC or the like may also be audio sources. BR AMH smime.p7s Description: S/MIME Kryptografische Unterschrift -- _ -- 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] Impromptu conferencing
also sprach Brandon B. bran...@brellsystems.com [2012.12.03.0132 +0100]: [all-inbound-for-999] ; inbound extension through a conference room exten = 999,1,MeetMeCount(999,COUNT-999); exten = 999,2,GotoIf($[${COUNT-999}=1]?10); exten = 999,3,Dial(SIP/99,999,G(6)); exten = 999,4,Hangup; exten = 999,6,MeetMe(999,FAqx); exten = 999,7,MeetMe(999,Fqx); ; bypass the conference room for multiple inbound calls exten = 999,10,Dial(SIP/999); This is an interesting approach, but I am still not sure how to add the third party. Sure, I can call them up and tell them to dial a number, but I'd really rather be able to just switch them in. What would need to be done for a user to e.g. suspend the conference, dial another number and finally merge the channels? Do I need the manager API for that, like this: http://www.voip-info.org/wiki/view/Asterisk+cmd+MeetMe#Mergingconferences ? -- martin | http://madduck.net/ | http://two.sentenc.es/ if one cannot enjoy reading a book over and over again, there is no use in reading it at all. -- oscar wilde spamtraps: madduck.bo...@madduck.net digital_signature_gpg.asc Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current) -- _ -- 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] Managing complex setups with Asterisk
also sprach Raj Mathur (राज माथुर) r...@linux-delhi.org [2012.11.16.1005 +0100]: Warning: Not a fan of using whitespace as semantic markup, so no Django this side. Fine with Perl or Java, though. As long as we can agree on using a database (i.e. no MySQL) or the filesystem (Git…), then the question of which language to use for a frontend is secondary. I wouldn't chose Java myself, but I suspect that the job is enough text processing that Perl would actually be a sensible choice — except I won't help since I don't know it well. But shouldn't the first step be a mixture of database design and requirement specification? I would like a solution that keeps users, sites, and numbers (belonging to trunks (hardware, as well as SIP)) separate and then basically allows for free combinations. User A might have a desk at site I, to which a range of numbers is assigned, and in addition to an internal number (e.g. a one digit site prefix followed by a two digit number, or a site-independent number assigned per person), one of those externals rings at A's desk. User B might roam between sites I and II and either should have the same internal/external numbers ringing at both desks, or require some sort of login to let the system know where to ring. User C might have a desk with a phone at site II, but is out most of the time, and calls should also ring on his/her cell. User D has a smart phone and wants both his desk and the smart phone to ring. All users want voicemail and be able to configure the time until voicemail answers. During vacation etc., a forwarding number should be configurable. Some users might want their voicemail to say e.g. press 1 now to be transferred to my cell. We would also want to be able to specify per-user whether to use UDP, TCP or IAX, who can transfer and park calls, who can record them with mix monitor, who can create ad-hoc conferences, their language, who has a video telephone… … and of course there ought to be a way to set user-specific sip.conf settings. On top, it would be nice if there were some sort of group inheritance. This sounds a bit like LDAP, except LDAP can't actually do it. What I mean is that I'd really like to define a group of e.g. managers who all have internal numbers beginning with 11 and secretaries who can create conferences, and then associate users with (multiple) groups, inheriting and merging the settings. These are — I think — my base requirements. What would you add? -- martin | http://madduck.net/ | http://two.sentenc.es/ quick!! act as if nothing has happened! spamtraps: madduck.bo...@madduck.net digital_signature_gpg.asc Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current) -- _ -- 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] Thankfully no longer with Puppet (was: Managing complex setups with Asterisk)
also sprach Shaun Ruffell sruff...@digium.com [2012.11.08.1615 +0100]: My systems are already managed automatically, thankfully no longer with Puppet. ;) Just out of curiosity why do you say this? Sorry for the late reply, I don't want to go into this on the list, but if you are curious: http://madduck.net/blog/2012.10.19:configuration-management/ -- martin | http://madduck.net/ | http://two.sentenc.es/ gentoo: the performance placebo. spamtraps: madduck.bo...@madduck.net digital_signature_gpg.asc Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current) -- _ -- 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] Managing complex setups with Asterisk
also sprach Paul Belanger paul.belan...@polybeacon.com [2012.11.08.2304 +0100]: Either way, it sounds like you need to store your data some place and start building it out. To recap: given that Asterisk RealTime doesn't really provide anything more than real-time access to data (i.e. the data in the database are not any more structured that they are in /etc/asterisk), any more logical and/or abstract approach to Asterisk configuration means that the data have to come from elsewhere and be brought into shape. Either the abstraction happens in a relational database and Asterisk accesses stored procedures or views (I would not use LDAP due to childhood traumata), or the relational database is used to generate Asterisk's configuration files, or some other data source is used to generate these configuration files. It's a shame that noone has done anything into this direction yet. On the other hand, it means that there aren't already a dozen PHP+MySQL hacks out there, and that's a good thing. So if I design the database (PostgreSQL), anyone interested in providing a frontend, e.g. using Django? Are people interested in discussing the design here and making it widely usable? I only have my own three use-cases to refer to, and I would probably impose my own paradigms… Does anyone already have something done into that domain? -- martin | http://madduck.net/ | http://two.sentenc.es/ she is absolutely inadmissible into society. many a woman has a past, but I am told that she has at least a dozen, and that they all fit. -- oscar wilde spamtraps: madduck.bo...@madduck.net digital_signature_gpg.asc Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current) -- _ -- 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] Impromptu conferencing
also sprach Administrator TOOTAI ad...@tootai.net [2012.11.08.0954 +0100]: Does anyone have a working example they would be willing to share? As said by James, you just have to transfer all parties in a conference room and then you call this conference. The scenario is usually that we are in a discussion and need a third party. I suppose I can tell the initial correspondent I will now transfer you to a conference room, enter this PIN when asked, then hang up, dial the next, and do the same. What I would like to do is to convert the current channel into a conference room, go on hold and dial a third party, and when I come back to the conference room, I bring along the third party. Put differently: I don't really want my correspondents to have to do anything, just wait and listen to MOH. -- martin | http://madduck.net/ | http://two.sentenc.es/ nullum magnum ingenium sine mixtura dementiae fuit. -- seneca spamtraps: madduck.bo...@madduck.net digital_signature_gpg.asc Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current) -- _ -- 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] Managing complex setups with Asterisk
also sprach Jeff LaCoursiere j...@sunfone.com [2012.11.07.2049 +0100]: Just to chime in, if you REALLY want multi-tenant, it is super easy and surprisingly efficient to use kernel level virtualization to run multiple instances of asterisk (and even FreePBX). We use LXC to do this. The host runs an instance that has the dahdi hardware, drivers, and upstream connections. The clients have SIP connections to the host for all inbound/outbound Yes, separation into logical units is one way forward, but then you will necessarily have redundant configuration between the instances. It's nice to have clear separations (unless you cannot clearly separate), but I am not convinced that this decreases complexity. -- martin | http://madduck.net/ | http://two.sentenc.es/ toleranz heißt, die fehler der anderen entschuldigen. takt heißt, sie nicht bemerken. -- arthur schnitzler spamtraps: madduck.bo...@madduck.net digital_signature_gpg.asc Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current) -- _ -- 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] Impromptu conferencing
also sprach Administrator TOOTAI ad...@tootai.net [2012.11.08.1018 +0100]: For a 3 way conference, all those days phones are able to do this. Yeah, except I want Asterisk to handle that, not my phone (which might lose reception or run out of battery etc.). -- martin | http://madduck.net/ | http://two.sentenc.es/ doesn't he know who i think i am? -- phil collins spamtraps: madduck.bo...@madduck.net digital_signature_gpg.asc Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current) -- _ -- 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] Managing complex setups with Asterisk
Hello, we are finally going to redesign our Asterisk-Setup, which has grown quite complex. We have five sites with a total of 400 users, 15 SIP registrations and 3 IAX registrations. We do not use any VoIP-hardware, so it's all software-based. But we make heavy use of features, including voicemail, followme, conferencing, call-recording, and queuing. As I said, the configuration has grown quite complex — so complex that we are all a bit scared to touch it. It works, but as we are now adding a sixth site and upgrading the hardware, we thought it would be a good opportunity to get the sixth site up and running on a new box, then migrate the other sites. Now we are trying to figure out how to organise sip.conf, iax.conf and extensions.conf. I read about Realtime configuration, but I was a bit disappoointed because it's really just moving the section-key-value store from the flat files to a relational database without really making use of any relational features. Sure, it's realtime thereafter, but not any less complex. So what to do? Does anyone have a similar setup and would like to offer a glance into their configs? Are there best practices? Or is there maybe even software (Linux) to manage setups? Cheers, -- martin | http://madduck.net/ | http://two.sentenc.es/ not the truth in whose possession any man is, or thinks he is, but the honest effort he has made to find out the truth, is what constitutes the worth of man. -- gotthold lessing spamtraps: madduck.bo...@madduck.net digital_signature_gpg.asc Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current) -- _ -- 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] Managing complex setups with Asterisk
Can Asterisk do virtual hosting? While I want/need the sites to be hosted by the same instance (so that e.g. calls can be transferred easily), I don't want to have to name my peers [site1-john], and I want people to be able to SIP-dial j...@site1.example.org and j...@site2.example.org and trust that Asterisk knows what to do. Thanks, -- martin | http://madduck.net/ | http://two.sentenc.es/ the human brain is like an enormous fish -- it is flat and slimy and has gills through which it can see. -- monty python spamtraps: madduck.bo...@madduck.net digital_signature_gpg.asc Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current) -- _ -- 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] Managing complex setups with Asterisk
also sprach Joshua Colp jc...@digium.com [2012.11.07.1831 +0100]: Peer names have to be distinct, this is just a fundamental design element of chan_sip. What a lot of people end up doing is instead of treating peers as people they treat them as devices. The peer name becomes the MAC address of the device they have been assigned. Especially in combination with users.conf, this can become quite cumbersome. Also, it solves the sip.conf problem, but in extensions.conf, your contexts still need to encode the locality/domain, e.g. [site1-phones], [site2-outgoing] and [incoming-to-site3]. This is all doable, with prefixes and #includes, but it requires more discipline than if Asterisk would simply learn to virtually host. ;) Also, when users have multiple devices, then handing out two sets of credentials is a bit of a pain. I realise that this is not specific to your suggestion, but I do recall a university using Asterisk that provided 10 logins for everyone, i.e. if my username was 12345, then 12345[0-9] would all be valid SIP login names using the same password. Any idea how this was done? 10 stanzas? ;) -- martin | http://madduck.net/ | http://two.sentenc.es/ brevity is the soul of wit. -- polonius (hamlet) brevity is ... wit. -- the simpsons spamtraps: madduck.bo...@madduck.net digital_signature_gpg.asc Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current) -- _ -- 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] Impromptu conferencing
Dear list, we would really like to be able to invite a third and fourth party to our current one-on-one call. At the moment, we have to agree to dial into MeetMe 10 minutes later, then make calls to the third parties, and hope it all works out. I have found a couple of examples on the Internet for converting channels into conferences, but I could not get any of them working. Does anyone have a working example they would be willing to share? Thanks, -- martin | http://madduck.net/ | http://two.sentenc.es/ picture yourself in a boat on a river with tangerine trees and marmelade skies... -- the beatles spamtraps: madduck.bo...@madduck.net digital_signature_gpg.asc Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current) -- _ -- 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] Managing complex setups with Asterisk
also sprach Paul Belanger paul.belan...@polybeacon.com [2012.11.07.2340 +0100]: What is your point of pain? Right now we do most of the configuration, provisioning, and system management outside of asterisk. My systems are already managed automatically, thankfully no longer with Puppet. ;) I am only talking about configuration of Asterisk, whether in /etc/asterisk or some sensible external data source. My point of pain is the complexity due to a couple of special cases, e.g. - Roaming users, i.e. no 1:n relation between sites and users; - Multiple devices per user (some want them all to ring, some want individual extensions but shared voicemail, …) - Keeping track of the mappings between incoming calls (from SIP providers) and extensions to ring (using incoming contexts and extension groups for that) - Keeping track of which extension uses which outgoing trunk - … With a logical naming scheme, a policy and include files, this is all working. But it's very error-prone and there is a bit of redundancy in the information, so I was wondering if there wasn't a better way. Either way, don't manually build your 6th machine. Start from fresh using some sort of automated tool (chef / puppet). This will help you get on the right path. The new machine for the 6th site is up and running (provisioning (not image-based) took less than half an hour). What now? ;) -- martin | http://madduck.net/ | http://two.sentenc.es/ science without religion is lame, religion without science is blind. -- albert einstein spamtraps: madduck.bo...@madduck.net digital_signature_gpg.asc Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current) -- _ -- 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] Managing complex setups with Asterisk
also sprach Logan Bibby lo...@keobi.com [2012.11.08.0747 +0100]: What about just setting up a database which stores your data however you want then generate static files from that data or creating views for realtime (where appropriate)? Sure, I could do that. First, however, I would like to keep scouting for existing solutions. I prefer not to cook my own solutions but to adopt and contribute to existing (free) solutions. -- martin | http://madduck.net/ | http://two.sentenc.es/ whatever you do will be insignificant, but it is very important that you do it. -- mahatma gandhi spamtraps: madduck.bo...@madduck.net digital_signature_gpg.asc Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current) -- _ -- 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] MFC/R2 detected as ISDN PRI
Hi list, I'm trying to setup an asterisk 1.8.0 with MFC/R2, but I'm having these error messages loading chan_dahdi: module load chan_dahdi.so ERROR[9241]: chan_dahdi.c:11848 mkintf: Signalling requested on channel 1 is MFC/R2 but line is in ISDN PRI signalling ERROR[9241]: chan_dahdi.c:16180 build_channels: Unable to register channel '1-15' I got the config in /etc/asterisk/chan_dahdi.conf with the correct signalling: signalling=mfcr2 mfcr2_variant=ar Why asterisk detects it as ISDN PRI? Is there any way to force it to use MFC/R2? Am I missing something? Any tip or link to documentation is really appreciated. Here goes some info about what I have: # dahdi_scan [1] active=yes alarms=OK description=Wildcard TE121 Card 0 name=WCT1/0 manufacturer=Digium devicetype=Wildcard TE121 (VPMADT032) location=PCI Bus 37 Slot 09 basechan=1 totchans=31 irq=32 type=digital-E1 syncsrc=1 lbo=0 db (CSU)/0-133 feet (DSX-1) coding_opts=AMI,HDB3 framing_opts=CCS,CRC4 coding=HDB3 framing=CCS Asterisk version: 1.8.0 Dahdi version: dahdi-linux-complete-2.4.0+2.4.0 libpri version: libpri-1.4.11.4 openr2 version: openr2-1.2.0 My location: Argentina Again, if you have any tip, I'll really thank you it. I've been scratching my head with this for two long days.. Cheers, Martín -- _ -- 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] MFC/R2 detected as ISDN PRI
On Wed, 2010-11-10 at 17:10 +0200, Tzafrir Cohen wrote: On Wed, Nov 10, 2010 at 11:42:18AM -0300, Martin Spinassi wrote: Hi list, I'm trying to setup an asterisk 1.8.0 with MFC/R2, but I'm having these error messages loading chan_dahdi: module load chan_dahdi.so ERROR[9241]: chan_dahdi.c:11848 mkintf: Signalling requested on channel 1 is MFC/R2 but line is in ISDN PRI signalling That is: You requested [in chan_dahdi.conf] MFC/R2 signalling, but the channel has [applied from /etc/dahdi/system.conf] PRI signalling. You should probably have in /etc/dahdi/system.conf something along the lines of: # Not sure about crc4 span=1,1,0,cas,hdb3,crc4 cas=1-15,17-31,1101 dchan=16 # also be sure to set echocan, tonezone, and such Thank you so much Tzafrir for your response. After reading your post, it gets a bit more clearer, but can't figure out how to solve it. This is my /etc/dahdi/system.con span = 1,1,0,ccs,hdb3 bchan = 1-15,17-31 dchan = 16 echocanceller = mg2,1-240 loadzone = ar defaultzone = ar And this my /etc/asterisk/chan_dahdi.conf [channels] echocanceller=yes cancallforward=yes echocancelwhenbridged=yes context=entrantes-pstn callgroup=1 pickupgroup=1 signalling=mfcr2 mfcr2_variant=ar mfcr2_max_ani=10 mfcr2_max_dnis=14 mfcr2_category=national_subscriber mfcr2_logdir=span1 mfcr2_call_files=yes mfcr2_logging=all channel = 1-15 channel = 17-31 Does they make sense to you? I'm kind of messed up after review them hundreds of times in 48 hours. Cheers, Martin -- _ -- 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] MFC/R2 detected as ISDN PRI
On Wed, 2010-11-10 at 10:51 -0500, Miguel Molina wrote: El 10/11/10 10:31, Martin Spinassi escribió: On Wed, 2010-11-10 at 17:10 +0200, Tzafrir Cohen wrote: On Wed, Nov 10, 2010 at 11:42:18AM -0300, Martin Spinassi wrote: Hi list, I'm trying to setup an asterisk 1.8.0 with MFC/R2, but I'm having these error messages loading chan_dahdi: module load chan_dahdi.so ERROR[9241]: chan_dahdi.c:11848 mkintf: Signalling requested on channel 1 is MFC/R2 but line is in ISDN PRI signalling That is: You requested [in chan_dahdi.conf] MFC/R2 signalling, but the channel has [applied from /etc/dahdi/system.conf] PRI signalling. You should probably have in /etc/dahdi/system.conf something along the lines of: # Not sure about crc4 span=1,1,0,cas,hdb3,crc4 cas=1-15,17-31,1101 dchan=16 # also be sure to set echocan, tonezone, and such Thank you so much Tzafrir for your response. After reading your post, it gets a bit more clearer, but can't figure out how to solve it. This is my /etc/dahdi/system.con span = 1,1,0,ccs,hdb3 bchan = 1-15,17-31 dchan = 16 echocanceller = mg2,1-240 loadzone = ar defaultzone = ar And this my /etc/asterisk/chan_dahdi.conf [channels] echocanceller=yes cancallforward=yes echocancelwhenbridged=yes context=entrantes-pstn callgroup=1 pickupgroup=1 signalling=mfcr2 mfcr2_variant=ar mfcr2_max_ani=10 mfcr2_max_dnis=14 mfcr2_category=national_subscriber mfcr2_logdir=span1 mfcr2_call_files=yes mfcr2_logging=all channel = 1-15 channel = 17-31 Does they make sense to you? I'm kind of messed up after review them hundreds of times in 48 hours. Cheers, Martin There you are... your system.conf has: span = 1,1,0,ccs,hdb3 MFC/R2 uses CAS signalling, not CCS like PRI links, so you can try what Tzafrir suggested for your DAHDI system.conf file. I found a similar MFC/R2 configuration in this post: http://lists.digium.com/pipermail/asterisk-r2/2010-April/001760.html Hope it helps. Cheers, -- Ing. Miguel Molina Grupo de Tecnología Millenium Phone Center Tzafir, Shaun and Miguel: Thanks so much for your help! The config that Shaun sent worked perfectly, and it's the same that Miguel pointed on his mail. As I have no way to show you how happy I am finally solving this, if you ever visit Buenos Aires, I promise you guys I'll buy as much beer/coffee as you can take :-D Best regards and thank you once again! Martin -- _ -- 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] How to send SMS to Gigaset phones ?
Hi Olivier, I remember having had a similar discussion a few years ago. I will paste my postings from around May 2007 further down. First, I did not try sending SMS over VOIP to the phone, just over Voip to an ATA and then over analogue line (or ISDN) to the phone. So I have no idea wether the new Gigaset VoIP phones will to 1200 baud mumbo SMS phone service over a Sip voice channel or if Gigaset invented something better by now. You will have to try yourself. As for Gigaset phones connected via (at least one cable of ;- ) landline, you can send SMS messages to those with smsq. In theory that should also work on other landline SMS capable phones. Am Montag, den 13.09.2010, 11:04 +0200 schrieb Olivier: Hi, Searching this list archives, I couldn't find a definitive answer to my question : how to send SMS to Gigaset phones ? My goal is to send Alert SMS such as This phone system will be stopped in 5mn for maintenance to every terminal (SIP phones and Gigaset DECT phones). (So at the moment, I'm not looking for way to send SMS from handsets). == Message 1 (from myself, 2007-May-22) The SMSq stuff is for landline-type SMS, like those that never became really popular here in Europe ;-) I do not know of any SIP hardphone that supports them, but regular analog and ISDN handsets behind a SIP-to-analog/ISDN gateway work for me. The point of this SMS transfer method is calling the destination handset with a certain callerid set (which differs between countries - whatever number the telco prefers to choose - this can also be configured in the phone). The phone will not ring but instead immediately answer the call and receive the short message at 1200bps whatever modem standard they chose to use. For sending SMS, the handset will call a similarly telco-provided number (premium-rate numbers here in Germany - maybe that is the reason for the lack of popularity of this service) and do that 1200bps talk. If you still think you can make use of it, make sure to call smsq with the user id that asterisk is running as. That _might_ already do the trick. If you do not get it running, ask again - I might have a working setup somewhere around ;-) Nevertheless, for me, landline SMS is a PITA. The only great thing is you can upload Ringtones to Siemens gigaset phones. == Message 2 (from myself, 2007-May-22) Just to get you started, try this: Find out which user asterisk runs as. Get a shell for that user. Run (all in one line) smsq --mt --oa=321 --mttx-callerid=01930101 --mttx-channel=SIP/abcde message text goes here where 321 will displayed as sender id on the handset, and 01930101 will have to replaced by the mobile center known to your phone, plus 1 at the end - the German T-Com seems to use 0193010, and this setting works for me. Further, SIP/abcde must be the channel that a SMS-capable handset is available on: If you have some ATA with a DECT handset connected, or similar, use the channel name exactly as you would in the Dial() command. First thing to find out is if this works. Be sure to have asterisk in extra-verbose running a console to see what happens. If the mobile handset rings (instead of getting the SMS) either the 01930101 number has not been set correctly or it probably is not compatible with Asterisk SMS. Once you get this far, you would need the other way round. When your mobile phone tries to _send_ a text message, it will go to 01930100 (sms center number plus 0). You will have to care for that in your extensions.conf, like this exten = 01930100,1,Wait(2) exten = 01930100,2,Answer() exten = 01930100,3,Wait(2) exten = 01930100,4,SMS(01930100,as) exten = 01930100,5,Wait(2) exten = 01930100,6,Hangup() In my experience those Wait(2) improve reliability over internet connections, they probably are superfluous if you have reliable low-latency LAN. For me, they made the difference between 10/100 and 95/100 successfuly sent messages. You will have to write your own scriptwork to play with the files that will be created from those commands. Their structure is simple, you will find out. Sending EMS (for ringtones and bitmaps) is a bit more complex, you will need the UDH flag for that. I think I documented that once on this ML but am not sure. However, it is possible with some Siemens Gigaset devices, and pictures or monophonic ringtones. == Message 3 (2006-Nov-12) can be found at http://www.mail-archive.com/asterisk-...@lists.digium.com/msg24205.html with an example of how to send an EMS (message with picture attached). This worked with both monochrome pictures and single-track MIDI ringtones on my Gigaset S1 back then. Never got around to sending multi-track ringtones though. == Best regards Anselm -- _ -- 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
Re: [asterisk-users] Why do Zaptel calls drop all of a sudden? Couldbusy detect be the problem?
Either turn off busydetect or increase the busycount to 5-7 or even more ... (10 should be conservative) busydetect looks for cadence or patterns of the same length ... beep on [X ms] beep off [Y ms] so you can afford to increase busycount and have a few second longer calls / the line is kept longer offhook but you don't get false busy detections Also in US/Canada callprogress will do a better job then busydetect since it looks for specific frequencies of the busy signal and not just noise/beep then silence ... If you're somewhere else then you can hire a coder to tweak callprogress algorithm to your country's busy signal frequencies ... Just record the busy signal with ztmonitor and send to someone for code patch... regards Martin On Wed, Jul 28, 2010 at 4:54 PM, bruce bruce bruceb...@gmail.com wrote: Hmmwhat about call waiting? You mean, when a call comes in on that specific line, it generate two beep tones and hence the system hangs up thinking it's end of the call? Interesting!!! If it is call-waiting do I have to set all of the following off for it to not give me problem again: callwaiting=yes usecallingpres=yes callwaitingcallerid=yes threewaycalling=yes transfer=yes canpark=yes cancallforward=yes busydetect=yes busycount=3 Please elaborate a bit if I am off-topic. Regards, Bruce On Wed, Jul 28, 2010 at 5:38 PM, Danny Nicholas da...@debsinc.com wrote: From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of bruce bruce Subject: [asterisk-users] Why do Zaptel calls drop all of a sudden? Couldbusy detect be the problem? I am getting a complain that call on analogue lines (Sangoam A400D) drops all of a sudden. Here is what I see in logs: Could be callwaiting? -- _ -- 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 -- _ -- 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] Why do Zaptel calls drop all of a sudden? Couldbusy detect be the problem?
Well for the best test you can call in on that line and fire Echo() app and then you'll see if the lines hangup by themselves ... is you use fxsks/fxs_ks signaling and it's supported by your lines then it's that that makes remote hangup possible regards Martin On Fri, Jul 30, 2010 at 9:12 AM, bruce bruce bruceb...@gmail.com wrote: Thank Martin, That makes absolute sense. I have turned busy detect off for now and haven't heard complains or lines remaining open for a Day. I am in Canada. I just checked chan_dahdi.conf and I don't see callprogress there at all. So, I guess the lines are fine for hanging up by themselves. Hope this doesn't give me probs in future. Thanks, Bruce On Fri, Jul 30, 2010 at 6:18 AM, Martin asteriskl...@callthem.info wrote: Either turn off busydetect or increase the busycount to 5-7 or even more ... (10 should be conservative) busydetect looks for cadence or patterns of the same length ... beep on [X ms] beep off [Y ms] so you can afford to increase busycount and have a few second longer calls / the line is kept longer offhook but you don't get false busy detections Also in US/Canada callprogress will do a better job then busydetect since it looks for specific frequencies of the busy signal and not just noise/beep then silence ... If you're somewhere else then you can hire a coder to tweak callprogress algorithm to your country's busy signal frequencies ... Just record the busy signal with ztmonitor and send to someone for code patch... regards Martin On Wed, Jul 28, 2010 at 4:54 PM, bruce bruce bruceb...@gmail.com wrote: Hmmwhat about call waiting? You mean, when a call comes in on that specific line, it generate two beep tones and hence the system hangs up thinking it's end of the call? Interesting!!! If it is call-waiting do I have to set all of the following off for it to not give me problem again: callwaiting=yes usecallingpres=yes callwaitingcallerid=yes threewaycalling=yes transfer=yes canpark=yes cancallforward=yes busydetect=yes busycount=3 Please elaborate a bit if I am off-topic. Regards, Bruce On Wed, Jul 28, 2010 at 5:38 PM, Danny Nicholas da...@debsinc.com wrote: From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of bruce bruce Subject: [asterisk-users] Why do Zaptel calls drop all of a sudden? Couldbusy detect be the problem? I am getting a complain that call on analogue lines (Sangoam A400D) drops all of a sudden. Here is what I see in logs: Could be callwaiting? -- _ -- 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 -- _ -- 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 -- _ -- 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] UDPTL T38 via NAT
I've got the following setup : [FAX-ATA]--[PBX LAN]--[Firewall]--[PBX WAN]-[upstream SIP] I don't see where your NAT is in this scenario Got UDPTL packet from 62.180.xx.xx:36170 (type 0, seq 0, len 32) Sent UDPTL packet to 172.16.0.156:4460 (type 0, seq 186, len 32) Got UDPTL packet from 62.180.xx.xx:36170 (type 0, seq 0, len 29) This means my outgoing udptl traffic is correctly translated, but somehow i'm sending 172.16.0.156 instead of my public IP address on the firewall. What about externip=62.180.xxx.xxx? Did you try t38pt_usertpsource=yes ? AFAIK this is about a port used for rtp, not ip address... I'm currently trying this over 2 NATs against eachother (yes, the worst case) with some ports forwarded but with rare success. One of those NAT's rewrites a port numbers for some reason (i see the ATA registered on port 50xxx or so, the same for rtp. I think t38pt_usertpsource is meant for such a case...? [asterisk 1.6]-LAN-[NAT gateway]inet-[NAT gateway]-LAN-[ATA]-[FAX] Has anybody some positive experience with this? Any idea why NAT messes up the port numbers? Martin L -- _ -- 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] How to stop intruder from registering sip?
When will you people learn ... you set the secret= and it's one of the many frequent passwords most people sets out of being lazy ... that simply says ... guess my password and call through my pbx for free ... so again ... 1) bad people scan extensions 100-199 and 1000- trying to guess your password if you were nice enough to set it within a known statistical easy guess 2) either use complicated passwords and sip accounts other than 100-199 1000- or install the fail2ban Martin On Fri, Jun 11, 2010 at 4:55 PM, sean darcy seandar...@gmail.com wrote: This is a small 12 line system, internal extensions 150 - 180. I didn't have a phone on 151. Here's the sip.conf stanza: ;;[151] ;;type=friend ;;context=longdistance ;;callerid=Conf Room 151 ;;secret= ;;host=dynamic ;;qualify=yes ;;dtmfmode=rfc2833 ;;allow=all ;;defaultuser=151 ;;nat=yes ;;canreinvite=no There's no DISA. And then somehow (how???) ip address 79.117.17.247 becomes extension 151 and starts making calls to West Africa. Now contactdeny and contactpermit over solve the problem. For instance, I can't register with my voip provider. I don't care about peers who I make calls to, or receive calls from. I'm just stunned someone can become a peer and make calls themselves. How do I fix this in some reasonable way. sean [Jun 10 15:51:19] VERBOSE[1662] chan_sip.c: -- Registered SIP '151' at 79.117.17.247 port 5060 [Jun 10 15:51:20] NOTICE[1662] chan_sip.c: Peer '151' is now Reachable. (161ms / 2000ms) [Jun 10 15:51:20] NOTICE[1662] chan_sip.c: Received SIP subscribe for peer without mailbox: 151 [Jun 10 15:51:21] VERBOSE[1662] netsock.c: == Using SIP RTP TOS bits 184 [Jun 10 15:51:21] VERBOSE[1662] netsock.c: == Using SIP RTP CoS mark 5 [Jun 10 15:51:21] VERBOSE[1662] netsock.c: == Using SIP VRTP CoS mark 6 [Jun 10 15:51:21] VERBOSE[1662] netsock.c: == Using UDPTL TOS bits 184 [Jun 10 15:51:21] VERBOSE[1662] netsock.c: == Using UDPTL CoS mark 5 [Jun 10 15:51:22] VERBOSE[4780] pbx.c: -- Executing [01125240212...@longdistance:1] Answer(SIP/151-00ae, ) in new stack [Jun 10 15:51:22] VERBOSE[4780] pbx.c: -- Executing [01125240212...@longdistance:2] Gosub(SIP/151-00ae, DialOut,s,1(01125240212154 ,DAHDI/g0)) in new stack . [Jun 10 15:51:22] VERBOSE[4780] pbx.c: -- Executing [...@dialout:9] Dial(SIP/151-00ae, DAHDI/g0/01125240212154) in new stack [Jun 10 15:51:22] VERBOSE[4780] chan_dahdi.c: -- Requested transfer capability: 0x00 - SPEECH [Jun 10 15:51:22] VERBOSE[4780] app_dial.c: -- Called g0/01125240212154 [Jun 10 15:51:22] VERBOSE[4780] app_dial.c: -- DAHDI/2-1 is proceeding passing it to SIP/151-00ae [Jun 10 15:51:23] VERBOSE[4780] app_dial.c: -- DAHDI/2-1 is making progress passing it to SIP/151-00ae [Jun 10 15:51:23] VERBOSE[4780] app_dial.c: -- DAHDI/2-1 is making progress passing it to SIP/151-00ae [Jun 10 15:51:25] VERBOSE[4780] app_dial.c: -- SIP/151-00ae requested special control 16, passing it to DAHDI/2-1 [Jun 10 15:51:25] VERBOSE[4780] channel.c: -- Music class default requested but no musiconhold loaded. [Jun 10 15:51:25] VERBOSE[4780] app_dial.c: -- SIP/151-00ae requested special control 20, passing it to DAHDI/2-1 -- _ -- 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] How to stop intruder from registering sip?
if you know IP then ban with iptables iptables -A INPUT -s IP -j REJECT Martin On Fri, Jun 11, 2010 at 8:41 PM, Martin asteriskl...@callthem.info wrote: When will you people learn ... you set the secret= and it's one of the many frequent passwords most people sets out of being lazy ... that simply says ... guess my password and call through my pbx for free ... so again ... 1) bad people scan extensions 100-199 and 1000- trying to guess your password if you were nice enough to set it within a known statistical easy guess 2) either use complicated passwords and sip accounts other than 100-199 1000- or install the fail2ban Martin On Fri, Jun 11, 2010 at 4:55 PM, sean darcy seandar...@gmail.com wrote: This is a small 12 line system, internal extensions 150 - 180. I didn't have a phone on 151. Here's the sip.conf stanza: ;;[151] ;;type=friend ;;context=longdistance ;;callerid=Conf Room 151 ;;secret= ;;host=dynamic ;;qualify=yes ;;dtmfmode=rfc2833 ;;allow=all ;;defaultuser=151 ;;nat=yes ;;canreinvite=no There's no DISA. And then somehow (how???) ip address 79.117.17.247 becomes extension 151 and starts making calls to West Africa. Now contactdeny and contactpermit over solve the problem. For instance, I can't register with my voip provider. I don't care about peers who I make calls to, or receive calls from. I'm just stunned someone can become a peer and make calls themselves. How do I fix this in some reasonable way. sean [Jun 10 15:51:19] VERBOSE[1662] chan_sip.c: -- Registered SIP '151' at 79.117.17.247 port 5060 [Jun 10 15:51:20] NOTICE[1662] chan_sip.c: Peer '151' is now Reachable. (161ms / 2000ms) [Jun 10 15:51:20] NOTICE[1662] chan_sip.c: Received SIP subscribe for peer without mailbox: 151 [Jun 10 15:51:21] VERBOSE[1662] netsock.c: == Using SIP RTP TOS bits 184 [Jun 10 15:51:21] VERBOSE[1662] netsock.c: == Using SIP RTP CoS mark 5 [Jun 10 15:51:21] VERBOSE[1662] netsock.c: == Using SIP VRTP CoS mark 6 [Jun 10 15:51:21] VERBOSE[1662] netsock.c: == Using UDPTL TOS bits 184 [Jun 10 15:51:21] VERBOSE[1662] netsock.c: == Using UDPTL CoS mark 5 [Jun 10 15:51:22] VERBOSE[4780] pbx.c: -- Executing [01125240212...@longdistance:1] Answer(SIP/151-00ae, ) in new stack [Jun 10 15:51:22] VERBOSE[4780] pbx.c: -- Executing [01125240212...@longdistance:2] Gosub(SIP/151-00ae, DialOut,s,1(01125240212154 ,DAHDI/g0)) in new stack . [Jun 10 15:51:22] VERBOSE[4780] pbx.c: -- Executing [...@dialout:9] Dial(SIP/151-00ae, DAHDI/g0/01125240212154) in new stack [Jun 10 15:51:22] VERBOSE[4780] chan_dahdi.c: -- Requested transfer capability: 0x00 - SPEECH [Jun 10 15:51:22] VERBOSE[4780] app_dial.c: -- Called g0/01125240212154 [Jun 10 15:51:22] VERBOSE[4780] app_dial.c: -- DAHDI/2-1 is proceeding passing it to SIP/151-00ae [Jun 10 15:51:23] VERBOSE[4780] app_dial.c: -- DAHDI/2-1 is making progress passing it to SIP/151-00ae [Jun 10 15:51:23] VERBOSE[4780] app_dial.c: -- DAHDI/2-1 is making progress passing it to SIP/151-00ae [Jun 10 15:51:25] VERBOSE[4780] app_dial.c: -- SIP/151-00ae requested special control 16, passing it to DAHDI/2-1 [Jun 10 15:51:25] VERBOSE[4780] channel.c: -- Music class default requested but no musiconhold loaded. [Jun 10 15:51:25] VERBOSE[4780] app_dial.c: -- SIP/151-00ae requested special control 20, passing it to DAHDI/2-1 -- _ -- 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] How to stop intruder from registering sip?
lol when then if he knows the IP of his provider plus a few phones he can just allow these ... and problem solved forever Martin On Fri, Jun 11, 2010 at 9:02 PM, Steve Edwards asterisk@sedwards.com wrote: On Fri, 11 Jun 2010, Martin wrote: if you know IP then ban with iptables iptables -A INPUT -s IP -j REJECT Ever play http://en.wikipedia.org/wiki/Whac-A-Mole ? -- Thanks in advance, - Steve Edwards sedwa...@sedwards.com Voice: +1-760-468-3867 PST Newline Fax: +1-760-731-3000 -- _ -- 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] voipmonitor.org
On 8.5.2010 00:40, Jeff Brower wrote: Martin- checkout new open source voipmonitor.org SIP packet sniffer. I've developed it for my telco company and I've decided to share it. Testing and contributions are welcome! VoIPmonitor is open source live network packet sniffer which analyze SIP and RTP protocol. It can run as daemon or analyzes already captured pcap files. For each detected VoIP call voipmonitor calculates statistics about loss, burstiness, latency and predicts MOS (Meaning Opinion Score) according to ITU-T G.107 E-model. These statistics are saved to MySQL database and each call is saved as pcap dump. Web PHP application (it is not part of open source sniffer) filters data from database and graphs latency and loss distribution. Voipmonitor also detects improperly terminated calls when BYE or OK was not seen. To accuratly transform latency to loss packets, voipmonitor simulates fixed and adaptive jitterbuffer. How many channels can it handle simultaneously? I've not tested limits but capturing 15 voip calls takes 3-4% on Core2 2.40GHz. Complexity in worst case is O(N^2) where N is number of calls. Packets are matched as llinear list of IP and port. If this will be limit, it could be rewriten to hash table O(N) How does it do MOS prediction if low bitrate codecs are being used (G729, AMR, etc)? It is calibrated only to G.711 with PLC for now but I'm planing adding equations for G.729 and iLBC. MV -- _ -- 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] voipmonitor.org
Hello, I've choosen only MOS-LQE because it is calculated only on network parameters, which is loss, burstinnes and delay (which is converted to loss by jitterbuffer simulator). It does not takes into account voice (payload). There is no effective objective methods (today) which predicts MOS. Only ITU-T P.862 and P.563 which is patented and it can analyze only 20 seconds samples. I've tried implementing P.563 and it is not usable for real live use, only for automated tests which is not in my interest now (and because of patents). I've calibrated MOS-LQE with polynomial functions using P.862 PESQ. I will write more on voipmonitor.org documentation once I've found more time. I'm using voipmonitor on central gateway and succesfully monitoring all SIP traffic and filtering calls by the worst MOS. So yes, you can use that tool for measuring quality of IP network in realtime. If you save PCAP files, you can analyze it with wireshark in more depth. On Sat, May 8, 2010 at 1:42 PM, mosbah abdelkader mosbah.abdelka...@gmail.com wrote: Hello, First, thank you for your great job. I want to know why you have choosed to calculate only MOS-LQE. Why you have only used G107. Is that model suitable for VoIP operators to have a calculated QoS value so they can confirm their quality. Thanks again and best regards. -- _ -- 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] voipmonitor.org
On Sat, May 8, 2010 at 2:34 PM, mosbah abdelkader mosbah.abdelka...@gmail.com wrote: Thank you Martin, So the MOS-LQE does not inform bout payload itself but predicts the MOS based on networks metrics yes exactly. LQE is Listen Quality Emodel (E-model is parametric model which takes into account some more parameters. I've used static parameters except for loss and burstiness. So if your network is stable and you want to measure MOS, there is no way how to do that on unknown samples. You can do only automated tests. and P862 and P863 uses also payload (voice) to calculate the MOS. Is it true what I have understood. yes, P.862 (PESQ) compare two samples. Original and degraded (and about 20 seconds). P.563 does not need original sample and can predict only degraded sample (only about 20 seconds). It cannot analyze whole conversation. Both methods is suited for automated tests with specific samples. These objective methods compare new codecs, transmittion path etc. etc.. It will never work as real live passive monitoring. I've used P.862 to calibrate MOS-LQE. MV Best regards. On Sat, May 8, 2010 at 1:17 PM, Martin Vit v...@lam.cz wrote: Hello, I've choosen only MOS-LQE because it is calculated only on network parameters, which is loss, burstinnes and delay (which is converted to loss by jitterbuffer simulator). It does not takes into account voice (payload). There is no effective objective methods (today) which predicts MOS. Only ITU-T P.862 and P.563 which is patented and it can analyze only 20 seconds samples. I've tried implementing P.563 and it is not usable for real live use, only for automated tests which is not in my interest now (and because of patents). I've calibrated MOS-LQE with polynomial functions using P.862 PESQ. I will write more on voipmonitor.org documentation once I've found more time. I'm using voipmonitor on central gateway and succesfully monitoring all SIP traffic and filtering calls by the worst MOS. So yes, you can use that tool for measuring quality of IP network in realtime. If you save PCAP files, you can analyze it with wireshark in more depth. On Sat, May 8, 2010 at 1:42 PM, mosbah abdelkader mosbah.abdelka...@gmail.com wrote: Hello, First, thank you for your great job. I want to know why you have choosed to calculate only MOS-LQE. Why you have only used G107. Is that model suitable for VoIP operators to have a calculated QoS value so they can confirm their quality. Thanks again and best regards. -- _ -- 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] Questions About Fax for Asterisk
On Thu, May 6, 2010 at 3:11 PM, Steve Totaro stot...@totarotechnologies.com wrote: Yes, I purchased licenses for Fax for Asterisk and yes I called tech support and had the WORST experience I have ever had with any technical support call. I am running Asterisk 1.6.2.6 and: FAX For Asterisk Components: Applications: 1.6.2.0_1.2.0 voipgw01Digium FAX Driver: 1.6.2.0_1.2.0 (optimized for c3_2_32) The guy was arrogant and absolutely a jerk and I don't like to call people names, but call it as I see it. This has not been my experience the five or six times I have had to call Digium over the years, but it has been many years since my last call so I have no idea what the general support staff is like. I could not get any questions answered by the tech that took hours to call me back to tell me to read the readme. That would be all well and good if I didn't pay money. He could not explain Digium's math as far as faxing and failed to offer to get back to me with any kind of answer. Maybe someone on the list can make sense of this Enron style of accounting: voipgw01*CLI fax show stats voipgw01*CLI FAX Statistics: --- Current Sessions : 1 Transmit Attempts : 0 Receive Attempts : 336 Completed FAXes : 320 Failed FAXes : 57 Digium G.711 Licensed Channels : 4 Max Concurrent : 1 Success : 0 Switched to T.38 : 0 Canceled : 0 No FAX : 1 Partial : 0 Negotiation Failed : 0 Train Failure : 3 Protocol Error : 0 IO Partial : 0 IO Fail : 0 voipgw01*CLI Digium T.38 Licensed Channels : 4 Max Concurrent : 4 Success : 175 Canceled : 0 No FAX : 6 Partial : 19 Negotiation Failed : 0 Train Failure : 83 Protocol Error : 33 IO Partial : 0 IO Fail : 0 Thanks, Steve Totaro wow definitely the acccounting engine is broken ... I can only make sense of this Receive Attempts : 336 Completed FAXes : 320 Failed FAXes : 57 1) your receive app was called 336 times but the fax hanged up before negotiating 2) you had 320 of this completed (partially or fully) 3) but 57 out of 320 failed to transmit entirely 57/320=17.8% which is too high for a commercial product IHMO Martin -- _ -- 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
[asterisk-users] voipmonitor.org
Hi, checkout new open source voipmonitor.org SIP packet sniffer. I've developed it for my telco company and I've decided to share it. Testing and contributions are welcome! VoIPmonitor is open source live network packet sniffer which analyze SIP and RTP protocol. It can run as daemon or analyzes already captured pcap files. For each detected VoIP call voipmonitor calculates statistics about loss, burstiness, latency and predicts MOS (Meaning Opinion Score) according to ITU-T G.107 E-model. These statistics are saved to MySQL database and each call is saved as pcap dump. Web PHP application (it is not part of open source sniffer) filters data from database and graphs latency and loss distribution. Voipmonitor also detects improperly terminated calls when BYE or OK was not seen. To accuratly transform latency to loss packets, voipmonitor simulates fixed and adaptive jitterbuffer. Key features Fast C++ SIP/RTP packet analyzer Predicts MOS-LQE score according to ITU-T G.107 E-model Detailed delay/loss statistics stored to MySQL Each call is saved as standalone pcap file Jitterbuffer simulator based on asterisk (fixed/adaptive) -- _ -- 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] Being attacked by an Amazon EC2 ...
Its a good idea tos setup Fail2ban, instructions for which are on voip-info.org. It at least blocks such IP addresses, hopefully prompting the attackers to move their attack somewhere else and leave you alone. I personally use Fail2ban, it works but wont keep you from flooding your line. My last attacker kept trying for 3 days Another good idea is to lookup in whois database this IP address and see if you can find contact info for the person responsible for this IP address. Then contact them and let them know about this incident. You can also try to ask your ISP if they can block it on their end. Fail2ban can send you a Whois info about every blocked IP. Im just not sure if any kind of reporting will help :-( Zeeshan A Zakaria Martin L -- _ -- 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] Please sign Petition - Stop Child Labour
Are you sure writing to the right list??? Martin - Original Message - From: Sarfaraz Chougule To: sarfaraz.choug...@gmail.com Sent: Monday, April 05, 2010 4:54 PM Subject: [asterisk-users] Please sign Petition - Stop Child Labour Hello Friends, Kind request to you all - If you would want 6 crore children to have childhood please sign a petition on http://www.indyatweets.com (image on your top right) -- With Best Regards, *** Sarfaraz Chougule ***-- _ -- 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] wellgate 3804A with frying
Dear Colleagues, I installed a Wellgate 3804A and overnight lines on all this with frying, putting other lines Wellgate 3804A is well, so I guess it's a problem the first team which is already out of warranty, anyone know how can I fix this? or where to send it in or capital Buenos Aires to fix it? Thanks Mart _ Todo lo que querés saber sobre la TV y sus protagonistas en MSN http://msn.novebox.com/-- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[asterisk-users] Broker lines on a T1 : Signaling convention?
I've been running Asterisk with a standard PRI for regular telecoms. This is also connected to our Nortel PBX for 'ordinary users'. The system has been working nicely (including Cisco 7970 phones that are connecting via SIP). But now I'm going 'on net' with broker lines (for a trading room environment). The telecoms people at the other end of the connection tell me that each line is just a standard ARD circuit - and terms such as 'loopstart', 'groundstart' or 'EM' don't have any resonance with them. So : Has anyone got any hints from installing trader turrets (for instance) about what dahdi config I need for this dedicated type of T1? Thanks Martin :-) -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Attempted break in ?
H323 seemed to be enabled by default, so I just disabled the H.323 module as we do not use it. Rob How did you disable it? I dont see any module containing h323 in its name. (ast. 1.9) Martin -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] help with picking out a digium card.
On Wed, Jan 20, 2010 at 11:00 AM, randall rand...@songshu.org wrote: On 01/17/2010 09:25 PM, shawn bright wrote: Hey all, We have been using a TDM400 card at work to provide our IVR. We we have upgraded our server and now require the same capability, but on a card that goes into a PCI Express. Any suggestions would be greatly appreciated. oh, and it has to work with the zaptel drivers for linux. thanks all. sk i'm no expert on these cards nor of the drivers or even tried it myself, so please don't take my word on it. but... just happened to look for this last week, and i was under the assumption that PCI Express was backwards compatible with PCI http://en.wikipedia.org/wiki/PCI_Express yes, that's true ... in fact that's how the PCI-E cards are made by most manufacturers ... they use the same card and add the PCI-to-PCI-E chip that makes the card show to BIOS as a PCI card Martin Randall -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- 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 -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] SIP Security
Lets just say that you turned off the security ... [general] context=default ; Default context for incoming calls so everyone that can connect to your IP port 5060 UDP can access default context... why would you allow this context to place outgoing calls then ? secret=blah also you think the bots don't know this password ??? Martin On Tue, Jan 12, 2010 at 11:43 AM, Juan C. Villa juan...@villafam.com wrote: Hey guys, I've been running asterisk on my server for some time now (currently running Asterisk 1.6.2.0). I am having security issues with my SIP accounts. Unauthorized people have been able to access the server (bots) and they have been able to make calls (in today's case to Cuba). Here's a copy (slightly modified) of my sip.conf: [general] context=default ; Default context for incoming calls videosupport=yes rtcachefriends=yes autocreatepeer=no t38pt_udptl=yes allowoverlap=no udpbindaddr=0.0.0.0 srvlookup=yes ;pedantic=yes disallow=all allow=alaw allow=ulaw allow=speex [1001] type=friend username=1001 secret=blah subscribecontext=default regexten=1001 callerid=blah XX host=dynamic nat=yes canreinvite=no mailbox=1...@default registertrying=yes [testuser] type=friend secret=blah callerid=blah X host=dynamic nat=yes qualify=yes allowsubscribe=yes canreinvite=no context=default [testuser2] type=friend username=testuser2 secret= callerid=blah blah host=dynamic nat=yes qualify=yes allowsubscribe=yes canreinvite=no context=default Someone is able to connect to my server and make a call since they can access the default context. What should I do? Thanks guys! -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- 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 -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] fax problem
On Wed, Dec 23, 2009 at 10:49 AM, BERGANZ François franc...@acropolistelecom.net wrote: Hello, I need to send a tiff via fax with my asterisk 1.6.1.0. I tried in the dialplan [default] exten = _X.,1,SendFax(/root/test.tiff) try originate sip/provider/number extension 1...@default Martin ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[asterisk-users] Could Asterisk be crashing under high context switches?
Hello! I have been struggling with Asterisk 1.6 and DAHDI for the past few weeks. We are an outgoing call center with 30 internal analog phones hooked up to 2 Rhino CB24 channel banks. The banks are connected to a Rhino R4T1 card in a Dell 2950 server with 8 gigs of RAM. The 2 other ports on the R4T1 go to our 2 PRIs. In this configuration, we have trouble maintaining stability. It may be fine for days, but soon the load slowly creeps up on the server from below 1 all the way up to 6 which is when no one can dial out and asterisk pretty much has to be killed to be stopped. We also have bandwidth.com set up as a SIP provider. If we use bandwidth.com, stability is greatly improved. I installed munin on the phone server yesterday and noticed something dramatic, I think! Asterisk became unstable 3 times yesterday. 2 of those times, the number of context switches went to almost 80k the first time, then over 70k the second. First question - is this abnormal for around 20 ongoing recorded calls? I did a little bit of searching and found this: http://wiki.sangoma.com/files/wanpipe-linux-asterisk-tutorials/How_to_Reduce_Asterisk_System_Loads.pdf It talks about zaptel/DAHDI chunk size and that directly affects system load. Second question - the document explains how to change the chunk size for Sangoma hardware. Is there a general way to do that for DAHDI? Thanks is advance! Jason Martin Metrix Matrix, Inc. 785 Elmgrove Rd, Bldg 1 Rochester, NY 14624 Office: 888-865-0065 x202 Mobile: 585-705-1400 ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] ATA FXO
I'll check it out, but Grandstream HT503 doesn't have a good introduction on voip-wiki web-page: http://www.voip-info.org/wiki/view/HT-503 -- Joseph On 12/11/09 19:37, jonas kellens wrote: Grandstream HT503 Noy a really big problem to configure, but in my case the FXO port always reports BUSY after some time. I couldnt test it too much because of crappy Verizon's DSL line in that location (doesn't work well even after 6 months...:-( ) Martin ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] multiple sip trunks
On Fri, Dec 11, 2009 at 10:23 AM, John Taylor j...@vetsurgeon.org.uk wrote: Thanks - have done that and am now trying a one out. However, I'd still like to know whether 1 asterisk server can support multiple trunks/registry entries. Does it cause problems? yes, Asterisk does support multiple registry entries... if it didn't ... it would be just a crippled sip endpoint lets say more ... Asterisk can do whatever you want it to do (within reason and technical boundaries); just code it in or request a feature Martin Thanks John 2009/12/3 Tim Nelson tnel...@rockbochs.com: - John Taylor j...@vetsurgeon.org.uk wrote: I want to use an asterisk box to provide a voip service to a number of separate companies. I have a VOIP provider who I want to trunk with. As far as I can see it there are 2 options 1. Have 1 SIP trunk to one account at the provider who gives me multiple incoming numbers; this is less than optimal as the provider does not provide the DID number in the sip header; I only get the account number. I have the option to set called line presentation but this will stop CLID 2. Have multiple sip trunks to multiple accounts at the provider. Is this an advisable thing to do? I notice asterisk does not handle the incoming context correctly (all incoming calls go to the last incoming context defined in sip.conf), but I can extract the account called via the EXTEN variable. I would be looking at providing around 20 companies with accounts (all very small), and would prefer option (2) to enable failover to a number they specify. Thanks for any light shed John Why not go with a real carrier that can send you proper DID and DNIS information for each call? Rather than trying to configure/code/etc around the problem with the ITSP, use an ITSP that does things correctly. There are many people here on asterisk-users that can recommend a proper ITSP. If you want pure business response, head over to asterisk-biz and ask there. Tim Nelson Systems/Network Support Rockbochs Inc. (218)727-4332 x105 ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- 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 -- 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 -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[asterisk-users] b option in Directory
I'm running asterisk 1.4.21 and I see if I go on the wiki that there's a b option that let you enter the first name OR last name of a user. I see that to make this work I need a patch. I'm wondering how can I install this patch as it's an option one of my customer would like to have but I never had to deal with patch before. I usually just take the release version of asterisk and install it as is. P.S. I would like to keep the version 1.4.21 because it's the last version that I know of that use Zaptel by default instead of DAHDI. Thanks Martin ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] OpenSBC
On Tue, Dec 1, 2009 at 2:56 PM, gergis.rasmy gergis.ra...@gmail.com wrote: does anyone use OpenSBC , or know if it is mature stable opensource for a production enviroment I tried it once but it didn't work as advertised opensips 1.6.0 now should do all that opensbc would ever do of course it's not as easy like opensbc Martin ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Question about OSLEC or HPEC with AsteriskNow
AsteriskNow use CentOS 5 and it comes preinstalled with dahdi and asterisk with the freepbx GUI interface and it seems to be missing all the dev packages Martin On 2009-11-17, at 02:19, Olivier wrote: 2009/11/17 Martin Roy m...@mac.com I was previously using an old computer running Asterisk 1.2 with zaptel. Once the CPU fried I switch to a new computer and I chose AsteriskNow 1.5 running in 64bits to simplify the installation process. I manage to find my way with configuring dahdi instead of zaptel and to switch all my previous config to the new computer. Now everything is fine except that even if I use the md2 echo cancellation it's not perfect I still have echo issue. So I made some search around and found that there's oslec and hpec out there that seems to be better then what I'm currently using. So my question should I use hpec or oslec with my TDM400 card? I also tried to recompile dahdi to use oslec (before I found that Digium had hpec) but then I get an error message that the source of my kernel cannot be found Do you imply you previously installed a Dahdi binary package ? If positive, before compiling Dahdi source code, you need to install Linux header files. On Debian systems, you can get this with something like : apt-get -install linux-headers-2.6.26-2-686 Regards so I can never actually compile a new version of dahdi. Thanks Martin ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- 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 -- 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 -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[asterisk-users] Question about OSLEC or HPEC with AsteriskNow
I was previously using an old computer running Asterisk 1.2 with zaptel. Once the CPU fried I switch to a new computer and I chose AsteriskNow 1.5 running in 64bits to simplify the installation process. I manage to find my way with configuring dahdi instead of zaptel and to switch all my previous config to the new computer. Now everything is fine except that even if I use the md2 echo cancellation it's not perfect I still have echo issue. So I made some search around and found that there's oslec and hpec out there that seems to be better then what I'm currently using. So my question should I use hpec or oslec with my TDM400 card? I also tried to recompile dahdi to use oslec (before I found that Digium had hpec) but then I get an error message that the source of my kernel cannot be found so I can never actually compile a new version of dahdi. Thanks Martin ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Question about callerid?
OK, Now I am responding to myself, because I have figured it out (finally). It turns out it's a feature of asterisk (at least the older versions). This is where I found my answer: https://issues.asterisk.org/view.php?id=9678 So the solution for me was to simply rearrange my sip.conf so my incoming call handling peer is at the very end. Pretty wacky. I am hopefully back on the road though with working caller ID as well. Marty On Nov 14, 2009, at 11:10 AM, Martin Joseph wrote: Ok I am replying to myself, because I still don't have this figured out,, but I think I have more info. On Nov 5, 2009, at 8:57 PM, Martin Joseph wrote: Hello again Asterisk people. I am running Asterisk 1.42 on an old PowerPC ibook. I have had this deployed for several years now, with pretty good results. Recently I added a callerid service to my landline (qwest). I am using the audiocodes MP114 2fxo/2fxs gateway, which is an outstanding piece of hardware once it's configured (lol). I think the issue is related to the fact that the MP114 is in my case a combination device. 2fxo/2fxs setup. It seems like what happens is when a call comes into the fxo it is inviting asterisk with the correct callerid information(sip from). Asterisk attempts to use this invite as a basis for a new call. HOWEVER, for some reason or another (bug?) Asterisk identifies the fxs extension at the same IP address as a peer for the basis of the new call, and since the other peer (friend) is the FXS, the authentication fails, and caller ID is lost. If I remove my FXS (friend) definition from sip.conf then suddenly all is well and the the callerID string is passed aok. Of course then none of the phones attached to the FXS work, which is a problem... I hope someone has some ideas on what I am doing wrong/some way to fix this? Thanks in advance for any help you might offer. Marty Anyhow, I can see that the gateway is passing caller id info to asterisk because the console will display something like: [Nov 4 13:01:19] NOTICE[32]: chan_sip.c:13362 handle_request_invite: Failed to authenticate user SEATTLE SCHOOLS sip:2062524...@89.89.89.253 ;tag=1c492497235 This authentication is failing because of the mismatch of extensions described above. The FXO is ext. 2003 and the FXS is ext. 2005. So the caller ID info is right there. However on my extensions (or softphones) the id shows as the extension # (ie 2003). Is there something I need to do to set the callerid? I can't seem to find this in the examples? Thanks in advance for helping with my (I am sure) stupid question... Marty ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- 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 -- 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 -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Question about callerid?
Ok I am replying to myself, because I still don't have this figured out,, but I think I have more info. On Nov 5, 2009, at 8:57 PM, Martin Joseph wrote: Hello again Asterisk people. I am running Asterisk 1.42 on an old PowerPC ibook. I have had this deployed for several years now, with pretty good results. Recently I added a callerid service to my landline (qwest). I am using the audiocodes MP114 2fxo/2fxs gateway, which is an outstanding piece of hardware once it's configured (lol). I think the issue is related to the fact that the MP114 is in my case a combination device. 2fxo/2fxs setup. It seems like what happens is when a call comes into the fxo it is inviting asterisk with the correct callerid information(sip from). Asterisk attempts to use this invite as a basis for a new call. HOWEVER, for some reason or another (bug?) Asterisk identifies the fxs extension at the same IP address as a peer for the basis of the new call, and since the other peer (friend) is the FXS, the authentication fails, and caller ID is lost. If I remove my FXS (friend) definition from sip.conf then suddenly all is well and the the callerID string is passed aok. Of course then none of the phones attached to the FXS work, which is a problem... I hope someone has some ideas on what I am doing wrong/some way to fix this? Thanks in advance for any help you might offer. Marty Anyhow, I can see that the gateway is passing caller id info to asterisk because the console will display something like: [Nov 4 13:01:19] NOTICE[32]: chan_sip.c:13362 handle_request_invite: Failed to authenticate user SEATTLE SCHOOLS sip:2062524...@89.89.89.253 ;tag=1c492497235 This authentication is failing because of the mismatch of extensions described above. The FXO is ext. 2003 and the FXS is ext. 2005. So the caller ID info is right there. However on my extensions (or softphones) the id shows as the extension # (ie 2003). Is there something I need to do to set the callerid? I can't seem to find this in the examples? Thanks in advance for helping with my (I am sure) stupid question... Marty ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- 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 -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Need Adapter/Gateway with PSTN-interface
Grandstream HT503. For me works just fine. 1xFXO 1xFXS port. Each port has its own sip account. Martin - Original Message - From: jonas kellens To: Asterisk Users Mailing List - Non-Commercial Discussion Sent: Thursday, November 12, 2009 5:38 AM Subject: Re: [asterisk-users] Need Adapter/Gateway with PSTN-interface I've read (through google) that the Linksys SPA-products do not have good voice quality on the PSTN-line. Grandstream HT486 is also just lifeline and EOL. The only I come up with is Patton-gateways but these are not at all cheap ! Jonas. On Thu, 2009-11-12 at 10:13 +, Steve Howes wrote: On 12 Nov 2009, at 09:33, jonas kellens wrote: I am looking for a gateway/ATA that can take conversations on the analogue line (PSTN) and send them to the Asterisk server on the private network. I was experimenting with the Atcom AG-188N but the FXO-port only supports lifeline, so it's not a real FXO-port that can send incoming calls to my private Asterisk-server. Could someone advice on a gateway that can take analogue calls and transfer them on my local network ?! I know about the Digium-cards. Are there alternatives ? Google could tell you this Try the Linksys/Sipura type products S -- ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- 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 -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Need opinion about GSM codec for Internet
If you doesn't need transcoding, you doesn't need any licenses... Martin - Original Message - From: Vinícius Fontes vinic...@canall.com.br To: Asterisk Users Mailing List - Non-Commercial Discussion asterisk-users@lists.digium.com Sent: Friday, November 06, 2009 11:43 AM Subject: Re: [asterisk-users] Need opinion about GSM codec for Internet In my opinion, GSM sounds great but not as good as G.729. So if you can't afford getting G.729, GSM is the way to go. Vinícius Fontes www.asteriskforum.com.br - Informações e discussão sobre Asterisk e telefonia IP - Alejandro Cabrera Obed aco1...@gmail.com escreveu: Dear all, I have implemented an Asterisk SIP server for a WAN VPN over Internet. We have users distributed along all my country (Argentina) that register to my Asterisk in order to talk among them. I'll plan to have voice and voicemail with GSM codec, because we can't afford the payment for the G.729 licenses (it's an administrative problem of our company, not an echonomical problem). So in this way Asterisk won't care about codec traslations, this sounds good. What do you think about the use of GSM codec for Internet calls ??? Do you think GSM is the best narrow-band codec if I can't use G.729 ??? Thank you !!! Alejandro ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- 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 -- 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 -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Question about callerid?
On Nov 6, 2009, at 5:14 AM, John A. Sullivan III wrote: On Thu, 2009-11-05 at 20:57 -0800, Martin Joseph wrote: Hello again Asterisk people. I am running Asterisk 1.42 on an old PowerPC ibook. I have had this deployed for several years now, with pretty good results. Recently I added a callerid service to my landline (qwest). I am using the audiocodes MP114 2fxo/2fxs gateway, which is an outstanding piece of hardware once it's configured (lol). Anyhow, I can see that the gateway is passing caller id info to asterisk because the console will display something like: [Nov 4 13:01:19] NOTICE[32]: chan_sip.c:13362 handle_request_invite: Failed to authenticate user SEATTLE SCHOOLS sip:2062524...@89.89.89.253 ;tag=1c492497235 So the caller ID info is right there. However on my extensions (or softphones) the id shows as the extension # (ie 2003). Is there something I need to do to set the callerid? I can't seem to find this in the examples? Thanks in advance for helping with my (I am sure) stupid question... snip I'd like to understand this better myself as I know we don't have this right in our environment. I believe the reason you see that is because Asterisk is providing a B2BUA (I think it's called), i.e., your caller is not actually talking to your phone. Instead, your caller is talking to Asterisk on the inbound SIP ID (whatever that is) and then Asterisk is calling your phone from the extension in the dial plan. At least I think that's why the extension shows up in the callerID. OK, that makes sense. So since Asterisk is a back to to back user agent (ie the call is always going through it) then the Caller ID data isn't magically moved along... Still, the fact that it's showing up there in the console means there should be some way to grab it (the callerID data) and stuff into into the proper place for it to be passed along. I see that the callerid valiable can be set as per: http://www.voip-info.org/wiki/view/Setting+Callerid So that's nice, and the only question is how to I get the callerID info from where it show in the console as failed to authenticate? Either that, or I could reconfigure my audiocodes and my asterisk so that instead of incoming calls dialing my desired extension (ie 2020), asterisk could accept the calls from the domain of the audiocodes (ie it's IP address). Maybe that's how get the CID data. Don't really know, but suspect there are lots of people here who do? Thanks for any help in advance, Marty The identity can be overridden in sip.conf with the fromdomain and fromuser parameters. However, we found this introduced its own problems. I suppose we just need to build more sophisticated logic into our dialplan. The problem is, if we set the fromdomain/user, we now show correct sip sources when we make direct SIP calls and can return those calls from the phone's call history. However, it breaks all the internal dialing which wants to dial to the extension. If we remove fromdomain/user, the internal dialing works but public SIP calls now show the extension as the user rather than the user's public SIP ID. I'm sure as with most things in Asterisk, we can fix it if we just take the time to think through the programming logic. Hope this helps - John -- John A. Sullivan III Open Source Development Corporation +1 207-985-7880 jsulli...@opensourcedevel.com http://www.spiritualoutreach.com Making Christianity intelligible to secular society ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- 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 -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[asterisk-users] Question about callerid?
Hello again Asterisk people. I am running Asterisk 1.42 on an old PowerPC ibook. I have had this deployed for several years now, with pretty good results. Recently I added a callerid service to my landline (qwest). I am using the audiocodes MP114 2fxo/2fxs gateway, which is an outstanding piece of hardware once it's configured (lol). Anyhow, I can see that the gateway is passing caller id info to asterisk because the console will display something like: [Nov 4 13:01:19] NOTICE[32]: chan_sip.c:13362 handle_request_invite: Failed to authenticate user SEATTLE SCHOOLS sip:2062524...@89.89.89.253 ;tag=1c492497235 So the caller ID info is right there. However on my extensions (or softphones) the id shows as the extension # (ie 2003). Is there something I need to do to set the callerid? I can't seem to find this in the examples? Thanks in advance for helping with my (I am sure) stupid question... Marty ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] DAHDI/ZAP overlap dialing
I can only tell you that it worked before... Nov 2 17:22:28 VERBOSE[11329] logger.c: -- Extension '1004' in context 'from-pstn-deviate-custom' from '7034' does not when you have overlapdial turned on it should have checked if there's a potential matching extension which you have it right there and asterisk should have sent SETUP_ACK message back. if you won't find the solution for this I might fix that as a bounty if you're interested I'd double check that you really have overlapdial=yes for those channels ... it should be declared before channel = keyword in zapata.conf/chan_dahdi.conf Martin On Mon, Nov 2, 2009 at 10:28 AM, Vieri rentor...@yahoo.com wrote: --- On Sat, 10/31/09, Martin asteriskl...@callthem.info wrote: On Sat, Oct 31, 2009 at 5:27 AM, Tzafrir Cohen tzafrir.co...@xorcom.com wrote: I'm not sure if handling of overlap hasn't changed since. But can you provide a trace of how Asterisk sees things? e.g. 'pri intense debug span 1' the intense debug is overkill we only need messages of layer 3 ... just do pri debug span 1 Martin Here's the pri trace: Nov 2 17:22:28 VERBOSE[11329] logger.c: Protocol Discriminator: Q.931 (8) len=38 Nov 2 17:22:28 VERBOSE[11329] logger.c: Call Ref: len= 2 (reference 16976/0x4250) (Originator) Nov 2 17:22:28 VERBOSE[11329] logger.c: Message type: SETUP (5) Nov 2 17:22:28 VERBOSE[11329] logger.c: [04 03 80 90 a3] Nov 2 17:22:28 VERBOSE[11329] logger.c: Bearer Capability (len= 5) [ Ext: 1 Q.931 Std: 0 Info transfer capability: Speech (0) Nov 2 17:22:28 VERBOSE[11329] logger.c: Ext: 1 Trans mode/rate: 64kbps, circuit-mode (16) Nov 2 17:22:28 VERBOSE[11329] logger.c: User information layer 1: A-Law (35) Nov 2 17:22:28 VERBOSE[11329] logger.c: [18 03 a9 83 8b] Nov 2 17:22:28 VERBOSE[11329] logger.c: Channel ID (len= 5) [ Ext: 1 IntID: Implicit, PRI Spare: 0, Exclusive Dchan: 0 Nov 2 17:22:28 VERBOSE[11329] logger.c: ChanSel: As indicated in following octets Nov 2 17:22:28 VERBOSE[11329] logger.c: Ext: 1 Coding: 0 Number Specified Channel Type: 3 Nov 2 17:22:28 VERBOSE[11329] logger.c: Ext: 1 Channel: 11 ] Nov 2 17:22:28 VERBOSE[11329] logger.c: [1e 02 80 83] Nov 2 17:22:28 VERBOSE[11329] logger.c: Progress Indicator (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) 0: 0 Location: User (0) Nov 2 17:22:28 VERBOSE[11329] logger.c: Ext: 1 Progress Description: Calling equipment is non-ISDN. (3) ] Nov 2 17:22:28 VERBOSE[11329] logger.c: [6c 06 00 81 37 30 33 34] Nov 2 17:22:28 VERBOSE[11329] logger.c: Calling Number (len= 8) [ Ext: 0 TON: Unknown Number Type (0) NPI: Unknown Number Plan (0) Nov 2 17:22:28 VERBOSE[11329] logger.c: Presentation: Presentation permitted, user number passed network screening (1) '7034' ] Nov 2 17:22:28 VERBOSE[11329] logger.c: [70 05 80 31 30 30 34] Nov 2 17:22:28 VERBOSE[11329] logger.c: Called Number (len= 7) [ Ext: 1 TON: Unknown Number Type (0) NPI: Unknown Number Plan (0) '1004' ] Nov 2 17:22:28 VERBOSE[11329] logger.c: [7d 02 91 81] Nov 2 17:22:28 VERBOSE[11329] logger.c: IE: High-layer Compatibility (len = 4) Nov 2 17:22:28 VERBOSE[11329] logger.c: -- Making new call for cr 16976 Nov 2 17:22:28 VERBOSE[11329] logger.c: -- Processing Q.931 Call Setup Nov 2 17:22:28 VERBOSE[11329] logger.c: -- Processing IE 4 (cs0, Bearer Capability) Nov 2 17:22:28 VERBOSE[11329] logger.c: -- Processing IE 24 (cs0, Channel Identification) Nov 2 17:22:28 VERBOSE[11329] logger.c: -- Processing IE 30 (cs0, Progress Indicator) Nov 2 17:22:28 VERBOSE[11329] logger.c: -- Processing IE 108 (cs0, Calling Party Number) Nov 2 17:22:28 VERBOSE[11329] logger.c: -- Processing IE 112 (cs0, Called Party Number) Nov 2 17:22:28 VERBOSE[11329] logger.c: -- Processing IE 125 (cs0, High-layer Compatibility) Nov 2 17:22:28 VERBOSE[11329] logger.c: -- Extension '1004' in context 'from-pstn-deviate-custom' from '7034' does not exist. Rejecting call on channel 1/11, span 1 Nov 2 17:22:28 VERBOSE[11329] logger.c: NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Call Present, peerstate Call Initiated Nov 2 17:22:28 VERBOSE[11329] logger.c: Protocol Discriminator: Q.931 (8) len=9 Nov 2 17:22:28 VERBOSE[11329] logger.c: Call Ref: len= 2 (reference 16976/0x4250) (Terminator) Nov 2 17:22:28 VERBOSE[11329] logger.c: Message type: RELEASE COMPLETE (90) Nov 2 17:22:28 VERBOSE[11329] logger.c: [08 02 81 81] Nov 2 17:22:28 VERBOSE[11329] logger.c: Cause (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) 0: 0 Location: Private network serving the local user (1) Nov 2 17:22:28 VERBOSE[11329] logger.c: Ext: 1 Cause: Unallocated (unassigned) number (1), class = Normal
Re: [asterisk-users] DAHDI/ZAP overlap dialing
On Sat, Oct 31, 2009 at 5:27 AM, Tzafrir Cohen tzafrir.co...@xorcom.com wrote: I'm not sure if handling of overlap hasn't changed since. But can you provide a trace of how Asterisk sees things? e.g. 'pri intense debug span 1' the intense debug is overkill we only need messages of layer 3 ... just do pri debug span 1 Martin ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] DAHDI/ZAP overlap dialing
overlapdial=yes in zapata.conf/chan_dahdi.conf google it out Martin On Fri, Oct 30, 2009 at 6:54 AM, Vieri rentor...@yahoo.com wrote: Hi, I have a PRI euroisdn link between an Alcatel PBX and Asterisk. I'm having some trouble with overlap dialing. Suppose I dial '874053' from an Alcatel extension ('7034') where '87' is an Alcatel prefix of type ARS Prof.Trg Grp Seiz.with overlap. I'm expecting Asterisk to receive '1004053' (where '100' is a prefix which always shows up in the euroisdn setup). However, Asterisk is only receiving '1004' which means that it's not reading the digits that follow. Are there issues with receiving overlap dials from zap channels? According to the Alcatel trace below, it looks like Asterisk is accepting the call before a Sending complete is released by Alcatel. I'm using libpri 1.2.8 and Asterisk 1.2.31.1. Alcatel trace: t3 -- Cleaning mtracer... -- Positionning t3 filters... ++---+++-+-+--+--+ | filter | desti | src_id | cr_nbr | cpl_nbr | us_term | term_nbr | type | ++---+++-+-+--+--+ | 0 | ** | ** | * | ** | * | *** | 165 | | 1 | ** | ** | * | ** | * | *** | 166 | | 2 | ** | ** | * | ** | * | *** | 167 | | 3 | | | | | | | | | 4 | | | | | | | | | 5 | | | | | | | | | 6 | | | | | | | | | 7 | | | | | | | | ++---+++-+-+--+--+ Traces Analyser activated mtracer started ... (476142:01) MTRACER ♠©, version: R9.0-h1.301-31-d-es-c7s2 (476142:01) MTRACER num: 007, time: 2009/10/30 11:53:02, loss: 0% __ | (476157:02) 1095: Send_IO1 (link-nbr=19, sapi=0, tei=0) : | long: 51 desti: 0 source: 15 cryst: 0 cpl: 19 us: 8 term: 0 type a5 | tei: 0 message sent : SETUP [05] Call ref : 32 a8 |__ | | IE:[04] BEARER_CAPABILITY (l=3) 80 90 a3 | IE:[18] CHANNEL (l=3) a9 83 9b - T2 : B channel 27 exclusive | IE:[1e] PROGRESS_ID (l=2) 80 83 | IE:[6c] CALLING_NUMBER (l=6) - 00 81 Num : 7034 | IE:[70] CALLED_NUMBER (l=5) - 80 Num : 1004 | IE:[7d] HLC (l=2) 91 81 |__ __ | (476157:03) Concatenated-Physical-Event : | long: 24 desti: 0 source: 0 cryst: 0 cpl: 19 us: 0 term: 0 type a5 | tei: 0 message received : CALL PROC (02) Call ref : b2 a8 |__ | | IE:[18] CHANNEL (l=4) e9 81 83 9b |__ __ | (476157:04) Concatenated-Physical-Event : | long: 28 desti: 0 source: 0 cryst: 0 cpl: 19 us: 0 term: 0 type a5 | tei: 0 message received : CONNECT (07) Call ref : b2 a8 |__ | | IE:[18] CHANNEL (l=4) e9 81 83 9b | IE:[1e] PROGRESS_ID (l=2) 81 82 |__ __ | (476158:05) 1095: Send_IO1 (link-nbr=19, sapi=0, tei=0) : | long: 23 desti: 0 source: 15 cryst: 0 cpl: 19 us: 8 term: 0 type a5 | tei: 0 message sent : CONNECT ACK (0f) Call ref : 32 a8 |__ | | IE:[18] CHANNEL (l=3) a9 83 9b - T2 : B channel 27 exclusive |__ In Asterisk I see: Oct 30 11:48:02 VERBOSE[11329] logger.c: -- Accepting call from '7034' to '1004' on channel 1/27, span 1 If I change the Alcatel 87 prefix to use ARS Prof.Trg Grp Seizure (without overlap) then I get the following trace: __ | (488410:60) 1093: Send_IO1 (link-nbr=19, sapi=0, tei=0) : | long: 55 desti: 0 source: 15 cryst: 0 cpl: 19 us: 8 term: 0 type a5 | tei: 0 message sent : SETUP [05] Call ref : 33 52 |__ | | IE:[04] BEARER_CAPABILITY (l=3) 80 90 a3 | IE:[18] CHANNEL (l=3) a9 83 8a - T2 : B channel 10
Re: [asterisk-users] DAHDI/ZAP overlap dialing
it's not only for dialing in ... setup an extension that is shorter than the number ... and also without the . eg exten = 1000,1,Dial() also when you call out using the overlapdial circuit you do dial(zap/g1/) or dial(zap/g1/10) and the rest of the digits should come over overlapdial ... at least that's how it was designed to work Martin On Fri, Oct 30, 2009 at 8:25 AM, Vieri rentor...@yahoo.com wrote: I forgot to mention that I already have overlapdial=yes in zapata.conf. Besides, overlapdial=yes is only for dialing out from Asterisk. Anyway, that option is set. Any other ideas? --- On Fri, 10/30/09, Martin asteriskl...@callthem.info wrote: overlapdial=yes in zapata.conf/chan_dahdi.conf google it out Martin On Fri, Oct 30, 2009 at 6:54 AM, Vieri rentor...@yahoo.com wrote: Hi, I have a PRI euroisdn link between an Alcatel PBX and Asterisk. I'm having some trouble with overlap dialing. Suppose I dial '874053' from an Alcatel extension ('7034') where '87' is an Alcatel prefix of type ARS Prof.Trg Grp Seiz.with overlap. I'm expecting Asterisk to receive '1004053' (where '100' is a prefix which always shows up in the euroisdn setup). However, Asterisk is only receiving '1004' which means that it's not reading the digits that follow. Are there issues with receiving overlap dials from zap channels? According to the Alcatel trace below, it looks like Asterisk is accepting the call before a Sending complete is released by Alcatel. I'm using libpri 1.2.8 and Asterisk 1.2.31.1. Alcatel trace: t3 -- Cleaning mtracer... -- Positionning t3 filters... ++---+++-+-+--+--+ | filter | desti | src_id | cr_nbr | cpl_nbr | us_term | term_nbr | type | ++---+++-+-+--+--+ | 0 | ** | ** | * | ** | * | *** | 165 | | 1 | ** | ** | * | ** | * | *** | 166 | | 2 | ** | ** | * | ** | * | *** | 167 | | 3 | | | | | | | | | 4 | | | | | | | | | 5 | | | | | | | | | 6 | | | | | | | | | 7 | | | | | | | | ++---+++-+-+--+--+ Traces Analyser activated mtracer started ... (476142:01) MTRACER ♠©, version: R9.0-h1.301-31-d-es-c7s2 (476142:01) MTRACER num: 007, time: 2009/10/30 11:53:02, loss: 0% __ | (476157:02) 1095: Send_IO1 (link-nbr=19, sapi=0, tei=0) : | long: 51 desti: 0 source: 15 cryst: 0 cpl: 19 us: 8 term: 0 type a5 | tei: 0 message sent : SETUP [05] Call ref : 32 a8 |__ | | IE:[04] BEARER_CAPABILITY (l=3) 80 90 a3 | IE:[18] CHANNEL (l=3) a9 83 9b - T2 : B channel 27 exclusive | IE:[1e] PROGRESS_ID (l=2) 80 83 | IE:[6c] CALLING_NUMBER (l=6) - 00 81 Num : 7034 | IE:[70] CALLED_NUMBER (l=5) - 80 Num : 1004 | IE:[7d] HLC (l=2) 91 81 |__ __ | (476157:03) Concatenated-Physical-Event : | long: 24 desti: 0 source: 0 cryst: 0 cpl: 19 us: 0 term: 0 type a5 | tei: 0 message received : CALL PROC (02) Call ref : b2 a8 |__ | | IE:[18] CHANNEL (l=4) e9 81 83 9b |__ __ | (476157:04) Concatenated-Physical-Event : | long: 28 desti: 0 source: 0 cryst: 0 cpl: 19 us: 0 term: 0 type a5 | tei: 0 message received : CONNECT (07) Call ref : b2 a8 |__ | | IE:[18] CHANNEL (l=4) e9 81 83 9b | IE:[1e] PROGRESS_ID (l=2) 81 82 |__ __ | (476158:05) 1095: Send_IO1 (link-nbr=19, sapi=0, tei=0) : | long: 23 desti: 0 source: 15 cryst: 0 cpl: 19 us: 8 term: 0 type a5 | tei: 0 message sent : CONNECT ACK (0f) Call ref : 32 a8 |__ | | IE:[18] CHANNEL (l=3) a9 83 9b - T2 : B channel 27 exclusive
Re: [asterisk-users] DAHDI/ZAP overlap dialing
so you're either testing it wrong or it's been broken since that worked fine years ago you may try adding the . after then extension ... I don't remember maybe it's needed eg: exten = 1004000.,... but better yet exten = 100400XX,... Martin On Fri, Oct 30, 2009 at 10:08 AM, Vieri rentor...@yahoo.com wrote: With overlapdial=yes set, when an Alcatel extension calls Asterisk, the Alcatel user doesn't even have time to dial the second digit because Asterisk connects it immediately instead of waiting for the rest of the digits. In Asterisk I have an incoming context [from-alcatel] with patterns such as: exten = 1004000,... exten = 1004001,... exten = 1004002,... exten = 1004053,... etc. Supposedly, Alcatel is doing overlapdial, just like Asterisk. However, Asterisk only grabs the first digit and tries to match '1004' instead of '1004053'. Thanks anyway. --- On Fri, 10/30/09, Martin asteriskl...@callthem.info wrote: it's not only for dialing in ... setup an extension that is shorter than the number ... and also without the . eg exten = 1000,1,Dial() also when you call out using the overlapdial circuit you do dial(zap/g1/) or dial(zap/g1/10) and the rest of the digits should come over overlapdial ... at least that's how it was designed to work Martin On Fri, Oct 30, 2009 at 8:25 AM, Vieri rentor...@yahoo.com wrote: I forgot to mention that I already have overlapdial=yes in zapata.conf. Besides, overlapdial=yes is only for dialing out from Asterisk. Anyway, that option is set. Any other ideas? --- On Fri, 10/30/09, Martin asteriskl...@callthem.info wrote: overlapdial=yes in zapata.conf/chan_dahdi.conf google it out Martin On Fri, Oct 30, 2009 at 6:54 AM, Vieri rentor...@yahoo.com wrote: Hi, I have a PRI euroisdn link between an Alcatel PBX and Asterisk. I'm having some trouble with overlap dialing. Suppose I dial '874053' from an Alcatel extension ('7034') where '87' is an Alcatel prefix of type ARS Prof.Trg Grp Seiz.with overlap. I'm expecting Asterisk to receive '1004053' (where '100' is a prefix which always shows up in the euroisdn setup). However, Asterisk is only receiving '1004' which means that it's not reading the digits that follow. Are there issues with receiving overlap dials from zap channels? According to the Alcatel trace below, it looks like Asterisk is accepting the call before a Sending complete is released by Alcatel. I'm using libpri 1.2.8 and Asterisk 1.2.31.1. Alcatel trace: t3 -- Cleaning mtracer... -- Positionning t3 filters... ++---+++-+-+--+--+ | filter | desti | src_id | cr_nbr | cpl_nbr | us_term | term_nbr | type | ++---+++-+-+--+--+ | 0 | ** | ** | * | ** | * | *** | 165 | | 1 | ** | ** | * | ** | * | *** | 166 | | 2 | ** | ** | * | ** | * | *** | 167 | | 3 | | | | | | | | | 4 | | | | | | | | | 5 | | | | | | | | | 6 | | | | | | | | | 7 | | | | | | | | ++---+++-+-+--+--+ Traces Analyser activated mtracer started ... (476142:01) MTRACER ♠©, version: R9.0-h1.301-31-d-es-c7s2 (476142:01) MTRACER num: 007, time: 2009/10/30 11:53:02, loss: 0% __ | (476157:02) 1095: Send_IO1 (link-nbr=19, sapi=0, tei=0) : | long: 51 desti: 0 source: 15 cryst: 0 cpl: 19 us: 8 term: 0 type a5 | tei: 0 message sent : SETUP [05] Call ref : 32 a8 |__ | | IE:[04] BEARER_CAPABILITY (l=3) 80 90 a3 | IE:[18] CHANNEL (l=3) a9 83 9b - T2 : B channel 27 exclusive | IE:[1e] PROGRESS_ID (l=2) 80 83 | IE:[6c] CALLING_NUMBER (l=6) - 00 81 Num : 7034 | IE:[70] CALLED_NUMBER (l=5) - 80 Num : 1004 | IE:[7d] HLC (l=2) 91 81 |__ __ | (476157:03) Concatenated-Physical-Event : | long: 24 desti: 0 source: 0 cryst: 0 cpl: 19 us: 0 term: 0 type a5 | tei: 0 message received : CALL PROC (02) Call ref : b2 a8 |__ | | IE:[18] CHANNEL (l=4) e9 81 83 9b
Re: [asterisk-users] hangup from which side
no, I meant this s,1,Set(H=us) s,n,Dial(,,g) s,n,Set(H=them) h,1,Noop(${H} hanged up) That might or may not work ... since I didn't actually check it Martin On Mon, Oct 26, 2009 at 9:05 AM, Danny Nicholas da...@debsinc.com wrote: So this *should* work?? [outgoing] - exten = s,1,Dial(DAHDI/1/5551212,20) - exten = s,2,Noop(I hung up) - exten = s,3,Hangup - exten = h,1,Noop(you hung up) - exten = h,2,Hangup [incoming] - exten = s,1,Answer - exten = s,2,Noop(I hung up) - exten = s,3,Hangup - exten = h,1,noop(you hung up) - exten = h,2,hangup -Original Message- From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Martin Sent: Friday, October 23, 2009 1:49 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] hangup from which side if you are debugging visually then look at SIP BYE message ... who sent it first and on PRI who sent the DISCONNECT message first. if you need to know that in the dialplan ... then if the originating channel hanged up then the dialplan should stop executing and go straight to h,1 even if Dial(,,g) is used also there is a channel variable HANGUPCAUSE and you can check what it does on the next step with Dial(,,g) and on h,1 ... since I don't know :) Martin On Thu, Oct 22, 2009 at 12:12 PM, B.Masoud @ SH i...@saudihome.com wrote: When Asterisk establish a call through an outbound trunk, Is there any way I can know who hang up the call first? The caller or the party called? Thanks. ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- 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 -- 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 -- 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 -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users