[asterisk-users] Call pickup on channel sip with SNOM phones issue

Hans-Peter Jansen hpj at urpla.net
Mon Aug 27 10:42:37 CDT 2018


Hi,

while trying to get my new Asterisk 15.5.0 PBX replacing a 11 years old 
Asterisk 1.2.31 ISDN BPX, I'm stuck to get call pickup going as usual.	
The old one uses specific patches, IIRC...

If I interpret various sources of related information correctly, current 
Asterisk versions should support this feature out of the box.

According to http://wiki.snom.com/Category:HowTo:Call_Pickup, there are 
several ways to get this feature going. I'm enjoying  method (1) since ages, 
but I couldn't get asterisk to send the full NOTIFY xml dialog-info 
including call-id, remote and local values, although setting 

context = phones
allowsubscribe = yes
subscribecontext = phones
notifyringing = yes
notifycid = ignore-context

as well as 

callgroup = 1
pickupgroup = 1

for every local phone (all snom, mostly 360 phones) in sip.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)

but the notify looks like this:

---
  == Extension Changed 62[phones] new state Ringing for Notify User 62 
Reliably Transmitting (NAT) to 172.16.23.60:2112:
NOTIFY sip:60 at 172.16.23.60:2112 SIP/2.0
Via: SIP/2.0/UDP 172.16.4.100:5060;branch=z9hG4bK7d7c5ac4;rport
Max-Forwards: 70
From: <sip:62 at 172.16.23.8;user=phone>;tag=as72f9c98b
To: <sip:60 at 172.16.4.100>;tag=ufln5vo7x5
Contact: <sip:62 at 172.16.4.100:5060>
Call-ID: 3c94f02212d4-8we7ggt625fi
CSeq: 106 NOTIFY
User-Agent: Asterisk PBX 15.5.0
Subscription-State: active
Event: dialog
Content-Type: application/dialog-info+xml
Content-Length: 217

<?xml version="1.0"?>
<dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info" version="4" state="full" entity="sip:62 at 172.16.23.8">
<dialog id="62" direction="recipient">
<state>early</state>
</dialog>
</dialog-info>

<------------->
--- (9 headers 0 lines) ---

<--- 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=z9hG4bK7d7c5ac4;rport=5060
From: <sip:62 at 172.16.23.8;user=phone>;tag=as72f9c98b
To: <sip:60 at 172.16.4.100>;tag=ufln5vo7x5
Call-ID: 3c94f02212d4-8we7ggt625fi
CSeq: 106 NOTIFY
Content-Length: 0

SIP/60 is notified correctly, but misses the notifycid information.
I've tried both, notifycid = yes and notifycid = ignore-context of course.

*CLI> core show hints
62 at phones           : SIP/62                State:Idle            Presence:not_set         Watchers  3
61 at phones           : SIP/61                State:Idle            Presence:not_set         Watchers  2
60 at phones           : SIP/60                State:Idle            Presence:not_set         Watchers  3

*CLI> sip show subscriptions
Peer             User             Call ID          Extension        Last state     Type            Mailbox    Expiry
172.16.23.60     60               3c94f0220769-0p  61 at phones        Idle           dialog-info+xml <none>     003600
172.16.23.60     60               3c94f0220182-27  60 at phones        Idle           dialog-info+xml <none>     003600
172.16.23.62     62               313533353338323  60 at phones        Idle           dialog-info+xml <none>     003600
172.16.23.62     62               313533353338323  62 at phones        Idle           dialog-info+xml <none>     003600
172.16.23.60     60               3c94f0220d01-p2  62 at phones        Idle           dialog-info+xml <none>     003600
172.16.23.60     60               3c94f023462b-j2  60 at phones        Idle           dialog-info+xml <none>     003600
172.16.23.60     60               3c94f02212d4-8w  62 at phones        Idle           dialog-info+xml <none>     003600
172.16.23.62     62               313533353338323  61 at phones        Idle           dialog-info+xml <none>     003600

What am I missing here, any suggestions?

Cheers,
Pete




More information about the asterisk-users mailing list