[asterisk-users] Called number changed on SNOM 821

Michael Maier m1278468 at mailbox.org
Thu Dec 30 12:13:04 CST 2021


On 28.12.21 at 21:21 Antony Stone wrote:
> On Tuesday 28 December 2021 at 20:39:37, Luca Bertoncello wrote:

[...]

>> Then I see Asterisk sends this to the phone:
>>
>> Via: SIP/2.0/UDP
>> 192.168.60.53:3072;branch=z9hG4bK-igym6msxn88p;received=192.168.60.53;rport
>> =3072
>> From: "Sekretariat" <sip:74 at 192.168.60.1>;tag=ts2ye4krhs
>> To: <sip:01773218409 at 192.168.60.1;user=phone>;tag=as32fe51ba
>> Call-ID: 313634303731393637343630373636-ex7145moy1mt
>> CSeq: 2 INVITE
>> Server: Asterisk PBX 16.2.1~dfsg-1+deb10u2
>> Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY,
>> INFO, PUBLISH, MESSAGE
>> Supported: replaces
>> Contact: <sip:01773218409 at 192.168.60.1:5060>
>> P-Asserted-Identity: "03529529874" <sip:03529529874 at 192.168.60.1>
>> Content-Length: 0
>>
>> So, it seems Asterisk receives from Deutsche Telekom _one_ "Ringing" and
>> sends the phone _two_ "Ringing", the second one with the
>> P-Asserted-Identity...
> 
> Indeed.
> 
>> Maybe help it to identify the problem?
> 
> I would look at whatever part of the dial plan is responsible for inserting
> "Sekretariat", and also check whether you have "sendrpid=yes" in sip.conf.

Well, I can see a much more strange behavior here in Asterisk 18.x / pjsip. On 
outbound calls, the 180 and 200 Ok packages sent from asterisk to the internal 
caller contain a RPID or PAI header like this one:

Remote-Party-ID: "CID:+49..(own external number)" <sip:(dialed 
number)@192.168.136.20;user=phone>;party=called;privacy=off;screen=no

It contains a mix of both, the own external number and the number initially dialed 
by the caller. I consider this pretty odd.

The dialplan is generated by FreePBX.

My internal phone ignores the RPID completely and from the PAI, it presents the 
own external number (and the dialed number isn't shown any more).

"Solution" is to disable rpid or pai completely.


Thanks
Michael



More information about the asterisk-users mailing list