[Freeswitch-users] Notify message: Event: talk not working?

Gerald Weber gerald.weber at besharp.at
Mon Nov 25 10:34:18 MSK 2013


Are you sure the phones do support this event ?

As far as i know only Phoner Lite supports it (after enabling it in the config)

Snom or Bria for example are ignoring this completely...
(We have only Snoms here and i had the same problem. Thats why i wrote a patch for mod_snom
so ist possible to simulate a keypress via a http request)

regards,
gw

-----Ursprüngliche Nachricht-----
Von: freeswitch-users-bounces at lists.freeswitch.org [mailto:freeswitch-users-bounces at lists.freeswitch.org] Im Auftrag von Peter Steinbach
Gesendet: Sonntag, 24. November 2013 21:17
An: FreeSWITCH Users Help
Betreff: Re: [Freeswitch-users] Notify message: Event: talk not working?

I just upgraded to newest git to confirm that the problem still persists.

I still have
  Subscription-State: terminated;reason=noresource.
when sending a Notify talk event to the phone.

Nobody has a clue about this? How do you remotely answer a physical phone?

Best regrads
Peter


On 11/20/13 18:34, Peter Steinbach wrote:
> Hello,
>
> I tried to remotely anwer physical phones, which are in RINGING state, 
> via event-socket. But the phones are not answering (tried Yealink an 
> Aastra, see below).
>
>
> I send via event-socket
>
> sendevent NOTIFY.
> profile: internal.
> event-string: talk.
> user: 200.
> host: my.domain.com.
> content-type: application/simple-message-summary.
> State: ACTIVE
>
> I also set the "State" as described in 
> http://wiki.freeswitch.org/wiki/Mod_event_socket#sendevent
>
> The following SIP is exchanged then (here Yealink):
>
> NOTIFY sip:200 at 192.168.1.129:5062 SIP/2.0.
>
> Via: SIP/2.0/UDP 192.168.1.220;rport;branch=z9hG4bKy8arj9a0SXNZN.
>
> Max-Forwards: 70.
>
> From: <sip:200 at my.domain.com>;tag=515t5XNrSKFQF.
>
> To: <sip:200 at my.domain.com>.
>
> Call-ID: c74eacdc-cca4-1231-c19a-b3a15c58d7e1.
>
> CSeq: 52146637 NOTIFY.
>
> Contact: <sip:mod_sofia at 192.168.1.220:5060>.
>
> User-Agent: Freeswitch.
>
> Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE.
>
> Supported: timer, precondition, path, replaces.
>
> Event: talk.
>
> Allow-Events: talk, hold, conference, presence, as-feature-event, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer.
>
> Subscription-State: terminated;reason=noresource.
>
> Content-Type: application/simple-message-summary.
>
> Content-Length: 0.
>
> SIP/2.0 200 OK.
>
> Via: SIP/2.0/UDP 192.168.1.220;rport;branch=z9hG4bKy8arj9a0SXNZN.
>
> From: <sip:200 at my.domain.com>;tag=515t5XNrSKFQF.
>
> To: <sip:200 at my.domain.com>;tag=669161475.
>
> Call-ID: c74eacdc-cca4-1231-c19a-b3a15c58d7e1.
>
> CSeq: 52146637 NOTIFY.
>
> User-Agent: Yealink SIP-T38G 38.70.0.125.
>
> Content-Length: 0.
>
> The call was not answered however and the Rsyslog does not show an 
> entry to this message.
>
>
> I then tried an Aastra 6739i Phone and got the following:
>
> NOTIFY sip:208 at 192.168.1.118:5060;transport=udp SIP/2.0.
>
> Via: SIP/2.0/UDP 192.168.1.220;rport;branch=z9hG4bKpeya6gXmHa3rr.
>
> Max-Forwards: 70.
>
> From: <sip:208 at my.domain.com>;tag=SXXjXe2S7De0K.
>
> To: <sip:208 at my.domain.com>.
>
> Call-ID: 835658b2-cca1-1231-c19a-b3a15c58d7e1.
>
> CSeq: 52145935 NOTIFY.
>
> Contact: <sip:mod_sofia at 192.168.1.220:5060>.
>
> User-Agent: Freeswitch.
>
> Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE.
>
> Supported: timer, precondition, path, replaces.
>
> Event: talk.
>
> Allow-Events: talk, hold, conference, presence, as-feature-event, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer.
>
> Subscription-State: terminated;reason=noresource.
>
> Content-Type: application/simple-message-summary.
>
> Content-Length: 0.
>
> .
>
> SIP/2.0 489 Bad Event.
>
> Via: SIP/2.0/UDP 192.168.1.220;rport=5060;branch=z9hG4bKpeya6gXmHa3rr;received=192.168.1.220.
>
> From: <sip:208 at my.domain.com>;tag=SXXjXe2S7De0K.
>
> To: <sip:208 at my.domain.com>;tag=891443321.
>
> Call-ID: 835658b2-cca1-1231-c19a-b3a15c58d7e1.
>
> CSeq: 52145935 NOTIFY.
>
> Server: Aastra 6739i/3.2.2.2044.
>
> Content-Length: 0.
>
>
>
> Aastra shows me in rsyslog:
>
> 00:53:57.550000 : (SIP) INFO: EvOnPacketReceived: CSipEngine::, Packet 
> do not match an existing Dialog, method: 6
>
> 00:53:57.550000 : (SIP) FUNC: OnPacketReceived: 
> CSipGenericRequest(0x821DBC60)
>
> 00:53:57.550000 : (SIP) FUNC: EvInvalidNotify: 
> CSipSubscribeEventDispatcher(0x821DC770) Reason 8002c405: Enter
>
>
> So I think, the Subscription-State may not be right, so
>
> Subscription-State: active
>
> might be better, right?
>
> mod_sofia.c, around line 1429 (as of 23-Oct-2013) should set this to 
> "active" as far as I can see, but this is not the case here.
>
> But how can I solve this? Maybe there is another way?
>
>


--
With kind regards
Peter Steinbach 

Telefaks Services GmbH
mailto:lists (att) telefaks.de
Internet: www.telefaks.de


_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting at freeswitch.org
http://www.freeswitchsolutions.com

 

Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org



Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-users mailing list