Hi. Thanks for helping me out with this… I have a few other regular sip providers registered through PJSIP,
This particular SIP Trunk is the VoIP service for my ISP. Normally this is registered by the CPE mdoem provided by the ISP, but since I have the modem in bridge mode the VoIP functionalities are disabled. I know the registration details and have been able to get them registered and working in PhonerLite, Zoiper and MicroSIP. The ISP seems to use SRV records which seem to work with MicroSIP, so I substituted the proxy domain name with the IP address that PhonerLite was using and that meant I was able to get MicroSIP to register too.
Asterisk info shows “Request sent” for registration, but is never registers.
My current config is:
Outbound
Trunk Name: Telmex
PEER Details: [BLANK]
Inbound
USER Context: +52xxxxxxxxxx
USER Details:
username=+52xxxxxxxxxx
user=+52xxxxxxxxxx
type=friend
secret=############
realm=ims.telmex.com
outboundproxy=189.247.242.147
insecure=invite
host=189.247.242.147
fromuser=+52xxxxxxxxxx
authname=+52xxxxxxxxxx@ims.telmex.com
context=from-sip-external
Register string:
+52xxxxxxxxxx@ims.telmex.com:############:+52xxxxxxxxxx@189.247.242.147
Asterisk SIP log…
*.*.*.*
= my external IP address, not the IP of the FreePBX box (which is 10.0.0.32)
[2018-07-08 09:42:14] NOTICE[1019]: chan_sip.c:15890 sip_reg_timeout: -- Registration for '+52xxxxxxxxxx@189.247.242.147' timed out, trying again (Attempt #50)
Really destroying SIP dialog '72f66926341e700061b302826fed2716@10.0.0.32' Method: REGISTER
Retransmitting #1 (NAT) to 189.247.242.147:5060:
REGISTER sip:ims.telmex.com SIP/2.0
Via: SIP/2.0/UDP *.*.*.*:5160;branch=z9hG4bK0af907e1;rport
Max-Forwards: 70
From: <sip:+52xxxxxxxxxx@ims.telmex.com>;tag=as40f406f2
To: <sip:+52xxxxxxxxxx@ims.telmex.com>
Call-ID: 72f66926341e700061b302826fed2716@10.0.0.32
CSeq: 151 REGISTER
Supported: replaces, timer
User-Agent: FPBX-14.0.3.6(14.7.6)
Expires: 120
Contact: <sip:s@*.*.*.*:5160>
Content-Length: 0
---
Retransmitting #2 (NAT) to 189.247.242.147:5060:
REGISTER sip:ims.telmex.com SIP/2.0
Via: SIP/2.0/UDP *.*.*.*:5160;branch=z9hG4bK0af907e1;rport
Max-Forwards: 70
From: <sip:+52xxxxxxxxxx@ims.telmex.com>;tag=as40f406f2
To: <sip:+52xxxxxxxxxx@ims.telmex.com>
Call-ID: 72f66926341e700061b302826fed2716@10.0.0.32
CSeq: 151 REGISTER
Supported: replaces, timer
User-Agent: FPBX-14.0.3.6(14.7.6)
Expires: 120
Contact: <sip:s@*.*.*.*:5160>
Content-Length: 0
PhonerLite config (working)
Proxy/Registrar: voipnvcompigl.telmex.net
Domain/Realm: ims.telmex.com
Username: +52xxxxxxxxxx
Password: ############
Authentication name: +52xxxxxxxxxx@ims.telmex.com
MicroSIP config (working)
SIP Server: ims.telmex.com
SIP Proxy: 189.247.242.147
Username: +52xxxxxxxxxx
Domain: ims.telmex.com
Login: +52xxxxxxxxxx@ims.telmex.com
Password: ############
PhonerLite log
From here you can see why I ended up using the proxy IP address
I am not sure what the various forbidden and timeout messages are, but PhonerLite does seem to work correctly (I can make and receive calls).
-------------------------------------------
09:52:17,558: R: DNS lookup for 'voipnvcompigl.telmex.net'
start resolving SRV (UDP)...
-------------------------------------------
09:52:17,561: R: DNS lookup for 'slbcompigl.voip.telmex.net'
189.247.242.147:5060 (TTL=1699)
-------------------------------------------
09:52:17,561: R: open UDP port (SIP): 5060
-------------------------------------------
09:52:17,562: R: open TCP port (TLS listen): 5061
-------------------------------------------
09:52:17,562: R: open TCP port (TCP listen): 5060
09:52:17,611: Listen Confirm: 0E 00 08 00 05 81 9E 02 01 00 00 00 00 00
09:52:17,611: Listen Confirm
-------------------------------------------
09:52:17,563: R: open UDP port (mDNS): 5353
09:52:17,621: Facility Confirm: 1A 00 08 00 80 81 A0 02 01 00 00 00 00 00 03 00 09 00 00 06 00 00 3D 01 00 00
09:52:17,621: Facility Confirm (Supplementary Services)
09:52:17,621: Facility Request: 16 00 08 00 80 80 A1 02 01 00 00 00 03 00 07 01 00 04 3D 01 00 00
09:52:17,621: Facility Request (Listen To Supplementary Services)
09:52:17,621: Get Supported Services: success
-------------------------------------------
09:52:17,563: T: 189.247.242.147:5060 (UDP)
REGISTER sip:ims.telmex.com SIP/2.0
Via: SIP/2.0/UDP 10.0.0.50:5060;branch=z9hG4bK80a6192d2c81e81187bbbb0be53ecaeb;rport
From: <sip:+52xxxxxxxxxx@ims.telmex.com>;tag=1934202406
To: <sip:+52xxxxxxxxxx@ims.telmex.com>
Call-ID: 80A6192D-2C81-E811-87B8-BB0BE53ECAEB@10.0.0.50
CSeq: 326 REGISTER
Contact: <sip:+52xxxxxxxxxx@10.0.0.50:5060>;+sip.instance="<urn:uuid:00D1773F-C27F-E811-97E2-EED72484AD05>"
Allow: INVITE, ACK, BYE, CANCEL, INFO, MESSAGE, NOTIFY, OPTIONS, REFER, UPDATE, PRACK
Max-Forwards: 70
Allow-Events: org.3gpp.nwinitdereg
User-Agent: SIPPER for PhonerLite
Supported: replaces, from-change, gruu
Expires: 900
Content-Length: 0
-------------------------------------------
09:52:17,563: T: mDNS refresh: sip:+52xxxxxxxxxx@ims.telmex.com = 169.254.106.102:5060, ttl=900
SIPPER for PhonerLite
09:52:17,621: Facility Confirm: 16 00 08 00 80 81 A1 02 01 00 00 00 00 00 03 00 05 01 00 02 00 00
09:52:17,621: Facility Confirm (Supplementary Services)
09:52:17,621: Listen: success
-------------------------------------------
09:52:17,621: T: 189.247.242.147:5060 (UDP)
SUBSCRIBE sip:+52xxxxxxxxxx@ims.telmex.com SIP/2.0
Via: SIP/2.0/UDP 10.0.0.50:5060;branch=z9hG4bK80a6192d2c81e81187bcbb0be53ecaeb;rport
From: <sip:+52xxxxxxxxxx@ims.telmex.com>;tag=3576163364
To: <sip:+52xxxxxxxxxx@ims.telmex.com>
Call-ID: 80A6192D-2C81-E811-87B9-BB0BE53ECAEB@10.0.0.50
CSeq: 327 SUBSCRIBE
Contact: <sip:+52xxxxxxxxxx@10.0.0.50:5060>;+sip.instance="<urn:uuid:00D1773F-C27F-E811-97E2-EED72484AD05>"
Max-Forwards: 70
User-Agent: SIPPER for PhonerLite
Expires: 1800
Event: message-summary
Accept: application/simple-message-summary
Content-Length: 0
-------------------------------------------
09:52:17,705: R: 189.247.242.147:5060 (UDP)
SIP/2.0 403 Forbidden
Via: SIP/2.0/UDP 10.0.0.50:5060;received=*.*.*.*;branch=z9hG4bK80a6192d2c81e81187bcbb0be53ecaeb;rport=60580
From: <sip:+52xxxxxxxxxx@ims.telmex.com>;tag=3576163364
To: <sip:+52xxxxxxxxxx@ims.telmex.com>;tag=aprqngfrt-cpkluc30080e4
Call-ID: 80A6192D-2C81-E811-87B9-BB0BE53ECAEB@10.0.0.50
CSeq: 327 SUBSCRIBE
-------------------------------------------
09:52:17,847: R: 189.247.242.147:5060 (UDP)
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 10.0.0.50:5060;received=*.*.*.*;branch=z9hG4bK80a6192d2c81e81187bbbb0be53ecaeb;rport=60580
From: <sip:+52xxxxxxxxxx@ims.telmex.com>;tag=1934202406
To: <sip:+52xxxxxxxxxx@ims.telmex.com>;tag=dqdq0bbq
Call-ID: 80A6192D-2C81-E811-87B8-BB0BE53ECAEB@10.0.0.50
CSeq: 326 REGISTER
WWW-Authenticate: Digest realm="ims.telmex.com", nonce="PBk3fi0dSOVla8Cwre8YRw==",algorithm=MD5
Content-Length: 0
-------------------------------------------
09:52:17,848: T: 189.247.242.147:5060 (UDP)
REGISTER sip:ims.telmex.com SIP/2.0
Via: SIP/2.0/UDP 10.0.0.50:5060;branch=z9hG4bK80a6192d2c81e81187bdbb0be53ecaeb;rport
From: <sip:+52xxxxxxxxxx@ims.telmex.com>;tag=1934202406
To: <sip:+52xxxxxxxxxx@ims.telmex.com>
Call-ID: 80A6192D-2C81-E811-87B8-BB0BE53ECAEB@10.0.0.50
CSeq: 328 REGISTER
Contact: <sip:+52xxxxxxxxxx@10.0.0.50:5060>;+sip.instance="<urn:uuid:00D1773F-C27F-E811-97E2-EED72484AD05>"
Authorization: Digest username="+52xxxxxxxxxx@ims.telmex.com", realm="ims.telmex.com", nonce="PBk3fi0dSOVla8Cwre8YRw==", uri="sip:ims.telmex.com", response="bd636de3caf80c6c64ba2910c30555f9", algorithm=MD5
Allow: INVITE, ACK, BYE, CANCEL, INFO, MESSAGE, NOTIFY, OPTIONS, REFER, UPDATE, PRACK
Max-Forwards: 70
Allow-Events: org.3gpp.nwinitdereg
User-Agent: SIPPER for PhonerLite
Supported: replaces, from-change, gruu
Expires: 900
Content-Length: 0
-------------------------------------------
09:52:18,100: R: 189.247.242.147:5060 (UDP)
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.0.0.50:5060;received=*.*.*.*;branch=z9hG4bK80a6192d2c81e81187bdbb0be53ecaeb;rport=60580
From: <sip:+52xxxxxxxxxx@ims.telmex.com>;tag=1934202406
To: <sip:+52xxxxxxxxxx@ims.telmex.com>;tag=k2dqaboc
Call-ID: 80A6192D-2C81-E811-87B8-BB0BE53ECAEB@10.0.0.50
CSeq: 328 REGISTER
P-Associated-URI: <sip:+52xxxxxxxxxx@ims.telmex.com;user=phone>
P-Associated-URI: <sip:+52xxxxxxxxxx@ims.telmex.com>
Accept-Resource-Priority: wps.4
Contact: <sip:+52xxxxxxxxxx@10.0.0.50:5060>;expires=30;q=1;+sip.instance="<urn:uuid:00D1773F-C27F-E811-97E2-EED72484AD05>"
Content-Length: 0
-------------------------------------------
09:52:18,123: T: 189.247.242.147:5060 (UDP)
SIP/2.0 200 OK
Via: SIP/2.0/UDP 189.247.242.147:5060;branch=z9hG4bKrc0icv204g1ge1u3epu0.1
From: <sip:+52xxxxxxxxxx@ims.telmex.com:5060>;tag=2gdrr79g-CC-20
To: <sip:+52xxxxxxxxxx@ims.telmex.com:60580>;tag=003db22d2c81e81187bdbb0be53ecaeb
Call-ID: 8g323bee3s8749i8a4r9r9iaa2a34s93@19500.0.ATS.ats01.ims.telmex.com.20
CSeq: 1 NOTIFY
Contact: <sip:+52xxxxxxxxxx@10.0.0.50:5060>
Allow: INVITE, ACK, BYE, CANCEL, INFO, MESSAGE, NOTIFY, OPTIONS, REFER, UPDATE, PRACK
Server: SIPPER for PhonerLite
Content-Length: 0
-------------------------------------------
09:52:18,293: R: 189.247.242.147:5060 (UDP)
SIP/2.0 480 Temporarily Unavailable
Via: SIP/2.0/UDP 10.0.0.50:5060;received=*.*.*.*;branch=z9hG4bK.bbkAMUUuC;rport=60580
From: <sip:52xxxxxxxxxx@voipnvcompigl.telmex.net>;tag=mTMk6w0eA
To: <sip:52xxxxxxxxxx@voipnvcompigl.telmex.net>;tag=uhf99zaa
CSeq: 210 REGISTER
Call-ID: grNrFpLzKe
Warning: 399 P.5.127.ims.telmex.com "SS170001F133L3261S0E0[00001] Hllm query failed"
Content-Length: 0