Hi all,
I'm trying to get UniFi Talk working with a Deutsche Telekom CompanyFlex SIP trunk (business product, not a normal MagentaZuhause line) and I'm stuck.
Setup: UDR7 on 6.0.17, Talk 5.4.8, unlocked Talk phone. DrayTek Vigor 167 as a bridge in front, PPPoE runs on the UDR7. Static signaling port 6767 is enabled, firewall allows 6767 from Telekom's 217.0.0.0/8, codec set to PCMA.
The built-in "Deutsche Telekom" template uses tel.t-online.de as proxy, which doesn't work for CompanyFlex. CompanyFlex gives you a customer-specific outbound proxy like <id>.primary.companyflex.de, but that name only has _sip._tcp SRV records and no A record. With it in the proxy field, Talk didn't send anything at all.
So I put the IP of the SRV target in directly, with ;transport=tcp. That at least got a REGISTER out over TCP, but Talk uses the phone number as the AOR and Telekom answers:
f:<sip:+49331XXXXXXXX@tel.t-online.de>
m:<sip:gw+DeutscheTelekom.1.49331XXXXXXXX@<public-ip>:6767;transport=udp;gw=...>
→ 403 Wrong Service
Then I entered the CompanyFlex registration number as the phone number instead. Telekom accepts that, but now complains about the Contact:
f:<sip:+4919929600000XXXXXX@tel.t-online.de>
m:<sip:gw+DeutscheTelekom.1.4919929600000XXXXXX@<public-ip>:6767;transport=udp;gw=...>
→ 403 Wrong Contact format see 1TR119
What stands out is that the REGISTER goes out over TCP, but the Contact still says transport=udp. And as far as I know, CompanyFlex (spec 1TR119) wants a trunk-style Contact (RFC 6140 / bnc). I can't find a way to change either in Talk.
So, a couple of questions:
• Is the Telekom template supposed to work with CompanyFlex at all, or only with consumer lines?
• Is there a way to control the Contact header / transport through custom fields?
• Has anyone actually got CompanyFlex running with Talk?
If it's simply not supported, consider this a feature request. CompanyFlex is basically Telekom's standard business trunk in Germany now, so I doubt I'm the only one running into this.
Happy to share anonymized captures if that helps.
Thanks!