[Freeswitch-users] Sending NOTIFY with perl ESL

Kelly McDonald kelly at fammcdonald.net
Wed Jun 12 06:03:13 MSD 2013


Just to follow up on an email from Jun 24 2012:

Vallamamod was trying to set BLF fields from ESL, and hadn't quite got it - I was having the same problems, so I PM'd him to see if he had figured it out and he had.

Based on the code that he sent me, I was successfully able to alter the BLF on a Yealink phone.

here is my raw text from a ESL session using telnet (well- almost raw, - I prefixed all responses from freeswitch  or telnet with a >)



telnet localhost 8021
>Trying 127.0.0.1...
>Connected to localhost.
>Escape character is '^]'.
>Content-Type: auth/request
>
auth ClueCon

>Content-Type: command/reply
>Reply-Text: +OK accepted
>
sendevent PRESENCE_IN
proto: sip
from: 6001 at 192.168.1.99
login: 6001 at 192.168.1.99
event_type: presence
alt_event_type: dialog
event_count: 1
unique-id: kpmtest1
Presence-Call-Direction: outbound
Answer-State: early

>Content-Type: command/reply
>Reply-Text: +OK a4e12f2a-d2c3-11e2-9598-1170e5c1ad37

-----------------------------------------------------
This changed the light - For Answer-State you can also use confirmed and terminated

Thanks to Vallimamod for his help.

Kelly




Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list