Strange Channell ID!?

Hi!

I have two numbers at the same provider.
No 1: 0111111111
No 2: 0222222222

<sip.conf>

[general] register => 111111111:*******:46111111111@sip.phonzo.com/0111111111 register => 222222222:*******:46222222222@sip.phonzo.com/0222222222
If I now dial in on the 0222222222 number i get a strange channell ID that looks like the
call is comming in from the 0111111111 number with a channel ID like: SIP/46111111111-081ce7a8.

And if i dial in on 0111111111 number i get a ok cannell ID that looks like the call
is comming in from the 0111111111 number with a channell ID like: SIP/46111111111-082c3660.

Now I switch register order in the <sip.conf> file.

[general] register => 222222222:*******:46222222222@sip.phonzo.com/0222222222 register => 111111111:*******:46111111111@sip.phonzo.com/0111111111
If I now dial in on both the number the cannell ID is now as the call is comming in from
the 0222222222 number with a channell ID like: SIP/46222222222-083e5630

Why is this happening, is this normal or have I missed something???

</var/log/asterisk/messages>

[code]Executing [0222222222@phonzo_incoming:1] Set(“SIP/46111111111-081ce7a8”, “INCOMING_FROM=PHONZO”) in new stack
Executing [0222222222@phonzo_incoming:2] Set(“SIP/46111111111-081ce7a8”, “INCOMING_FOR=HELAH”) in new stack

Executing [0111111111@phonzo_incoming:1] Set(“SIP/46111111111-082c3660”, “INCOMING_FROM=PHONZO”) in new stack
Executing [0111111111@phonzo_incoming:2] Set(“SIP/46111111111-082c3660”, “INCOMING_FOR=NYPON”) in new stack[/code]

haven’t anybody seen this problem before?

Yes, I had this problem in the past, when * register multiple numbers to the same sip provider (same ip address) it will use the data of the first registration only on inbound calls, (don’t know if it’s a bug, never dig deeper because wasn’t a big problem to me, with just some dialplan magic I was able to get things works), to try know more about you could do a search at issues.asterisk.org/ to see if there is something related or send a message to the * users mailing list.

Cheers.

Marco Bruni
www.marcobruni.net

Thanks for your reply mbruin! :smile:

Now I know that I was not the only one with this problem!
It is not a big issue, but sometimes it is hard to find other problem in the log file when the ID is not the one you think!

I will do some more digging and see what I can find!

For a peer it matches incoming calls by IP address.

david55

I’m not sure I understand what you mean by

You’ve specified the other party as a peer, that means that the IP address of that party, rather than user name, etc., will be used to select the section in sip.conf.

Where have I specified the other party as a peer in my two register lines?

Do you have any idea on how I can make the channel ID different depending on witch number the call is coming in on?

I’m sure I saw that, but can’t find it now.

The contents of your peer/friend/user section is important here.

Basically you need cooperation from the other end, either to use a different IP address, or (and I’m a little hazy about whether this works) to provide a different authentication user to match against a user entry in sip.conf (I’m hazy becaue I’m not sure whether or not it is always the caller-id (From header user) that is matched to select the section).

Maybe you saw the other thread “authenticaing a user by their IP address” where it got the type as peer.

This is the outgoing for me (in sip.conf) and as you can see it’s type is friend.

[sip_phonzo-out-nypon] nat=yes type=friend secret=******** username=46111111111 fromuser=46111111111 host=sip.phonzo.com realm=phonzo.com fromdomain=phonzo.com dtmfmode=rfc2833 context=phonzo_incoming canreinvite=no qualify=yes disallow=all allow=ulaw allow=alaw insecure=port,invite
But I get the strange channel ID on incoming call.

insecure=invite, makes Asterisk match based on IP address and port.