Telephone icon indicating copy to clipboard operation
Telephone copied to clipboard

Resolving numbers to a contact sometimes changes address dialed

Open chadselph opened this issue 8 years ago • 5 comments

(Feel free to re-name this ticket to a name that makes more sense to you. I don't know all the terminology.)

Suppose I have a contact in my address book with the number +1 555 123 4567. Then, suppose I want to use a specific SIP trunking account to place a call, if I type: sip:[email protected]. When I initiate the call, the app actually resolves this to the above contact and changes my call to Contact Name <+15551234567> and doesn't use mysiptrunk.com.

I know this is probably an edge case, but it would be nice for this functionality to be possible. My current work-around is to remove the +1 from my contact and then add it back afterwards. I'm on version 1.2.6.

chadselph avatar Feb 15 '17 22:02 chadselph

Right, the host part is being stripped off during the contact matching phase. I’ll need to dive deeper into the question if it was done on purpose or by accident. In the meantime, could you tell me if configuring a separate account in Telephone for another trunk with the corresponding domain name that is used by default in such cases would be a solution for you? As I see it, In this case you won’t need to manually type in the trunk’s domain name, but rather just pick the right account window in the app.

eofster avatar Feb 20 '17 11:02 eofster

Yeah, it might be possible, I need to learn some SIP terminology and then play with the settings.

The server I'm using for trunking doesn't have registration, so the UI won't go "Available". I tried creating an account with Service-1 as the "Registry Server" and Service-2 as the "Domain" but this didn't work either.

I realize it's not a normal usage pattern, I'm mostly just playing around to learn about SIP.

chadselph avatar Feb 21 '17 00:02 chadselph

Also, I can't quite figure out exactly when it does matching and when it doesn't. It seems like a call sometimes triggers the match, but other times it just uses the full address.

chadselph avatar Feb 21 '17 00:02 chadselph

If each of your servers doesn’t make any difference between the domain part of the SIP address it expects and the server’s hostname that should be used as a Registrar, than you don’t have to fill out the Registrar field in Telephone. The Registrar’s hostname will be taken from the Domain field.

What I had in mind is that you configure two accounts in Telephone: one with Service-1 domain, another one with Service-2 domain and leave Registrar fields empty if they match their corresponding domains. Then, when calling, you never specify the host past in Telephone’s call destination field, but rather pick the appropriate account window.

The matching is normally triggered automatically by the text field on certain events. This includes explicit events like pressing the Return button, but also the events when the window becomes active. You might have seen it working (not stripping out the host part) when SIP address you were typing in didn’t match any address book records. In this case it should work as you originally expected it to.

eofster avatar Feb 21 '17 09:02 eofster

Service-2 doesn't have SIP registration, so while I can send INVITEs to it, I can't get the Telephone UI to see it as online/Available

chadselph avatar Feb 21 '17 23:02 chadselph