[Freeswitch-users] NOTIFY event not sent to user

Tim St. Pierre fs-list at communicatefreely.net
Sat Jul 9 04:22:57 MSD 2011


I guess call ID really matters.

Once I set the call ID to the subscription I wanted, it worked.

I had to add a little extra code that looked up the call IDs from the 
sip_registrations table first, then issued a NOTIFY to each one 
individually.



Tim St. Pierre wrote:
> I may have made some progress here, but I'm coming up on additional issues.
>
> If I add a Call-ID header to the event that matches the subscription, it 
> works.  This is a bit of a pain.  Any way to make it send to all the 
> registrations for that user?
>
> Also, in the resulting notify, I get this extra line:
>
> Subscription-State:terminated;reason=timeout
>
> Any way to disable that?  The phone comes back with "Bad Event", and I 
> wonder if that header has something to do with it.
>
> Thanks!
>
> -Tim
>
> Tim St. Pierre wrote:
>   
>> Hello,
>>
>> I'm trying to send notify events to Aastra phones for screen pops and 
>> that sort of thing.  I'm triggering the event using ESL from a PHP 
>> script.  If I subscribe to the NOTIFY events on fs_cli, I can see my 
>> event coming in quite nicely, but nothing gets sent to the phone.  I am 
>> doing a packet capture between the phone and Freeswitch, and although I 
>> can see all the regular call setup and MWI packets, I don't get my 
>> notify packets coming through.
>>
>> Here's the event as it is seen on fs_cli:
>>
>> RECV EVENT
>> Core-UUID: c8db9457-8e51-e011-8f26-001517ac7a54
>> FreeSWITCH-Hostname: stefan.151front.communicatefreely.net
>> FreeSWITCH-IPv4: 66.207.200.21
>> FreeSWITCH-IPv6: ::1
>> Event-Date-Local: 2011-07-06 15:08:28
>> Event-Date-GMT: Wed, 06 Jul 2011 19:08:28 GMT
>> Event-Date-Timestamp: 1309979308360046
>> Event-Calling-File: mod_event_socket.c
>> Event-Calling-Function: read_packet
>> Event-Calling-Line-Number: 1131
>> Command: sendevent NOTIFY
>> Event-Name: NOTIFY
>> profile: internal
>> event-string: aastra-xml
>> user: 5101 at communicatefreely.net
>> host: stefan.151front.communicatefreely.net
>> content-type: application/xml
>> Content-Length: 223
>> Content-Length: 223
>>
>> <AastraIPPhoneStatus Beep="yes" triggerDestroyOnExit="no">
>>         <Session>1</Session>
>>         <Message Index="test" Type="alert" Timeout="15">
>>                 Hello, anyone there?
>>         </Message>
>> </AastraIPPhoneStatus>
>>
>> freeswitch at default>
>>
>> Just for background, if I do sofia status profile internal user 
>> 5101 at communicatefreely.net I get all the details about the phone, and 
>> the username and hostname's match what's in the packet above.
>>
>> Any suggestions?
>>
>>
>> _______________________________________________
>> Join us at ClueCon 2011, Aug 9-11, Chicago
>> http://www.cluecon.com 877-7-4ACLUE
>>
>> 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 2011, Aug 9-11, Chicago
> http://www.cluecon.com 877-7-4ACLUE
>
> 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
>   




More information about the FreeSWITCH-users mailing list