Freephoneline settings on FreePBX
Could anyone please remind me the settings Freephoneline needs to work with Asterisk (FreePBX) ?
I tried to replicate whatever has been mentioned on this forum a few years ago, with no luck.
Thanks,
Fongo powers free calling solutions for a number of brands. This forum includes information and tips on all of those offerings. Note that your specific services may vary based on the specific Fongo product that you're using.
https://forum.fongo.com/
Call drops due to lack of ACK.
gideons at https://community.freepbx.org/t/incomin ... s/95369/12 is using pjsip and Freephoneline, and the problem described isn't with registration. It's with incoming calls, which that user fixed. The subject of that thread is "Incoming Call drop after 32 seconds".mkaye wrote: 07/07/2024 Contact User solved the pjsip register problem
but have the 30s call terminated problem with pjsip, not with chan_sip
gideons wrote:I decided to give it a try and add back the Contact User.
And so as I am making the call and following the logs, what a surprise: I couldn’t believe my eyes: an ACK !
Then the call went beyond the 32 seconds."
Okay, I did a quick search, and I see this:mkaye wrote: 07/12/2024 i don't see any option in the pjsip advanced parameters to disable timers (FreePBX17)
I think normally you're advised to fix whatever is causing the ACK to not be received (possible NAT issue or maybe something weird happening with the contact header), but if there's no other easy fix, then trying settings timers to no. I'm guessing because I can't test.dzone wrote:We were able to solve the 15-minute hangup problem by using the pjsip.endpoint_custom_post.conf file. By adding “timers=no” to the trunk, the calls stopped timing out. I wish there had been a way to configure this in the pjsip trunk settings.
pjsip.endpoint_custom_post.conf
[mytrunk](+)
timers=no
Notice the (+) after the trunk name. It appears to need that to append to the other settings FreePBX manages.
That's unfortunate.
Code: Select all
192.168.1.10
Code: Select all
192.168.1.0 / 255.255.255.0
Code: Select all
0.0.0.0 (udp)
Code: Select all
53060
Code: Select all
53060
Code: Select all
53060
Code: Select all
10000
Code: Select all
20000
Code: Select all
10000
Code: Select all
20000
Code: Select all
53060
Code: Select all
10000-20000
Code: Select all
Freephoneline
Code: Select all
<YOUR_FPL_NUMBER>
Code: Select all
"Your Name" <YOUR_FPL_NUMBER>
Code: Select all
2
Code: Select all
YOUR_FPL_USERID
Code: Select all
YOUR_FPL_PASSWORD
Code: Select all
Outbound
Code: Select all
Send
Code: Select all
voip.freephoneline.ca
Code: Select all
5060
Code: Select all
53060
Code: Select all
from-trunk
Code: Select all
53060
Code: Select all
voip.freephoneline.ca,voip2.freephoneline.ca,voip4.freephoneline.ca
Code: Select all
YOUR_FPL_USERID
Code: Select all
voip.freephoneline.ca
Code: Select all
YOUR_FPL_USERID
Code: Select all
sip:YOUR_FPL_USERID@voip.freephoneline.ca
Code: Select all
sip:voip.freephoneline.ca
Code: Select all
sip:YOUR_FPL_USERID@voip.freephoneline.ca
Code: Select all
20
Code: Select all
3600
Code: Select all
120
Code: Select all
No
Code: Select all
Yes
Code: Select all
Yes
Code: Select all
Send PAI
Code: Select all
Yes
Code: Select all
RFC 4733
Code: Select all
No
Code: Select all
ulaw
Code: Select all
g729
Code: Select all
ptime=20
Code: Select all
FPL-Outgoing
Code: Select all
Freephoneline
Code: Select all
[2-689]11
*98
NXXNXXXXXX
1NXXNXXXXXX
011.
Code: Select all
FPL-Incoming
Code: Select all
YOUR_FPL_NUMBER
Code: Select all
Extension
Code: Select all
Ring Group
Code: Select all
IVR
Code: Select all
Freephoneline
Code: Select all
Registered
Code: Select all
asterisk -rvvv
Code: Select all
pjsip show registrations
Code: Select all
exit
Code: Select all
*98
Code: Select all
voip.freephoneline.ca
Code: Select all
Freephoneline
Code: Select all
voip2.freephoneline.ca
Code: Select all
5060
Code: Select all
voip4.freephoneline.ca
Code: Select all
6060
Code: Select all
53060
Code: Select all
10k-20k
Code: Select all
53060
Code: Select all
10k-20k
Code: Select all
Direct Media: No
Code: Select all
192.168.1.10
Code: Select all
192.168.1.0 / 255.255.255.0
Code: Select all
53060
Code: Select all
53060
Code: Select all
53060
Code: Select all
10000
Code: Select all
20000
Code: Select all
10000
Code: Select all
20000
Code: Select all
53060
Code: Select all
10000-20000
Code: Select all
Freephoneline-ChanSIP
Code: Select all
\<YOUR\_FPL\_NUMBER\>
Code: Select all
"Your Name" \<YOUR\_FPL\_NUMBER\>
Code: Select all
2
Code: Select all
FreephonelineSIP
Code: Select all
type=peer
host=voip.freephoneline.ca
port=5060
username=YOUR\_FPL\_USERID
secret=YOUR\_FPL\_PASSWORD
fromuser=YOUR\_FPL\_USERID
fromdomain=voip.freephoneline.ca
context=from-trunk
transport=udp
nat=force\_rport,comedia
qualify=20000
insecure=port,invite
dtmfmode=rfc2833
disallow=all
allow=ulaw\&g729
trustrpid=yes
sendrpid=yes
session-timers=refuse
directmedia=no
Code: Select all
qualify=20000
Code: Select all
YOUR\_FPL\_USERID
Code: Select all
YOUR\_FPL\_USERID:[email address removed]:5060\~3600/YOUR\_FPL\_USERID
Code: Select all
FPL-ChanSIP-Out
Code: Select all
Freephoneline-ChanSIP
Code: Select all
[2-689]11
\*98
NXXNXXXXXX
1NXXNXXXXXX
011\.
Code: Select all
FPL-ChanSIP-In
Code: Select all
YOUR\_FPL\_NUMBER
Code: Select all
Extension
Code: Select all
Ring Group
Code: Select all
IVR
Code: Select all
Freephoneline-ChanSIP
Code: Select all
Registered
Code: Select all
asterisk -rvvv
Code: Select all
sip show registry
Code: Select all
exit
Code: Select all
\*98
Code: Select all
voip.freephoneline.ca
Code: Select all
Freephoneline-ChanSIP
Code: Select all
host=
Code: Select all
port=
Code: Select all
host=voip2.freephoneline.ca
Code: Select all
port=5060
Code: Select all
host=voip4.freephoneline.ca
Code: Select all
port=6060
Code: Select all
YOUR\_FPL\_USERID:[email address removed]:6060\~3600/YOUR\_FPL\_USERID
Code: Select all
53060
Code: Select all
10k-20k
Code: Select all
53060
Code: Select all
10k-20k
Code: Select all
nat=force\_rport,comedia
Code: Select all
Direct Media: No