diff --git a/asterisk/conf/mobile/pjsip.conf b/asterisk/conf/mobile/pjsip.conf index 9500b01..a000c93 100644 --- a/asterisk/conf/mobile/pjsip.conf +++ b/asterisk/conf/mobile/pjsip.conf @@ -11,9 +11,9 @@ type = global endpoint_identifier_order = ip,username,anonymous ; Basic UDP Transport. -[ipv4-udp] +[ipv4-udp-nat] type = transport -bind = 0.0.0.0:65535 +bind = 0.0.0.0:65534 protocol = udp local_net = 172.16.0.0/12 local_net = 192.168.0.0/16 diff --git a/asterisk/conf/mobile/pjsip_users.conf b/asterisk/conf/mobile/pjsip_users.conf new file mode 100644 index 0000000..abfba9c --- /dev/null +++ b/asterisk/conf/mobile/pjsip_users.conf @@ -0,0 +1,12 @@ +; +; /etc/asterisk/pjsip_users.conf +; +[1000](ext-defaults) + +; Yay templates; we generally only need to provide an inbound user/pass +; and a caller id. +inbound_auth/username=1000 + +inbound_auth/password=MapleCarrotBlueGrainFishSoapSoup + +endpoint/callerid=1000 diff --git a/asterisk/conf/mobile/pjsip_wizard.conf b/asterisk/conf/mobile/pjsip_wizard.conf new file mode 100644 index 0000000..0493ec9 --- /dev/null +++ b/asterisk/conf/mobile/pjsip_wizard.conf @@ -0,0 +1,39 @@ +; +; /etc/asterisk/pjsip_wizard.conf +; +[ext-defaults](!) +type=wizard + +; Users must register and auth! +accepts_registrations=yes +accepts_auth=yes + +; Check ext connectivity every x seconds. +aor/qualify_frequency=30 + +; How long do we wait for a response to our connection check? +aor/qualify_timeout=3.0 + +; Remove older sessions when logins exceed max_contacts. +aor/remove_existing=yes + +; Max simultaneous account logins. +endpoint/max_contacts=1 + +; Default context. +endpoint/context=from-ext + +; Audio codecs: alaw only please. +endpoint/allow=!all,alaw + +; Default language. +endpoint/language=en_GB + +; By default don't allow direct media connections. +endpoint/direct_media=no + +; Busy Lamp field / Presence context. +endpoint/subscribe_context=presence + +; Load users. +#tryinclude pjsip_users.conf diff --git a/asterisk/conf/mobile/res_stun_monitor.conf b/asterisk/conf/mobile/res_stun_monitor.conf new file mode 100644 index 0000000..1a13ac7 --- /dev/null +++ b/asterisk/conf/mobile/res_stun_monitor.conf @@ -0,0 +1,9 @@ +; +; /etc/asterisk/rtp.conf +; +; This really isn't needed unless you're behind NAT. +; +[general] + +stunaddr=stun.aa.net.uk:3478 +stunrefresh=30 diff --git a/asterisk/conf/mobile/rtp.conf b/asterisk/conf/mobile/rtp.conf index d5ebdae..aed55be 100644 --- a/asterisk/conf/mobile/rtp.conf +++ b/asterisk/conf/mobile/rtp.conf @@ -5,4 +5,4 @@ ; [general] rtpstart=62535 -rtpend=65534 +rtpend=65533