Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 337591 - net-misc/asterisk - backported bri_net_ptmp support
Summary: net-misc/asterisk - backported bri_net_ptmp support
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Tony Vroon (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-16 08:44 UTC by Jaco Kroon
Modified: 2010-09-16 17:29 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
ast-backport-bri_net_ptmp-1.6.2.diff (ast-backport-bri_net_ptmp-1.6.2.diff,1.62 KB, patch)
2010-09-16 08:47 UTC, Jaco Kroon
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jaco Kroon 2010-09-16 08:44:42 UTC
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:
Comment 1 Jaco Kroon 2010-09-16 08:47:14 UTC
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).
Comment 2 Tony Vroon (RETIRED) gentoo-dev 2010-09-16 08:56:34 UTC
This will go on 1.6.2.13; please test against that ebuild.
Comment 3 Jaco Kroon 2010-09-16 09:33:35 UTC
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.
Comment 4 Tony Vroon (RETIRED) gentoo-dev 2010-09-16 17:29:59 UTC
+*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.