Park function on Panasonic SIP phone

I am trying to set the call park function on the Panasonic Japanese phone.
According to Panasonic manual, we need to implement to the Astersisk some code to blink the green button which we push the park button.

In that manual, I can see their sample code of this dialog event example as follwos.

But I don’t know how to implement thisfeature on the astersik.

Could you tell me the step procedure of this way?
Thank you.

Dialog event (RFC4235) message example

SUBSCRIBE sip:701@192.168.0.11:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.0.251:5060;branch=z9hG4bKs2e4ed397f
Max-Forwards:70
Call-ID 8a36c313-1a519516b1903e2c5f840080f0c5725b@192.168.0.251
From:sip:6035@192.168.0.11;tag=3146697803
To:sip701@192.168.0.11
CSeq:2 SUBSCRIBE
Authentication: Digest realm=!asterisk",nonce=“527fb862”,algorithm=MD5,uri=“sip:701@192.168.0.11:5060”,
username=“6035”,response="e544b11bb5ec4ea59859ed3a445"
Allow:INVITE,ACK,CANCEL,BYE,INFO,UPDATE,OPTIONS,NOTIFY,REFER
Accept:application/dialog-info+xml
Contact:sip:6035@192.168.0.251:5060
Expires:3600
Event:dialog ----> Highlighted
User-Agent: Panasonic_KX-UT136/01.062(0080f0c5725b)
Content-Length:0



NOTIFY sip:6035@192.168.0.251:5060 SIP/2.0
Via:SIP/2.0/UDP 192.168.0.11:5060;branch=z9hG4bK35bd3a16
Max-Forwards:70
From:<sip:701@192.168.0.11:5060;branch=z9hG4K35bd3a16
MAX-Forwards: 70
From:sip:701@192.168.0.11;tag=as7f3a3808
To:sip:6035@192.168.0.11;tag=3146697803
Contact:<sip:701@192.168.0.11:5060
Call-ID:8a36c313-1a519516b1903e2c5f840080f0c5725b@192.168.0.251
Cseq:102 NOTIFY
User-Agent: Astersik PBX 10.0.0-beta1
Subscription-state: active
Event: dialog ----> Highlighted
Content-type: application/dialog-info+xml
Content-Length:202

<?xml version="1.0"?><dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info" version="0" state="full"

entity="sip:701@192.168.0.11">terminated ----> Highlighted


state value, Park, source
terminated, turn off, RFC4235
early, - , RFC4235
confirmed Red RFC4235
I-use Green Panasonic original

1 Like

If you setup a parking lot with a hint then it should work.

Here is how I have my parking configured on my Asterisk 13.7.0 box:

My res_parking.conf has this entry in it:

[parkinglot_kiniston]
context => parkedcalls_kiniston
parkext => 7800
parkpos => 7801-7809
findslot => first
parkext_exclusive=yes 
parkinghints=yes
comebacktoorigin=yes
parkingtime=300
parkedcalltransfers=both
parkedcallreparking=both
parkedcallrecording=both
parkedcallhangup=both

And my Extensions.conf looks like this:

exten => _780Z,1,ExecIf($["${EXTENSION_STATE(${EXTEN}@parkedcalls_kiniston)}" = "INUSE"]?ParkedCall(,${EXTEN}))
exten => _780Z,n,Set(PARKINGEXTEN=${EXTEN})
exten => _780Z,n,Park(parkinglot_kiniston,t(300)c(kiniston-operator,0,1))

exten => _780Z,hint,park:${EXTEN}@parkedcalls_kiniston

If I use the ‘Call Park’ feature on my Yealink phone with a Value of 7801 the call gets parked and the light changes colours to show the lot is in use.

Note this is a custom setup, You may get exactly what you need by creating a parking lot in your res_parking.conf and setting the context there to be the context your phone resides in, Then you wouldn’t need the extensions.conf entries that I use.