On Montag, 27. August 2018 17:42:37 Hans-Peter Jansen wrote:
>
> What am I missing here, any suggestions?
>
Okay, scratch it, "notifycid = yes" must reside in the general section!
Now, it behaves as expected until:
[Aug 27 22:20:37] NOTICE[6200][C-0003]: app_directed_pickup.c:365
pickup_exec: No target channel found for 62@phones
Details:
extensions.conf:
[phones]
exten => 60,hint,SIP/60
exten => 61,hint,SIP/61
exten => 62,hint,SIP/62
exten => _60,1,Dial(SIP/60)
exten => _61,1,Dial(SIP/61)
exten => _62,1,Dial(SIP/62)
A call from external to 62 is notified to 60 three times:
First a little silly (local and remote are identical):
== Extension Changed 62[phones] new state Ringing for Notify User 60
Reliably Transmitting (NAT) to 172.16.23.60:2112:
NOTIFY sip:60@172.16.23.60:2112 SIP/2.0
Via: SIP/2.0/UDP 172.16.4.100:5060;branch=z9hG4bK2ec2ef2e;rport
Max-Forwards: 70
From: ;tag=as40973611
To: ;tag=ebsb74m178
Contact:
Call-ID: 3c95372c15b1-uz42rw4w6sy9
CSeq: 104 NOTIFY
User-Agent: Asterisk PBX 15.5.0
Subscription-State: active
Event: dialog
Content-Type: application/dialog-info+xml
Content-Length: 524
sip:62@172.16.4.100
sip:62@172.16.4.100
early
<->
Then with an entity of sip:62@172.16.23.8, which is my old asterisk, but with
correct local/remote values:
--- (7 headers 0 lines) ---
Reliably Transmitting (NAT) to 172.16.23.60:2112:
NOTIFY sip:60@172.16.23.60:2112 SIP/2.0
Via: SIP/2.0/UDP 172.16.4.100:5060;branch=z9hG4bK60e3a3a9;rport
Max-Forwards: 70
From: ;tag=as2c6b3fce
To: ;tag=mafy78cezc
Contact:
Call-ID: 3c95372c1b80-xmqzyr2cq6z2
CSeq: 105 NOTIFY
User-Agent: Asterisk PBX 15.5.0
Subscription-State: active
Event: dialog
Content-Type: application/dialog-info+xml
Content-Length: 541
sip:01721234567@172.16.4.100
sip:62@172.16.4.100
early
<->
And finally correctly:
--- (7 headers 0 lines) ---
Reliably Transmitting (NAT) to 172.16.23.60:2112:
NOTIFY sip:60@172.16.23.60:2112 SIP/2.0
Via: SIP/2.0/UDP 172.16.4.100:5060;branch=z9hG4bK6d9e9f60;rport
Max-Forwards: 70
From: ;tag=as40973611
To: ;tag=ebsb74m178
Contact:
Call-ID: 3c95372c15b1-uz42rw4w6sy9
CSeq: 105 NOTIFY
User-Agent: Asterisk PBX 15.5.0
Subscription-State: active
Event: dialog
Content-Type: application/dialog-info+xml
Content-Length: 542
sip:01721234567@172.16.4.100
sip:62@172.16.4.100
early
<->
NOTIFY Ack:
--- (11 headers 0 lines) ---
sip_route_dump: route/path hop:
-- SIP/62-0003 is ringing
<--- SIP read from UDP:172.16.23.60:2112 --->
SIP/2.0 200 Ok
Via: SIP/2.0/UDP 172.16.4.100:5060;branch=z9hG4bK6d9e9f60;rport=5060
From: ;tag=as40973611
To: ;tag=ebsb74m178
Call-ID: 3c95372c15b1-uz42rw4w6sy9
CSeq: 105 NOTIFY
Content-Length: 0
<->
60 want to take over the call:
<--- SIP read from UDP:172.16.23.60:2112 --->
INVITE sip:01721234567@172.16.4.100 SIP/2.0
Via: SIP/2.0/UDP 172.16.23.60:2112;branch=z9hG4bK-pb8ywn90vhet;rport
From: "HFO" ;tag=omy5lrfdik
To:
Call-ID: 3c953745720b-p5q7kgcj604q
CSeq: 1 INVITE
Max-Forwards: 70
Contact: ;reg-id=1
Replaces: pickup-3c95372c15b1-uz42rw4w6sy9;to-tag=as40973611;from-tag=ebsb74m178
P-Key-Flags: resolution="31x13", keys="4"
User-Agent: snom360/7.3.30
Accept: application/sdp
Allow: INVITE, ACK, CANCEL, BYE, REFER, OPTIONS, NOTIFY, SUBSCRIBE, PRACK,
MESSAGE, INFO
Allow-Events: talk, hold, refer, call-info
Supported: timer, 100rel, replaces, from-change
Session-Expires: 3600;refresher=uas
Min-SE: 90
Content-Type: application/sdp
Content-Length: 452
<->
Unauthorized:
--- (19 headers 18 lines) ---
Sending to 172.16.23.60:2112 (NAT)
[Aug 27 22:20:37] NOTICE[6200][C-0003]: chan_sip.c:26269
handle_request_invite: Trying to pick up 62@phones
Sending to 172.16.23.60:2112 (NAT)
Using INVITE request as basis request - 3c953745720b-p5q7kgcj604q
Found peer '60' for '60' from 172.16.23.60:2112
<--- Reliably Transmitting (NAT) to 172.16.23.60:2112 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP
172.16.23.60:2112;branch=z9hG4bK-pb8ywn90vhet;received=172.16.23.60;rport=2112
From: "HFO" ;tag=omy5lrfdik
To: ;tag=as36a783db
Call-ID: 3c953745720b-p5q7kgcj604q
CSeq: 1 INVITE
Server: Asterisk PBX 15.5.0
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO,
PUBLISH, MESSAGE
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="5835824d"
Content-Length: 0
<>
Ahh, okay
<--- SIP read from UDP:172.16.23.60:2112 --->
ACK sip:01721234567@172.16.4.100 SIP/2.0
Via: SIP/2.0/UDP 172.16.23.60:2112;branch=z9hG4bK-pb8ywn90vhet;rport
From: "HFO" ;tag=omy5lrfdik
To: ;tag=as36a783db
Call-ID: 3c953745720b-p5q7kgcj604q
CSeq: 1 ACK
Max-Forwards: 70
Contact: ;reg-id=1
Content-Length: 0
<->
You want auth, you get auth:
<--- SIP read from UDP:172.16.23.60:2112 --->
INVITE sip:01721234567@172.16.4.100 SIP/2.0
Via: SIP/2.0/UDP 172.16.23.60:2112;branch=z9hG4bK-zbjhw9im94ce;rport
From: "HFO" ;tag=omy5lrfdik
To:
Call-ID: