PJSIP: incoming call is matched to another identify?

Hi all,

i have several phone numbers from my provider.
Here is the excerpt of my pjsip_wizard.conf which shows how I configure them:

[telekom-template](!)
type = wizard
transport = transport-udp

sends_auth = yes
sends_registrations = yes
remote_hosts = tel.t-online.de

endpoint/allow=!all,g722,alaw,ulaw,g729,gsm
endpoint/context=incoming
endpoint/from_domain=tel.t-online.de
endpoint/dtmf_mode=rfc4733
endpoint/direct_media=no

aor/qualify_frequency = 60
aor/contact=sip:tel.t-online.de
aor/default_expiration=585

registration/retry_interval = 60
registration/server_uri=sip:tel.t-online.de
registration/forbidden_retry_interval=120
registration/expiration=480

endpoint/rewrite_contact=yes
endpoint/rtp_symmetric=yes


[t012345](telekom-template)
outbound_auth/username = 012345
outbound_auth/password = mysecret
registration/client_uri=sip:+4912345@tel.t-online.de
registration/contact_user=t012345
endpoint/from_user=012345

[t054321](telekom-template)
outbound_auth/username = 054321
outbound_auth/password = mysecret
registration/client_uri=sip:+4954321@tel.t-online.de
registration/contact_user=t054321
endpoint/from_user=054321

What I have now is not really a “problem” in a sense that something doesn’t work, but more e

The Asterisk works fine, inbound calls for both different numbers are matched right in a sense that in the dialplan, the right exten is called.

But incoming calls apparently are no matter what matched to the first identity, which I can tell by the fact that the “CallId” Asterisk generates starts in each and every case with “t012345”, even when a call for “+4954321” is received.

Am I right in assuming that the CallId is first generated by looking at the first matching identify-section?

CallID is opaque and you should not try to decompose it, even if it is obvious how it was constructed.

So, in other words, you are saying me “Don’t worry how it looks, just treat as some kind of ID”? :slight_smile:

Yes. The only requirement on CallID, is that, as far as possible, no two calls, across both space and time, should have the same CallID.