Hi all,
I have a SIP-Account on Asterisk named ‘1337’(pls don’t mock me for that^^)
but I can’t log in to it. I always get a ‘Request Timeout’ Error on my Clients. I’ve tried zoiper and csipsimple on Android 4.4.4 and zoiper on Windows 8.1.
I’ve set ‘debug set 4’ and ‘sip set debug on’ but I did not see any debug messages on the asterisk cli.
For background:
I’m trying to build a VOIP-GSM-Gateway with a USB-UMTS-Modem with asterisk 11 an the cham_dongle module and freepbx 2.11.
I have set it all up according to this Tutorial:
http://sourceforge.net/p/raspbx/discussion/tutorials/thread/6a57b991/#4df4
I decided to look at the network traffic.
My Asterisk is behind a NAT. I have forwarded port 28888 to my Asterisk server and am using a dyndns service to connect to it.
First I checked the port I used.
[code]netstat -an | grep 28888
udp 0 0 0.0.0.0:28888 0.0.0.0:*[/code]
ok someones listening.
Now I looked at the traffic on port 28888 when trying to connect to asterisk with my Sip-Account.
[code]sudo ngrep -d any -Wbyline -t port 28888
U 2014/12/28 00:59:24.739836 89.13.143.134:44654 -> 192.168.1.3:28888
REGISTER sip:foobar.duckdns.org:28888 SIP/2.0.
Via: SIP/2.0/UDP 192.168.1.7:44654;rport;branch=z9hG4bKPjtimYElm3SPro3tMR5GNvD4XQyZms5JVn.
Route: sip:foobar.duckdns.org:28888;transport=udp;lr.
Max-Forwards: 70.
From: sip:1337@foobar.duckdns.org;tag=N.2FUp7KkfXY66RA5WOfz7PauzsEzKVP.
To: sip:1337@foobar.duckdns.org.
Call-ID: fFxgunpuPj5KAvJJ5fXYJqUaytDd-Mgo.
CSeq: 48673 REGISTER.
User-Agent: CSipSimple_umts_spyder-19/r2457.
Contact: sip:1337@192.168.1.7:44654;ob.
Expires: 900.
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS.
Content-Length: 0.
.
U 2014/12/28 00:59:25.269926 89.13.143.134:44654 -> 192.168.1.3:28888
REGISTER sip:foobar.duckdns.org:28888 SIP/2.0.
Via: SIP/2.0/UDP 192.168.1.7:44654;rport;branch=z9hG4bKPjtimYElm3SPro3tMR5GNvD4XQyZms5JVn.
Route: sip:foobar.duckdns.org:28888;transport=udp;lr.
Max-Forwards: 70.
From: sip:1337@foobar.duckdns.org;tag=N.2FUp7KkfXY66RA5WOfz7PauzsEzKVP.
To: sip:1337@foobar.duckdns.org.
Call-ID: fFxgunpuPj5KAvJJ5fXYJqUaytDd-Mgo.
CSeq: 48673 REGISTER.
User-Agent: CSipSimple_umts_spyder-19/r2457.
Contact: sip:1337@192.168.1.7:44654;ob.
Expires: 900.
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS.
Content-Length: 0.
.
U 2014/12/28 00:59:26.265234 89.13.143.134:44654 -> 192.168.1.3:28888
REGISTER sip:foobar.duckdns.org:28888 SIP/2.0.
Via: SIP/2.0/UDP 192.168.1.7:44654;rport;branch=z9hG4bKPjtimYElm3SPro3tMR5GNvD4XQyZms5JVn.
Route: sip:foobar.duckdns.org:28888;transport=udp;lr.
Max-Forwards: 70.
From: sip:1337@foobar.duckdns.org;tag=N.2FUp7KkfXY66RA5WOfz7PauzsEzKVP.
To: sip:1337@foobar.duckdns.org.
Call-ID: fFxgunpuPj5KAvJJ5fXYJqUaytDd-Mgo.
CSeq: 48673 REGISTER.
User-Agent: CSipSimple_umts_spyder-19/r2457.
Contact: sip:1337@192.168.1.7:44654;ob.
Expires: 900.
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS.
Content-Length: 0.
.
U 2014/12/28 00:59:28.289898 89.13.143.134:44654 -> 192.168.1.3:28888
REGISTER sip:foobar.duckdns.org:28888 SIP/2.0.
Via: SIP/2.0/UDP 192.168.1.7:44654;rport;branch=z9hG4bKPjtimYElm3SPro3tMR5GNvD4XQyZms5JVn.
Route: sip:foobar.duckdns.org:28888;transport=udp;lr.
Max-Forwards: 70.
From: sip:1337@foobar.duckdns.org;tag=N.2FUp7KkfXY66RA5WOfz7PauzsEzKVP.
To: sip:1337@foobar.duckdns.org.
Call-ID: fFxgunpuPj5KAvJJ5fXYJqUaytDd-Mgo.
CSeq: 48673 REGISTER.
User-Agent: CSipSimple_umts_spyder-19/r2457.
Contact: sip:1337@192.168.1.7:44654;ob.
Expires: 900.
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS.
Content-Length: 0.
.
U 2014/12/28 00:59:32.291827 89.13.143.134:44654 -> 192.168.1.3:28888
REGISTER sip:foobar.duckdns.org:28888 SIP/2.0.
Via: SIP/2.0/UDP 192.168.1.7:44654;rport;branch=z9hG4bKPjtimYElm3SPro3tMR5GNvD4XQyZms5JVn.
Route: sip:foobar.duckdns.org:28888;transport=udp;lr.
Max-Forwards: 70.
From: sip:1337@foobar.duckdns.org;tag=N.2FUp7KkfXY66RA5WOfz7PauzsEzKVP.
To: sip:1337@foobar.duckdns.org.
Call-ID: fFxgunpuPj5KAvJJ5fXYJqUaytDd-Mgo.
CSeq: 48673 REGISTER.
User-Agent: CSipSimple_umts_spyder-19/r2457.
Contact: sip:1337@192.168.1.7:44654;ob.
Expires: 900.
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS.
Content-Length: 0.
.
U 2014/12/28 00:59:36.304014 89.13.143.134:44654 -> 192.168.1.3:28888
REGISTER sip:foobar.duckdns.org:28888 SIP/2.0.
Via: SIP/2.0/UDP 192.168.1.7:44654;rport;branch=z9hG4bKPjtimYElm3SPro3tMR5GNvD4XQyZms5JVn.
Route: sip:foobar.duckdns.org:28888;transport=udp;lr.
Max-Forwards: 70.
From: sip:1337@foobar.duckdns.org;tag=N.2FUp7KkfXY66RA5WOfz7PauzsEzKVP.
To: sip:1337@foobar.duckdns.org.
Call-ID: fFxgunpuPj5KAvJJ5fXYJqUaytDd-Mgo.
CSeq: 48673 REGISTER.
User-Agent: CSipSimple_umts_spyder-19/r2457.
Contact: sip:1337@192.168.1.7:44654;ob.
Expires: 900.
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS.
Content-Length: 0.
.
U 2014/12/28 00:59:40.310752 89.13.143.134:44654 -> 192.168.1.3:28888
REGISTER sip:foobar.duckdns.org:28888 SIP/2.0.
Via: SIP/2.0/UDP 192.168.1.7:44654;rport;branch=z9hG4bKPjtimYElm3SPro3tMR5GNvD4XQyZms5JVn.
Route: sip:foobar.duckdns.org:28888;transport=udp;lr.
Max-Forwards: 70.
From: sip:1337@foobar.duckdns.org;tag=N.2FUp7KkfXY66RA5WOfz7PauzsEzKVP.
To: sip:1337@foobar.duckdns.org.
Call-ID: fFxgunpuPj5KAvJJ5fXYJqUaytDd-Mgo.
CSeq: 48673 REGISTER.
User-Agent: CSipSimple_umts_spyder-19/r2457.
Contact: sip:1337@192.168.1.7:44654;ob.
Expires: 900.
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS.
Content-Length: 0.
.
U 2014/12/28 00:59:44.316356 89.13.143.134:44654 -> 192.168.1.3:28888
REGISTER sip:foobar.duckdns.org:28888 SIP/2.0.
Via: SIP/2.0/UDP 192.168.1.7:44654;rport;branch=z9hG4bKPjtimYElm3SPro3tMR5GNvD4XQyZms5JVn.
Route: sip:foobar.duckdns.org:28888;transport=udp;lr.
Max-Forwards: 70.
From: sip:1337@foobar.duckdns.org;tag=N.2FUp7KkfXY66RA5WOfz7PauzsEzKVP.
To: sip:1337@foobar.duckdns.org.
Call-ID: fFxgunpuPj5KAvJJ5fXYJqUaytDd-Mgo.
CSeq: 48673 REGISTER.
User-Agent: CSipSimple_umts_spyder-19/r2457.
Contact: sip:1337@192.168.1.7:44654;ob.
Expires: 900.
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS.
Content-Length: 0.
.
U 2014/12/28 00:59:48.326167 89.13.143.134:44654 -> 192.168.1.3:28888
REGISTER sip:foobar.duckdns.org:28888 SIP/2.0.
Via: SIP/2.0/UDP 192.168.1.7:44654;rport;branch=z9hG4bKPjtimYElm3SPro3tMR5GNvD4XQyZms5JVn.
Route: sip:foobar.duckdns.org:28888;transport=udp;lr.
Max-Forwards: 70.
From: sip:1337@foobar.duckdns.org;tag=N.2FUp7KkfXY66RA5WOfz7PauzsEzKVP.
To: sip:1337@foobar.duckdns.org.
Call-ID: fFxgunpuPj5KAvJJ5fXYJqUaytDd-Mgo.
CSeq: 48673 REGISTER.
User-Agent: CSipSimple_umts_spyder-19/r2457.
Contact: sip:1337@192.168.1.7:44654;ob.
Expires: 900.
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS.
Content-Length: 0.
.
U 2014/12/28 00:59:50.885027 89.13.143.134:44654 -> 192.168.1.3:28888
SUBSCRIBE sip:1337@foobar.duckdns.org SIP/2.0.
Via: SIP/2.0/UDP 192.168.1.7:44654;rport;branch=z9hG4bKPjWj6hW8N3fVlteUbZPlo6Cl0X6UGwocdL.
Max-Forwards: 70.
From: sip:1337@foobar.duckdns.org;tag=3cYLLk2vM4QJPIyqas.FfWk2hXe-ZaLV.
To: sip:1337@foobar.duckdns.org.
Contact: sip:1337@192.168.1.7:44654;ob.
Call-ID: Qr4xEsKNfyknyy2vhk576ICg7JdVzlMW.
CSeq: 10140 SUBSCRIBE.
Route: sip:foobar.duckdns.org:28888;transport=udp;lr.
Event: message-summary.
Expires: 3600.
Supported: replaces, 100rel, timer, norefersub.
Accept: application/simple-message-summary.
Allow-Events: presence, message-summary, refer.
User-Agent: CSipSimple_umts_spyder-19/r2457.
Content-Length: 0.
.
U 2014/12/28 00:59:51.375083 89.13.143.134:44654 -> 192.168.1.3:28888
SUBSCRIBE sip:1337@foobar.duckdns.org SIP/2.0.
Via: SIP/2.0/UDP 192.168.1.7:44654;rport;branch=z9hG4bKPjWj6hW8N3fVlteUbZPlo6Cl0X6UGwocdL.
Max-Forwards: 70.
From: sip:1337@foobar.duckdns.org;tag=3cYLLk2vM4QJPIyqas.FfWk2hXe-ZaLV.
To: sip:1337@foobar.duckdns.org.
Contact: sip:1337@192.168.1.7:44654;ob.
Call-ID: Qr4xEsKNfyknyy2vhk576ICg7JdVzlMW.
CSeq: 10140 SUBSCRIBE.
Route: sip:foobar.duckdns.org:28888;transport=udp;lr.
Event: message-summary.
Expires: 3600.
Supported: replaces, 100rel, timer, norefersub.
Accept: application/simple-message-summary.
Allow-Events: presence, message-summary, refer.
User-Agent: CSipSimple_umts_spyder-19/r2457.
Content-Length: 0.
.
U 2014/12/28 00:59:52.506452 89.13.143.134:44654 -> 192.168.1.3:28888
REGISTER sip:foobar.duckdns.org:28888 SIP/2.0.
Via: SIP/2.0/UDP 192.168.1.7:44654;rport;branch=z9hG4bKPjtimYElm3SPro3tMR5GNvD4XQyZms5JVn.
Route: sip:foobar.duckdns.org:28888;transport=udp;lr.
Max-Forwards: 70.
From: sip:1337@foobar.duckdns.org;tag=N.2FUp7KkfXY66RA5WOfz7PauzsEzKVP.
To: sip:1337@foobar.duckdns.org.
Call-ID: fFxgunpuPj5KAvJJ5fXYJqUaytDd-Mgo.
CSeq: 48673 REGISTER.
User-Agent: CSipSimple_umts_spyder-19/r2457.
Contact: sip:1337@192.168.1.7:44654;ob.
Expires: 900.
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS.
Content-Length: 0.
.
U 2014/12/28 00:59:52.510040 89.13.143.134:44654 -> 192.168.1.3:28888
SUBSCRIBE sip:1337@foobar.duckdns.org SIP/2.0.
Via: SIP/2.0/UDP 192.168.1.7:44654;rport;branch=z9hG4bKPjWj6hW8N3fVlteUbZPlo6Cl0X6UGwocdL.
Max-Forwards: 70.
From: sip:1337@foobar.duckdns.org;tag=3cYLLk2vM4QJPIyqas.FfWk2hXe-ZaLV.
To: sip:1337@foobar.duckdns.org.
Contact: sip:1337@192.168.1.7:44654;ob.
Call-ID: Qr4xEsKNfyknyy2vhk576ICg7JdVzlMW.
CSeq: 10140 SUBSCRIBE.
Route: sip:foobar.duckdns.org:28888;transport=udp;lr.
Event: message-summary.
Expires: 3600.
Supported: replaces, 100rel, timer, norefersub.
Accept: application/simple-message-summary.
Allow-Events: presence, message-summary, refer.
User-Agent: CSipSimple_umts_spyder-19/r2457.
Content-Length: 0.
.
U 2014/12/28 00:59:54.515612 89.13.143.134:44654 -> 192.168.1.3:28888
SUBSCRIBE sip:1337@foobar.duckdns.org SIP/2.0.
Via: SIP/2.0/UDP 192.168.1.7:44654;rport;branch=z9hG4bKPjWj6hW8N3fVlteUbZPlo6Cl0X6UGwocdL.
Max-Forwards: 70.
From: sip:1337@foobar.duckdns.org;tag=3cYLLk2vM4QJPIyqas.FfWk2hXe-ZaLV.
To: sip:1337@foobar.duckdns.org.
Contact: sip:1337@192.168.1.7:44654;ob.
Call-ID: Qr4xEsKNfyknyy2vhk576ICg7JdVzlMW.
CSeq: 10140 SUBSCRIBE.
Route: sip:foobar.duckdns.org:28888;transport=udp;lr.
Event: message-summary.
Expires: 3600.
Supported: replaces, 100rel, timer, norefersub.
Accept: application/simple-message-summary.
Allow-Events: presence, message-summary, refer.
User-Agent: CSipSimple_umts_spyder-19/r2457.
Content-Length: 0.
.
U 2014/12/28 00:59:56.327672 89.13.143.134:44654 -> 192.168.1.3:28888
REGISTER sip:foobar.duckdns.org:28888 SIP/2.0.
Via: SIP/2.0/UDP 192.168.1.7:44654;rport;branch=z9hG4bKPjtimYElm3SPro3tMR5GNvD4XQyZms5JVn.
Route: sip:foobar.duckdns.org:28888;transport=udp;lr.
Max-Forwards: 70.
From: sip:1337@foobar.duckdns.org;tag=N.2FUp7KkfXY66RA5WOfz7PauzsEzKVP.
To: sip:1337@foobar.duckdns.org.
Call-ID: fFxgunpuPj5KAvJJ5fXYJqUaytDd-Mgo.
CSeq: 48673 REGISTER.
User-Agent: CSipSimple_umts_spyder-19/r2457.
Contact: sip:1337@192.168.1.7:44654;ob.
Expires: 900.
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS.
Content-Length: 0.
.
U 2014/12/28 00:59:58.528652 89.13.143.134:44654 -> 192.168.1.3:28888
SUBSCRIBE sip:1337@foobar.duckdns.org SIP/2.0.
Via: SIP/2.0/UDP 192.168.1.7:44654;rport;branch=z9hG4bKPjWj6hW8N3fVlteUbZPlo6Cl0X6UGwocdL.
Max-Forwards: 70.
From: sip:1337@foobar.duckdns.org;tag=3cYLLk2vM4QJPIyqas.FfWk2hXe-ZaLV.
To: sip:1337@foobar.duckdns.org.
Contact: sip:1337@192.168.1.7:44654;ob.
Call-ID: Qr4xEsKNfyknyy2vhk576ICg7JdVzlMW.
CSeq: 10140 SUBSCRIBE.
Route: sip:foobar.duckdns.org:28888;transport=udp;lr.
Event: message-summary.
Expires: 3600.
Supported: replaces, 100rel, timer, norefersub.
Accept: application/simple-message-summary.
Allow-Events: presence, message-summary, refer.
User-Agent: CSipSimple_umts_spyder-19/r2457.
Content-Length: 0.
.
U 2014/12/28 01:00:07.760749 89.13.143.134:44654 -> 192.168.1.3:28888
SUBSCRIBE sip:1337@foobar.duckdns.org SIP/2.0.
Via: SIP/2.0/UDP 192.168.1.7:44654;rport;branch=z9hG4bKPjWj6hW8N3fVlteUbZPlo6Cl0X6UGwocdL.
Max-Forwards: 70.
From: sip:1337@foobar.duckdns.org;tag=3cYLLk2vM4QJPIyqas.FfWk2hXe-ZaLV.
To: sip:1337@foobar.duckdns.org.
Contact: sip:1337@192.168.1.7:44654;ob.
Call-ID: Qr4xEsKNfyknyy2vhk576ICg7JdVzlMW.
CSeq: 10140 SUBSCRIBE.
Route: sip:foobar.duckdns.org:28888;transport=udp;lr.
Event: message-summary.
Expires: 3600.
Supported: replaces, 100rel, timer, norefersub.
Accept: application/simple-message-summary.
Allow-Events: presence, message-summary, refer.
User-Agent: CSipSimple_umts_spyder-19/r2457.
Content-Length: 0.
.
U 2014/12/28 01:00:11.781070 89.13.143.134:44654 -> 192.168.1.3:28888
SUBSCRIBE sip:1337@foobar.duckdns.org SIP/2.0.
Via: SIP/2.0/UDP 192.168.1.7:44654;rport;branch=z9hG4bKPjWj6hW8N3fVlteUbZPlo6Cl0X6UGwocdL.
Max-Forwards: 70.
From: sip:1337@foobar.duckdns.org;tag=3cYLLk2vM4QJPIyqas.FfWk2hXe-ZaLV.
To: sip:1337@foobar.duckdns.org.
Contact: sip:1337@192.168.1.7:44654;ob.
Call-ID: Qr4xEsKNfyknyy2vhk576ICg7JdVzlMW.
CSeq: 10140 SUBSCRIBE.
Route: sip:foobar.duckdns.org:28888;transport=udp;lr.
Event: message-summary.
Expires: 3600.
Supported: replaces, 100rel, timer, norefersub.
Accept: application/simple-message-summary.
Allow-Events: presence, message-summary, refer.
User-Agent: CSipSimple_umts_spyder-19/r2457.
Content-Length: 0.
.
U 2014/12/28 01:00:15.793661 89.13.143.134:44654 -> 192.168.1.3:28888
SUBSCRIBE sip:1337@foobar.duckdns.org SIP/2.0.
Via: SIP/2.0/UDP 192.168.1.7:44654;rport;branch=z9hG4bKPjWj6hW8N3fVlteUbZPlo6Cl0X6UGwocdL.
Max-Forwards: 70.
From: sip:1337@foobar.duckdns.org;tag=3cYLLk2vM4QJPIyqas.FfWk2hXe-ZaLV.
To: sip:1337@foobar.duckdns.org.
Contact: sip:1337@192.168.1.7:44654;ob.
Call-ID: Qr4xEsKNfyknyy2vhk576ICg7JdVzlMW.
CSeq: 10140 SUBSCRIBE.
Route: sip:foobar.duckdns.org:28888;transport=udp;lr.
Event: message-summary.
Expires: 3600.
Supported: replaces, 100rel, timer, norefersub.
Accept: application/simple-message-summary.
Allow-Events: presence, message-summary, refer.
User-Agent: CSipSimple_umts_spyder-19/r2457.
Content-Length: 0.
.
U 2014/12/28 01:00:19.791403 89.13.143.134:44654 -> 192.168.1.3:28888
SUBSCRIBE sip:1337@foobar.duckdns.org SIP/2.0.
Via: SIP/2.0/UDP 192.168.1.7:44654;rport;branch=z9hG4bKPjWj6hW8N3fVlteUbZPlo6Cl0X6UGwocdL.
Max-Forwards: 70.
From: sip:1337@foobar.duckdns.org;tag=3cYLLk2vM4QJPIyqas.FfWk2hXe-ZaLV.
To: sip:1337@foobar.duckdns.org.
Contact: sip:1337@192.168.1.7:44654;ob.
Call-ID: Qr4xEsKNfyknyy2vhk576ICg7JdVzlMW.
CSeq: 10140 SUBSCRIBE.
Route: sip:foobar.duckdns.org:28888;transport=udp;lr.
Event: message-summary.
Expires: 3600.
Supported: replaces, 100rel, timer, norefersub.
Accept: application/simple-message-summary.
Allow-Events: presence, message-summary, refer.
User-Agent: CSipSimple_umts_spyder-19/r2457.
Content-Length: 0.
.
[/code]
‘REGISTER’-messages are coming in but there is no response from Asterisk
here are my sip config files:
sip.conf
[code];--------------------------------------------------------------------------------;
; Do NOT edit this file as it is auto-generated by FreePBX. All modifications to ;
; this file must be done via the web gui. There are alternative files to make ;
; custom modifications, details at: http://freepbx.org/configuration_files ;
;--------------------------------------------------------------------------------;
[general]
; These files will all be included in the [general] context
;
#include sip_general_additional.conf
;sip_general_custom.conf is the proper file location for placing any sip general
;options that you might need set. For example: enable and force the sip jitterbuffer.
;If these settings are desired they should be set the sip_general_custom.conf file.
;
; jbenable=yes
; jbforce=yes
;
;It is also the proper place to add the lines needed for sip nat’ing when going
;through a firewall. For nat’ing you’d need to add the following lines:
; nat=yes , externip= , localhost= , and optionally fromdomain= .
;
#include sip_general_custom.conf
;sip_nat.conf is here for legacy support reasons and for those that upgrade
;from previous versions. If you have this file with lines in it please make
;sure they are not duplicated in sip_general_custom.conf, if so remove them
;from sip_nat.conf as sip_general_custom.conf will have precedence.
#include sip_nat.conf
;sip_registrations_custom.conf is for any customizations you might need to do to
;the automatically generated registrations that FreePBX makes.
;
#include sip_registrations_custom.conf
#include sip_registrations.conf
; These files should all be expected to come after the [general] context
;
#include sip_custom.conf
#include sip_additional.conf
;sip_custom_post.conf If you have extra parameters that are needed for a
;extension to work to for example, those go here. So you have extension
;1000 defined in your system you start by creating a line 1000 in this
;file. Then on the next line add the extra parameter that is needed.
;When the sip.conf is loaded it will append your additions to the end of
;that extension.
;
#include sip_custom_post.conf[/code]
sip_additional.conf
[code];--------------------------------------------------------------------------------;
; Do NOT edit this file as it is auto-generated by FreePBX. All modifications to ;
; this file must be done via the web gui. There are alternative files to make ;
; custom modifications, details at: http://freepbx.org/configuration_files ;
;--------------------------------------------------------------------------------;
;
[1337]
deny=0.0.0.0/0.0.0.0
secret=12345678ab
dtmfmode=rfc2833
canreinvite=no
context=from-internal
host=dynamic
trustrpid=yes
sendrpid=no
type=friend
nat=yes
port=28888
qualify=yes
qualifyfreq=60
transport=udp
avpf=no
icesupport=no
encryption=no
callgroup=
pickupgroup=
dial=SIP/1337
mailbox=1337@device
permit=0.0.0.0/0.0.0.0
callerid=stuff <1337>
callcounter=yes
faxdetect=no
cc_monitor_policy=generic
[/code]
sip_general_additional.conf
[code];--------------------------------------------------------------------------------;
; Do NOT edit this file as it is auto-generated by FreePBX. All modifications to ;
; this file must be done via the web gui. There are alternative files to make ;
; custom modifications, details at: http://freepbx.org/configuration_files ;
;--------------------------------------------------------------------------------;
;
vmexten=*97
accept_outofcall_message=yes
auth_message_requests=no
outofcall_message_context=dpma_message_context
faxdetect=no
context=from-sip-external
callerid=Unknown
notifyringing=yes
notifyhold=yes
tos_sip=cs3
tos_audio=ef
tos_video=af41
alwaysauthreject=yes
useragent=FPBX-2.11.0(11.7.0)
disallow=all
allow=ulaw
allow=alaw
allow=gsm
callevents=no
bindport=28888
jbenable=no
minexpiry=60
maxcallbitrate=384
maxexpiry=3600
notifyhold=yes
notifyringing=yes
registerattempts=0
registertimeout=20
rtpholdtimeout=300
rtpkeepalive=0
rtptimeout=30
srvlookup=no
allowguest=yes
checkmwi=10
defaultexpiry=120
videosupport=no
canreinvite=no
g726nonstandard=no
nat=route
externhost=foobar.duckdns.org
externrefresh=120
localnet=192.168.1.0/255.255.255.0[/code]
Im using ubuntu 14.04 64bit
asterisk 11.7 from Ubuntu repository
freepbx 2.11 from source
I’m hoping that some of you can help me.