A lot of user equipment assumes that the network is in PTMP mode with no easy way of changing that. libpri 1.4.11.?? has now implemented that mode, and this patch is a back-port from the code in asterisk 1.8.0 beta5 into asterisk. There could be more code required but this is the minimal code that seems to work. If only an older libpri is available it should automatically revert to using the "sucks for you" message and preventing chan_dahdi from loading. It should not affect anybody not using bri_net_ptmp. I've done some basic call testing in both directions but I'm not an ISDN expert by far and your mileage may vary if you're using this mode. Reproducible: Always Steps to Reproduce:
Created attachment 247557 [details, diff] ast-backport-bri_net_ptmp-1.6.2.diff I manually applied the patch after ebuild asterisk-1.6.2.11-r1.ebuild clean unpack and before prepare, after which I checked the configure file before issuing a ebuild ... merge. After that I did a few very basic call checks (ability to make and receive calls on the port).
This will go on 1.6.2.13; please test against that ebuild.
You've been busy as well ... it applies cleanly (with some fuzz) and compiles (applied after unpack, before prepare). Easiest is (imho) to just add into the patch set. I can rediff if you really need something that applies without fuzz.
+*asterisk-1.6.2.13-r1 (16 Sep 2010) + + 16 Sep 2010; <chainsaw@gentoo.org> +asterisk-1.6.2.13-r1.ebuild, + +files/1.6.2/asterisk-1.6.2.13-backport-bri-net-ptmp.patch, + +files/1.6.2/asterisk-1.6.2.13-dahdiras-without-root.patch, + +files/1.6.2/asterisk-1.6.2.13-iax2-peerstate.patch, + +files/1.6.2/asterisk.logrotate2: + Add peerstatus to IAX2, closes bug #330135. Correct rotate keyword in + logrotate file, closes bug #336066. Add USE="doc", closes bug #331613. + Invoke DAHDIRAS differently so non-root works, closes bug #337297. + Backported bri_net_ptmp from 1.8 branch, closes bug #337591. Many thanks + to Jaco Kroon for all these bugfixes & improvements.