Trouble Connecting Extension to Linphone (SoftPhone)

So I have been trying to get this to work for a week before deciding to post something on the forums.

I have flowroute as my provider. I was able to connect my softphone using their domain and credentials that they generate on their platform. But what I want to do is register the extension I created in my freePBX. So instead of entering Flowroute’s domain and credentials on Linphone (softpone), I enter my freePBX servers domain,user(ext. 233) and secret. The problem is that it does not register.

NOTES: I do not have the firewall turned on my freePBX.

Please any ideas on why I cannot register with my extension? Also I am using AWS to host my freePBX.

FreePBX is a B22BUA, you create a trunk to Flowroute (rules on their site and in the wiki) and register your extensions to freepbx (rules in the linked wiki at the top of this pagea) both trunk and extension should be chan_phsip if you are using udp/5060 if anything dosn’t work , ‘it does not register’ is not helpful, provide what doesn’t work backed up by logs

By not registering I mean when I try to connect the softphone using the extension credentials instead of Flowroute’s credentials on their site it just times out.

Here are linphones logs when I try to connect.

REGISTER sip:54.173.29.112 SIP/2.0

Via: SIP/2.0/UDP 172.20.20.20:5060;branch=z9hG4bK.aU0n0hb50;rport

From: <sip:[email protected]>;tag=x-KjTemAV

To: sip:[email protected]

CSeq: 91 REGISTER

Call-ID: EM3rIWzcKI

Max-Forwards: 70

Supported: replaces, outbound, gruu

Accept: application/sdp

Accept: text/plain

Accept: application/vnd.gsma.rcs-ft-http+xml

Contact: <sip:[email protected];transport=udp>;message-expires=604800;+sip.instance="<urn:uuid:ed9ad4a4-3f2e-0087-ac8d-658f35927e3d>"

Expires: 3600

User-Agent: Linphone Desktop/4.2.5 (Windows 10 Version 1909, Qt 5.14.2) LinphoneCore/4.4.19




2021-03-18 03:53:19:270 [/belle-sip] MESSAGE A timeout related to this channel occured and no message received during last 60 seconds. This channel is suspect, moving to error state
2021-03-18 03:53:19:270 [/belle-sip] MESSAGE channel 0F9A4478: state ERROR
2021-03-18 03:53:19:270 [/belle-sip] WARNING Transaction [15BBE3A8] has timeout, reported to channel.
2021-03-18 03:53:19:300 [/belle-sip] MESSAGE transaction [15BBE3A8] channel state changed to [ERROR]
2021-03-18 03:53:19:300 [/belle-sip] MESSAGE Refresher[0F27F0D0]: scheduling next timer in 60000 ms for purpose [retry]
2021-03-18 03:53:19:300 [/liblinphone] MESSAGE Register refresher [503] reason [io error] for proxy [<sip:54.173.29.112;transport=udp>]
2021-03-18 03:53:19:300 [/belle-sip] MESSAGE Refresher[0F27F0D0]: scheduling next timer in 2000 ms for purpose [retry]
2021-03-18 03:53:19:300 [/liblinphone] MESSAGE Register refresher [408] reason [timeout] for proxy [<sip:54.173.29.112;transport=udp>]
2021-03-18 03:53:19:300 [/belle-sip] MESSAGE Changing [client] [REGISTER] transaction [15BBE3A8], from state [TRYING] to [TERMINATED]
2021-03-18 03:53:19:300 [/belle-sip] MESSAGE Client internal REGISTER transaction [15BBE3A8] terminated
2021-03-18 03:53:19:300 [/belle-sip] MESSAGE Channel [0F9A4478] destroyed
2021-03-18 03:53:20:458 [/belle-sip] MESSAGE channel [0F1A63E8]: keep alive sent to [UDP://us-west-or.sip.flowroute.com:5060]
2021-03-18 03:53:20:458 [/belle-sip] MESSAGE channel [0F1962A8]: keep alive sent to [UDP://trunktrial1.freepbx.com:5060]
2021-03-18 03:53:20:458 [/belle-sip] MESSAGE channel [1570F940]: keep alive sent to [UDP://54.173.29.112:5161]
2021-03-18 03:53:20:458 [/belle-sip] MESSAGE channel [1571FA80]: keep alive sent to [UDP://54.173.29.112:5160]
2021-03-18 03:53:21:299 [/belle-sip] MESSAGE Transaction [15BBE3A8] deleted
2021-03-18 03:53:21:299 [/belle-sip] MESSAGE belle_sip_client_transaction_send_request(): waiting channel to be ready
2021-03-18 03:53:21:299 [/belle-sip] MESSAGE channel [0F9A4478]: starting resolution of 54.173.29.112
2021-03-18 03:53:21:299 [/belle-sip] MESSAGE channel 0F9A4478: state RES_IN_PROGRESS
2021-03-18 03:53:21:299 [/belle-sip] MESSAGE transaction [15BBDEC8] channel state changed to [RES_IN_PROGRESS]
2021-03-18 03:53:21:299 [/belle-sip] MESSAGE channel 0F9A4478: state RES_DONE
2021-03-18 03:53:21:299 [/belle-sip] MESSAGE transaction [15BBDEC8] channel state changed to [RES_DONE]
2021-03-18 03:53:21:299 [/belle-sip] MESSAGE channel 0F9A4478: state CONNECTING
2021-03-18 03:53:21:299 [/belle-sip] MESSAGE transaction [15BBDEC8] channel state changed to [CONNECTING]
2021-03-18 03:53:21:299 [/belle-sip] MESSAGE Trying to connect to [UDP://::ffff:54.173.29.112:5060]
2021-03-18 03:53:21:300 [/belle-sip] MESSAGE Channel has local address 172.20.20.20:5060
2021-03-18 03:53:21:300 [/belle-sip] MESSAGE channel 0F9A4478: state READY
2021-03-18 03:53:21:300 [/belle-sip] MESSAGE transaction [15BBDEC8] channel state changed to [READY]
2021-03-18 03:53:21:300 [/belle-sip] MESSAGE Changing [client] [REGISTER] transaction [15BBDEC8], from state [INIT] to [TRYING]
2021-03-18 03:53:21:300 [/belle-sip] MESSAGE channel [0F9A4478]: message sent to [UDP://54.173.29.112:5060], size: [605] bytes
REGISTER sip:54.173.29.112 SIP/2.0

Via: SIP/2.0/UDP 172.20.20.20:5060;branch=z9hG4bK.O-7OhrUjn;rport

From: <sip:[email protected]>;tag=x-KjTemAV

To: sip:[email protected]

CSeq: 92 REGISTER

Call-ID: EM3rIWzcKI

Max-Forwards: 70

Supported: replaces, outbound, gruu

Accept: application/sdp

Accept: text/plain

Accept: application/vnd.gsma.rcs-ft-http+xml

Contact: <sip:[email protected];transport=udp>;message-expires=604800;+sip.instance="<urn:uuid:ed9ad4a4-3f2e-0087-ac8d-658f35927e3d>"

Expires: 3600

User-Agent: Linphone Desktop/4.2.5 (Windows 10 Version 1909, Qt 5.14.2) LinphoneCore/4.4.19




2021-03-18 03:53:21:797 [/belle-sip] MESSAGE nict_on_timer_E: sending retransmission
2021-03-18 03:53:21:797 [/belle-sip] MESSAGE channel [0F9A4478]: message sent to [UDP://54.173.29.112:5060], size: [605] bytes
REGISTER sip:54.173.29.112 SIP/2.0

Via: SIP/2.0/UDP 172.20.20.20:5060;branch=z9hG4bK.O-7OhrUjn;rport

From: <sip:[email protected]>;tag=x-KjTemAV

To: sip:[email protected]

CSeq: 92 REGISTER

Call-ID: EM3rIWzcKI

Max-Forwards: 70

Supported: replaces, outbound, gruu

Accept: application/sdp

Accept: text/plain

Accept: application/vnd.gsma.rcs-ft-http+xml

Contact: <sip:[email protected];transport=udp>;message-expires=604800;+sip.instance="<urn:uuid:ed9ad4a4-3f2e-0087-ac8d-658f35927e3d>"

Expires: 3600

User-Agent: Linphone Desktop/4.2.5 (Windows 10 Version 1909, Qt 5.14.2) LinphoneCore/4.4.19




2021-03-18 03:53:22:801 [/belle-sip] MESSAGE nict_on_timer_E: sending retransmission
2021-03-18 03:53:22:801 [/belle-sip] MESSAGE channel [0F9A4478]: message sent to [UDP://54.173.29.112:5060], size: [605] bytes
REGISTER sip:54.173.29.112 SIP/2.0

Via: SIP/2.0/UDP 172.20.20.20:5060;branch=z9hG4bK.O-7OhrUjn;rport

From: <sip:[email protected]>;tag=x-KjTemAV

To: sip:[email protected]

CSeq: 92 REGISTER

Call-ID: EM3rIWzcKI

Max-Forwards: 70

Supported: replaces, outbound, gruu

Accept: application/sdp

Accept: text/plain

Accept: application/vnd.gsma.rcs-ft-http+xml

Contact: <sip:[email protected];transport=udp>;message-expires=604800;+sip.instance="<urn:uuid:ed9ad4a4-3f2e-0087-ac8d-658f35927e3d>"

Expires: 3600

User-Agent: Linphone Desktop/4.2.5 (Windows 10 Version 1909, Qt 5.14.2) LinphoneCore/4.4.19




2021-03-18 03:53:24:797 [/belle-sip] MESSAGE nict_on_timer_E: sending retransmission
2021-03-18 03:53:24:797 [/belle-sip] MESSAGE channel [0F9A4478]: message sent to [UDP://54.173.29.112:5060], size: [605] bytes
REGISTER sip:54.173.29.112 SIP/2.0

Via: SIP/2.0/UDP 172.20.20.20:5060;branch=z9hG4bK.O-7OhrUjn;rport

From: <sip:[email protected]>;tag=x-KjTemAV

To: sip:[email protected]

CSeq: 92 REGISTER

Call-ID: EM3rIWzcKI

Max-Forwards: 70

Supported: replaces, outbound, gruu

Accept: application/sdp

Accept: text/plain

Accept: application/vnd.gsma.rcs-ft-http+xml

Contact: <sip:[email protected];transport=udp>;message-expires=604800;+sip.instance="<urn:uuid:ed9ad4a4-3f2e-0087-ac8d-658f35927e3d>"

Expires: 3600

User-Agent: Linphone Desktop/4.2.5 (Windows 10 Version 1909, Qt 5.14.2) LinphoneCore/4.4.19




2021-03-18 03:53:28:798 [/belle-sip] MESSAGE nict_on_timer_E: sending retransmission
2021-03-18 03:53:28:798 [/belle-sip] MESSAGE channel [0F9A4478]: message sent to [UDP://54.173.29.112:5060], size: [605] bytes
REGISTER sip:54.173.29.112 SIP/2.0

Via: SIP/2.0/UDP 172.20.20.20:5060;branch=z9hG4bK.O-7OhrUjn;rport

From: <sip:[email protected]>;tag=x-KjTemAV

To: sip:[email protected]

CSeq: 92 REGISTER

Call-ID: EM3rIWzcKI

Max-Forwards: 70

Supported: replaces, outbound, gruu

Accept: application/sdp

Accept: text/plain

Accept: application/vnd.gsma.rcs-ft-http+xml

Contact: <sip:[email protected];transport=udp>;message-expires=604800;+sip.instance="<urn:uuid:ed9ad4a4-3f2e-0087-ac8d-658f35927e3d>"

Expires: 3600

User-Agent: Linphone Desktop/4.2.5 (Windows 10 Version 1909, Qt 5.14.2) LinphoneCore/4.4.19




2021-03-18 03:53:30:455 [/belle-sip] MESSAGE channel [0F1A63E8]: keep alive sent to [UDP://us-west-or.sip.flowroute.com:5060]
2021-03-18 03:53:30:455 [/belle-sip] MESSAGE channel [0F1962A8]: keep alive sent to [UDP://trunktrial1.freepbx.com:5060]
2021-03-18 03:53:30:455 [/belle-sip] MESSAGE channel [1570F940]: keep alive sent to [UDP://54.173.29.112:5161]
2021-03-18 03:53:30:455 [/belle-sip] MESSAGE channel [1571FA80]: keep alive sent to [UDP://54.173.29.112:5160]
2021-03-18 03:53:30:455 [/belle-sip] MESSAGE channel [0F9A4478]: keep alive sent to [UDP://54.173.29.112:5060]
2021-03-18 03:53:32:800 [/belle-sip] MESSAGE nict_on_timer_E: sending retransmission
2021-03-18 03:53:32:800 [/belle-sip] MESSAGE channel [0F9A4478]: message sent to [UDP://54.173.29.112:5060], size: [605] bytes
REGISTER sip:54.173.29.112 SIP/2.0

Via: SIP/2.0/UDP 172.20.20.20:5060;branch=z9hG4bK.O-7OhrUjn;rport

From: <sip:[email protected]>;tag=x-KjTemAV

To: sip:[email protected]

CSeq: 92 REGISTER

Call-ID: EM3rIWzcKI

Max-Forwards: 70

Supported: replaces, outbound, gruu

Accept: application/sdp

Accept: text/plain

Accept: application/vnd.gsma.rcs-ft-http+xml

Contact: <sip:[email protected];transport=udp>;message-expires=604800;+sip.instance="<urn:uuid:ed9ad4a4-3f2e-0087-ac8d-658f35927e3d>"

Expires: 3600

User-Agent: Linphone Desktop/4.2.5 (Windows 10 Version 1909, Qt 5.14.2) LinphoneCore/4.4.19

Start with sngrep to see if anything is getting to FreePBX, if it is , then the FreePBX logs (oresumably at 54.173.29.112)

I included an image that shows the output of sngrep. I see flowroute’s IP in there so I guess it’s connecting. But I don’t know enough to make that conclusion.

Also I noticed something about one of my other trunks I have connected to Questblue Provider. When I call the DID connected to that account from my cellphone there seems to be activity (Full of errors) on the freePBX logs. Which is fine because I am not using it, but what I find weird is that when I call the DID connected to Flowroute I dont see any activity on the log.

You should read the manual for sngrep,(?) it;s a drill down tool, drill down on a register . . .

The source shows using port 5160 and destination 5060. Is that right? I am using pjsip.

Pj_sip by default uses udp/5060 chan_sip uses udp/5160 they can’t converse with each other, asterisk would bridge them if needed, but check ports and make sure the technology matches, successful registration will be obvious as will failures, if there is a two way session started, goto to FBX for details

linphone has an ICE option under sip account, make sure you turn it off so its not routed to some server

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.