Multicast paging with page pro crashing asterisk?

I am running PBX distro 10.13.66-15 and paging and intercom module 13.0.21. Have a bunch of grandstream 2140 phones that I confirmed multicast phone to phone worked without issue. I configured the same multicast address as the address for a page group (in the page pro enabled section) but am not getting any phones to pick up as expected. I also setup a Polycom endpoint and that didnt pick up either. I read the ongoing horror stories about the gxp grandstream models and poor audio quality with multicasting, but I am not even getting to that point. I opened up Asterisk cli and made a call to the page group. Strange thing is that it closes the asterisk CLI as soon as the call is initiated and the endpoint never shows it’s connected - it just says calling. I tried this again and after I got kicked out of the cli i tried to connect to asterisk again and it said it wasnt running, but it was when I tried right after that so I assume that means it is crashing asterisk. All other normal uses of this system do not result in any known issues.

Any help would be appreciated.

Thanks,

Brian

[root@two ~]# asterisk -rvvvvvv
Asterisk 13.10.0, Copyright (C) 1999 - 2014, Digium, Inc. and others.
Created by Mark Spencer <[email protected]>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 13.10.0 currently running on two (pid = 7054)
  == Using SIP RTP CoS mark 5
    -- Executing [7111@from-internal:1] Goto("SIP/7203-00000000", "app-pagegroups,7111,1") in new stack
    -- Goto (app-pagegroups,7111,1)
    -- Executing [7111@app-pagegroups:1] Set("SIP/7203-00000000", "MCAST=225.0.0.10:10000") in new stack
    -- Executing [7111@app-pagegroups:2] Macro("SIP/7203-00000000", "user-callerid,") in new stack
    -- Executing [s@macro-user-callerid:1] Set("SIP/7203-00000000", "TOUCH_MONITOR=1471037903.0") in new stack
    -- Executing [s@macro-user-callerid:2] Set("SIP/7203-00000000", "AMPUSER=7203") in new stack
    -- Executing [s@macro-user-callerid:3] GotoIf("SIP/7203-00000000", "0?report") in new stack
    -- Executing [s@macro-user-callerid:4] ExecIf("SIP/7203-00000000", "1?Set(REALCALLERIDNUM=7203)") in new stack
    -- Executing [s@macro-user-callerid:5] Set("SIP/7203-00000000", "AMPUSER=7203") in new stack
    -- Executing [s@macro-user-callerid:6] GotoIf("SIP/7203-00000000", "0?limit") in new stack
    -- Executing [s@macro-user-callerid:7] Set("SIP/7203-00000000", "AMPUSERCIDNAME=Brian Campbell") in new stack
    -- Executing [s@macro-user-callerid:8] GotoIf("SIP/7203-00000000", "0?report") in new stack
    -- Executing [s@macro-user-callerid:9] Set("SIP/7203-00000000", "AMPUSERCID=7203") in new stack
    -- Executing [s@macro-user-callerid:10] Set("SIP/7203-00000000", "__DIAL_OPTIONS=Ttr") in new stack
    -- Executing [s@macro-user-callerid:11] Set("SIP/7203-00000000", "CALLERID(all)="Brian Campbell" <7203>") in new stack
    -- Executing [s@macro-user-callerid:12] GotoIf("SIP/7203-00000000", "0?limit") in new stack
    -- Executing [s@macro-user-callerid:13] ExecIf("SIP/7203-00000000", "0?Set(GROUP(concurrency_limit)=7203)") in new stack
    -- Executing [s@macro-user-callerid:14] ExecIf("SIP/7203-00000000", "0?Set(CHANNEL(language)=)") in new stack
    -- Executing [s@macro-user-callerid:15] GotoIf("SIP/7203-00000000", "0?continue") in new stack
    -- Executing [s@macro-user-callerid:16] ExecIf("SIP/7203-00000000", "1?Set(__CALLEE_ACCOUNCODE=)") in new stack
    -- Executing [s@macro-user-callerid:17] Set("SIP/7203-00000000", "__TTL=64") in new stack
    -- Executing [s@macro-user-callerid:18] GotoIf("SIP/7203-00000000", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,29)
    -- Executing [s@macro-user-callerid:29] Set("SIP/7203-00000000", "CALLERID(number)=7203") in new stack
    -- Executing [s@macro-user-callerid:30] Set("SIP/7203-00000000", "CALLERID(name)=Brian Campbell") in new stack
    -- Executing [s@macro-user-callerid:31] Set("SIP/7203-00000000", "CDR(cnum)=7203") in new stack
    -- Executing [s@macro-user-callerid:32] Set("SIP/7203-00000000", "CDR(cnam)=Brian Campbell") in new stack
    -- Executing [s@macro-user-callerid:33] Set("SIP/7203-00000000", "CHANNEL(language)=en") in new stack
    -- Executing [7111@app-pagegroups:3] Set("SIP/7203-00000000", "_PAGEGROUP=7111") in new stack
    -- Executing [7111@app-pagegroups:4] GotoIf("SIP/7203-00000000", "1?:busy") in new stack
    -- Executing [7111@app-pagegroups:5] Set("SIP/7203-00000000", "DEVICE_STATE(Custom:PAGE7111)=INUSE") in new stack
    -- Executing [7111@app-pagegroups:6] Gosub("SIP/7203-00000000", "app-paging,ssetup,1()") in new stack
    -- Executing [ssetup@app-paging:1] Set("SIP/7203-00000000", "_SIPURI=") in new stack
    -- Executing [ssetup@app-paging:2] Set("SIP/7203-00000000", "_ALERTINFO=Ring Answer") in new stack
    -- Executing [ssetup@app-paging:3] Set("SIP/7203-00000000", "_CALLINFO=<uri>;answer-after=0") in new stack
    -- Executing [ssetup@app-paging:4] Set("SIP/7203-00000000", "_SIPURI=intercom=true") in new stack
    -- Executing [ssetup@app-paging:5] Set("SIP/7203-00000000", "_DTIME=5") in new stack
    -- Executing [ssetup@app-paging:6] Set("SIP/7203-00000000", "_ANSWERMACRO=") in new stack
    -- Executing [ssetup@app-paging:7] Set("SIP/7203-00000000", "PAGE_CONF=1471037903638") in new stack
    -- Executing [ssetup@app-paging:8] Return("SIP/7203-00000000", "") in new stack
    -- Executing [7111@app-pagegroups:7] Set("SIP/7203-00000000", "PAGEMODE=PAGE") in new stack
    -- Executing [7111@app-pagegroups:8] Set("SIP/7203-00000000", "PAGE_MEMBERS=") in new stack
    -- Executing [7111@app-pagegroups:9] Set("SIP/7203-00000000", "PAGE_CONF_OPTS=") in new stack
    -- Executing [7111@app-pagegroups:10] Set("SIP/7203-00000000", "ANNOUNCEMENT=beep") in new stack
    -- Executing [7111@app-pagegroups:11] ExecIf("SIP/7203-00000000", "1?Set(STREAM=):Set(STREAM=NONE)") in new stack
    -- Executing [7111@app-pagegroups:12] AGI("SIP/7203-00000000", "page.agi") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/page.agi
    -- Called s@app-page-stream
    -- Executing [s@app-page-stream:1] Wait("Local/s@app-page-stream-00000000;2", "1") in new stack
    -- Called PAGErtp@app-paging/n
    -- Executing [PAGErtp@app-paging:1] Macro("Local/PAGErtp@app-paging-00000001;2", "autoanswer,rtp") in new stack
    -- Executing [s@macro-autoanswer:1] GotoIf("Local/PAGErtp@app-paging-00000001;2", "1?knowndial") in new stack
    -- Called s@app-page-stream
    -- Executing [s@app-page-stream:1] Wait("Local/s@app-page-stream-00000002;2", "1") in new stack
    -- Goto (macro-autoanswer,s,19)
    -- Executing [s@macro-autoanswer:19] Set("Local/PAGErtp@app-paging-00000001;2", "DIAL=MulticastRTP/basic/225.0.0.10:10000") in new stack
    -- Executing [s@macro-autoanswer:20] ExecIf("Local/PAGErtp@app-paging-00000001;2", "0?Set(DIAL=DAHDIticastRTP/basic/225.0.0.10:10000)") in new stack
    -- Executing [s@macro-autoanswer:21] GotoIf("Local/PAGErtp@app-paging-00000001;2", "0?macro") in new stack
    -- Executing [s@macro-autoanswer:22] GotoIf("Local/PAGErtp@app-paging-00000001;2", "0?pjsipua") in new stack
    -- Executing [s@macro-autoanswer:23] Set("Local/PAGErtp@app-paging-00000001;2", "USERAGENT=") in new stack
    -- Executing [s@macro-autoanswer:24] Goto("Local/PAGErtp@app-paging-00000001;2", "uafin") in new stack
    -- Goto (macro-autoanswer,s,28)
    -- Executing [s@macro-autoanswer:28] ExecIf("Local/PAGErtp@app-paging-00000001;2", "1?Set(USERAGENT=rtp)") in new stack
    -- Executing [s@macro-autoanswer:29] ExecIf("Local/PAGErtp@app-paging-00000001;2", "0?Set(CALLINFO=<sip:broadworks.net>;answer-after=0)") in new stack
    -- Executing [s@macro-autoanswer:30] ExecIf("Local/PAGErtp@app-paging-00000001;2", "0?Set(ALERTINFO=Intercom)") in new stack
    -- Executing [s@macro-autoanswer:31] ExecIf("Local/PAGErtp@app-paging-00000001;2", "0?Set(ALERTINFO=Alert-Info: Auto Answer)") in new stack
    -- Executing [s@macro-autoanswer:32] ExecIf("Local/PAGErtp@app-paging-00000001;2", "0?Set(ALERTINFO=ring-answer)") in new stack
    -- Executing [s@macro-autoanswer:33] ExecIf("Local/PAGErtp@app-paging-00000001;2", "1?Set(__SIP_URI_OPTIONS=intercom=true)") in new stack
    -- Executing [PAGErtp@app-paging:2] NoOp("Local/PAGErtp@app-paging-00000001;2", "") in new stack
    -- Executing [PAGErtp@app-paging:3] GotoIf("Local/PAGErtp@app-paging-00000001;2", "1?doptions") in new stack
    -- Goto (app-paging,PAGErtp,6)
    -- Executing [PAGErtp@app-paging:6] ExecIf("Local/PAGErtp@app-paging-00000001;2", "1?Set(_DOPTIONS=b(autoanswer^s^1(Ring Answer,<uri>;answer-after=0)))") in new stack
    -- Executing [PAGErtp@app-paging:7] Dial("Local/PAGErtp@app-paging-00000001;2", "MulticastRTP/basic/225.0.0.10:10000,5,A(beep)b(autoanswer^s^1(Ring Answer,<uri>;answer-after=0))") in new stack
two*CLI>
Disconnected from Asterisk server
Asterisk cleanly ending (0).
Executing last minute cleanups
[root@two ~]# asterisk -rvvvvvv
Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?)

look in /var/log/messages for what happened at the time that asterisk crashed on that event.

Thanks for the prompting Dicko.

two kernel: asterisk[19682]: segfault at 0 ip 00007f07edbc16bf sp 00007f0745fc8998 error 4 in libc-2.12.so[7f07eda8e000+18a000]

Thanks,

Brian

My experience with segfaults like these are to immediately suspect bad RAM. It’s happened to me twice, and that was the cause both times.

There are lots of programs out there to check your RAM. I prefer the old NetBSD memtest86 program. It creates a bootable disk image that you can use to invasively (and ridiculously extensively) test your memory.

Note: once you’ve tested your RAM and found it good, move on to another cause. I know there are plenty of other things that can cause these types of errors: this is just my experience.

Thanks for the advice cynjut. I havent seen any other segfaults on this box but will run the memtest and post back with the result. It is a brand new Sangoma “FreePBX Phone System 500” appliance and I don’t know if they do burn-in testing with those or not.

Thanks,

Brian

For what’s it’s worth I did take down the system and run two full iterations of memtest and they passed without issue.

Thanks,

Brian

I’m experiencing the exact same issue using 10.13.66-15.

Aug 25 14:15:54 localhost kernel: asterisk[372]: segfault at 0 ip 00007f43d28066bf sp 00007f43d0faca68 error 4 in libc-2.12.so[7f43d26d3000+18a00

Brand new box with no memory related issues as well.

Thanks in advance for any additional troubleshooting or assistance.

This sounds like a Asterisk problem as its a Asterisk feature.