I made some effort to find these settings that worked with Freephoneline. I thought I would share with others who might find it usefull. These are the minimum configuration settings need to make incoming/outgoing calls (that worked for me).
PBX >> Basic/Call Routes >> VoIP Trunks
Host Name: voip4.freephoneline.ca:6060 (Used this one as per Freephoneline, note use port#) Other domains might work just as well
Basic Settings:
NAT: NOT Checked
Username*: 15145551212
Password*: (Whatever)
Advanced Settings:
Codec Preference: PCMU & G.729 (Only codecs permitted)
Send PPI Header: Checked <<-- NOTE (This is the magic setting which made all the difference!!!) Uncheck it to see what happens.
PBX >> SIP Settings >> Misc
Register Timeout: 120 (As per Freephoneline FAQ)
Register Attempts: 0
PBX >> SIP Settings >> NAT
External Host: "DDNS Name:port# of UCM"
Use IP address in SDP: Checked
I added other settings which made no difference to add or remove the ability to make/receive outbound/inbound calls.
These settings populated or not add no value to above configuration.
Send PAI Header:
Outbound Proxy Support:
Enable Qualify:
Additional Notes:
Router Model: Asus RT-N16 (Firmware TomatoRAF)
No portforwarding on router
No sip ALG in router just in case
I beleive the differnces between these 2 syslogs describe what may have been happening. Domain and port numbers are different. In the failed attempt UCM tries 10 times to connect with Freephoneline and sends BYE to Freephone line (32 Second mark).
FAILED: Incoming always terminating at 32 seconds (Outgoing OK)
event: Event: Registry^M Privilege: system,all^M ChannelType: PJSIP^M Username: sip:15145551212@freephoneline.ca^M Domain: sip:freephoneline.ca^M Status: Registered^M ^M
Success: Incoming/Outgoing OK
event: Event: Registry^M Privilege: system,all^M ChannelType: PJSIP^M Username: sip:15145551212@voip4.freephoneline.ca:6060^M Domain: sip:voip4.freephoneline.ca:6060^M Status: Registered^M ^M
Failed:
[code]Conv.| Time | 162.213.111.21 | 172.16.XXX.79 |
| | | 172.16.XXX.50 | | 208.65.240.165 |
0 |13.005600| INVITE SDP (g711U te | | |SIP INVITE From: <sip:5145551212@208.65.240.142 To:<sip:15145551234@208.65.240.142 Call-ID:402C7567@208.72.120.66~o~o CSeq:806
| |(6060) ------------------> (5080) | | |
0 |13.029175| 100 Trying| | | |SIP Status 100 Trying
| |(6060) <------------------ (5080) | | |
1 |13.779100| | INVITE SDP (g711U g7 | |SIP INVITE From: <sip:5145551212@172.16.XXX.50 To:<sip:100@172.16.XXX.79 Call-ID:a71350b5-7d28-43de-b8ff-df89d26d55fb CSeq:9309
| | |(5080) ------------------> (5092) | |
1 |13.781000| | 100 Trying| | |SIP Status 100 Trying
| | |(5080) <------------------ (5092) | |
1 |13.804975| | 180 Ringing | |SIP Status 180 Ringing
| | |(5080) <------------------ (5092) | |
0 |13.821600| 183 Session Progress | | |SIP Status 183 Session Progress
| |(6060) <------------------ (5080) | | |
0 |13.835575| | RTP (g711U) | |RTP, 2345 packets. Duration: 4294953.461s SSRC: 0x2D072E3
| | |(12744) --------------------------------------> (57082) |
0 |13.915350| | RTP (g711U) | |RTP, 2344 packets. Duration: 4294953.381s SSRC: 0x64D2551C
| | |(12744) <-------------------------------------- (57082) |
1 |28.645250| | 200 OK SDP (g711U g7 | |SIP Status 200 OK
| | |(5080) <------------------ (5092) | |
1 |28.660275| | ACK | | |SIP Request INVITE ACK 200 CSeq:9309
| | |(5080) ------------------> (5092) | |
0 |28.673275| 200 OK SDP (g711U te | | |SIP Status 200 OK
| |(6060) <------------------ (5080) | | |
1 |28.714650| | RTP (g711U) | |RTP, 1605 packets. Duration: 4294938.582s SSRC: 0x6168965D
| | |(12310) ------------------> (5008) | |
1 |28.718025| | RTP (g711U) | |RTP, 1604 packets. Duration: 4294938.578s SSRC: 0x4A9A623C
| | |(12310) <------------------ (5008) | |
0 |29.176375| 200 OK SDP (g711U te | | |SIP Status 200 OK
| |(6060) <------------------ (5080) | | |
0 |30.175325| 200 OK SDP (g711U te | | |SIP Status 200 OK
| |(6060) <------------------ (5080) | | |
0 |32.175975| 200 OK SDP (g711U te | | |SIP Status 200 OK
| |(6060) <------------------ (5080) | | |
0 |36.176425| 200 OK SDP (g711U te | | |SIP Status 200 OK
| |(6060) <------------------ (5080) | | |
0 |40.177000| 200 OK SDP (g711U te | | |SIP Status 200 OK
| |(6060) <------------------ (5080) | | |
0 |44.178950| 200 OK SDP (g711U te | | |SIP Status 200 OK
| |(6060) <------------------ (5080) | | |
0 |48.177875| 200 OK SDP (g711U te | | |SIP Status 200 OK
| |(6060) <------------------ (5080) | | |
0 |52.179275| 200 OK SDP (g711U te | | |SIP Status 200 OK
| |(6060) <------------------ (5080) | | |
0 |56.179850| 200 OK SDP (g711U te | | |SIP Status 200 OK
| |(6060) <------------------ (5080) | | |
0 |60.180375| 200 OK SDP (g711U te | | |SIP Status 200 OK
| |(6060) <------------------ (5080) | | |
0 |60.677075| BYE | | | |SIP Request BYE CSeq:29607
| |(6060) <------------------ (5080) | | |
0 |60.765100| 200 OK | | | |SIP Status 200 OK
| |(6060) ------------------> (5080) | | |
1 |60.779300| | BYE | | |SIP Request BYE CSeq:9310
| | |(5080) ------------------> (5092) | |
1 |60.780850| | 200 OK | | |SIP Status 200 OK
| | |(5080) <------------------ (5092) | [/code]
Success:
[code]Conv.| Time | 162.213.111.21 | 172.16.XXX.79 |
| | | 172.16.XXX.50 | | 208.65.240.142 |
0 |15.032675| INVITE SDP (g711U te | | |SIP INVITE From: <sip:5145551212@208.65.240.142 To:<sip:15145551234@208.65.240.142 Call-ID:3EE9C7CE@208.72.120.66~o CSeq:161
| |(6060) ------------------> (5080) | | |
0 |15.050450| 100 Trying| | | |SIP Status 100 Trying
| |(6060) <------------------ (5080) | | |
1 |15.736675| | INVITE SDP (g711U g7 | |SIP INVITE From: <sip:5145551212@172.16.XXX.50 To:<sip:100@172.16.XXX.79 Call-ID:6b5c2431-860d-4e40-955e-18d5b1b9f0f8 CSeq:13273
| | |(5080) ------------------> (5092) | |
1 |15.738700| | 100 Trying| | |SIP Status 100 Trying
| | |(5080) <------------------ (5092) | |
1 |15.763725| | 180 Ringing | |SIP Status 180 Ringing
| | |(5080) <------------------ (5092) | |
0 |15.783200| 183 Session Progress | | |SIP Status 183 Session Progress
| |(6060) <------------------ (5080) | | |
0 |15.800550| | RTP (g711U) | |RTP, 3392 packets. Duration: 4294951.496s SSRC: 0x2C6A362D
| | |(12234) --------------------------------------> (39462) |
0 |15.908050| | RTP (g711U) | |RTP, 3393 packets. Duration: 4294951.388s SSRC: 0x7E6A1E0A
| | |(12234) <-------------------------------------- (39462) |
1 |30.596925| | 200 OK SDP (g711U g7 | |SIP Status 200 OK
| | |(5080) <------------------ (5092) | |
1 |30.607500| | ACK | | |SIP Request INVITE ACK 200 CSeq:13273
| | |(5080) ------------------> (5092) | |
0 |30.622475| 200 OK SDP (g711U te | | |SIP Status 200 OK
| |(6060) <------------------ (5080) | | |
1 |30.659700| | RTP (g711U) | |RTP, 2653 packets. Duration: 4294936.637s SSRC: 0x4563A87F
| | |(11776) ------------------> (5008) | |
0 |30.673825| ACK | | | |SIP Request INVITE ACK 200 CSeq:161
| |(6060) ------------------> (5080) | | |
1 |30.692600| | RTP (g711U) | |RTP, 2653 packets. Duration: 4294936.604s SSRC: 0x78CAEEE
| | |(11776) <------------------ (5008) | |
1 |83.689325| | BYE | | |SIP Request BYE CSeq:13274
| | |(5080) <------------------ (5092) | |
1 |83.695375| | 200 OK | | |SIP Status 200 OK
| | |(5080) ------------------> (5092) | |
0 |83.708150| BYE | | | |SIP Request BYE CSeq:23745
| |(6060) <------------------ (5080) | | |
0 |83.748750| 200 OK | | | |SIP Status 200 OK
| |(6060) ------------------> (5080) | | |
[/code]