sendevent PRESENCE_IN
I have tried the wiki page https://wiki.freeswitch.org/wiki/PRESENCE_IN_event_example suggests with telnet to my event socket. I sent auth <redacted>. Then I sent: sendevent PRESENCE_IN proto: sip from: 220@<redacted>.com login: 220@<redacted>.com event_type: presence alt_event_type: dialog Presence-Call-Direction: outbound answer-state: confirmed I get back: Content-Type: command/reply Reply-Text: +OK 5c5423dd-4c88-4fa8-b5c9-8445e8d69bae I don't even see a sip packet being sent in my logfile with sofia global siptrace on Any ideas what I am missing?
Guessing <redacted>.com isn’t an alias on the profile? otherwise you would need to say profile: so it knows what profile to send it out. -- Brian West brian@freeswitch.org Twitter: @FreeSWITCH , @briankwest http://www.freeswitchbook.com http://www.freeswitchcookbook.com T: +1.918.420.9001 | F: +1.918.420.9002 | M: +1.918.424.WEST iNUM: +883 5100 1420 9001 ISN: 410*543 Skype:briankwest PGP Key: http://www.bkw.org/key.txt (AB93356707C76CED) On Jun 23, 2014, at 3:41 PM, Sean Devoy <sdevoy@bizfocused.com> wrote:
<redacted>.com
Thanks Brian. Please confirm, my phone registers to 220@xyz.dom.com<mailto:220@xyz.dom.com> through a port that is sofia profile external, should I have profile: external and leave 220@xyz.domain.com<mailto:220@xyz.domain.com>? I have it setup as multi-tennant, if that matters. Thanks again, Sean From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Brian West Sent: Monday, June 23, 2014 5:07 PM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] sendevent PRESENCE_IN Guessing <redacted>.com isn't an alias on the profile? otherwise you would need to say profile: so it knows what profile to send it out. -- Brian West brian@freeswitch.org<mailto:brian@freeswitch.org> [cid:image001.png@01CF8FAC.A148E690] Twitter: @FreeSWITCH , @briankwest http://www.freeswitchbook.com http://www.freeswitchcookbook.com T: +1.918.420.9001 | F: +1.918.420.9002 | M: +1.918.424.WEST iNUM: +883 5100 1420 9001 ISN: 410*543 Skype:briankwest PGP Key: http://www.bkw.org/key.txt (AB93356707C76CED) On Jun 23, 2014, at 3:41 PM, Sean Devoy <sdevoy@bizfocused.com<mailto:sdevoy@bizfocused.com>> wrote: <redacted>.com
Make sure your domains are properly aliased to the profile otherwise it won’t find the proper profile to send the notify out. I would have to double check but I’m pretty sure you might be missing this element. -- Brian West brian@freeswitch.org Twitter: @FreeSWITCH , @briankwest http://www.freeswitchbook.com http://www.freeswitchcookbook.com T: +1.918.420.9001 | F: +1.918.420.9002 | M: +1.918.424.WEST iNUM: +883 5100 1420 9001 ISN: 410*543 Skype:briankwest PGP Key: http://www.bkw.org/key.txt (AB93356707C76CED) On Jun 24, 2014, at 12:03 PM, Sean Devoy <sdevoy@bizfocused.com> wrote:
Thanks Brian.
Please confirm, my phone registers to 220@xyz.dom.com through a port that is sofia profile external, should I have profile: external and leave 220@xyz.domain.com?
I have it setup as multi-tennant, if that matters.
Thanks again, Sean
OK, no redacting here .... fs_bfis.bizfocused.com is aliased to external sofia status profile external user 220@fs_bfis.bizfocused.com Registrations: ================================================================================================= Call-ID: bc443fed-451b172@192.168.1.32 User: 220@fs_bfis.bizfocused.com Contact: "BFIS Line1" <sip:220@68.54.94.72:5063;fs_nat=yes> Agent: Cisco/SPA504G-7.5.5 Status: Registered(AUTO-NAT)(unknown) EXP(2014-06-24 17:23:56) EXPSECS(77) Host: fs_bfis.bizfocused.com IP: 68.54.94.72 Port: 5063 Auth-User: 220 Auth-Realm: fs_bfis.bizfocused.com MWI-Account: 220@voicemail_BFIS Total items returned: 1 telnet into port 8021 and authenticate, then send exactly this with 2 <enters> at the end: sendevent PRESENCE_IN proto: sip from: 220@fs_bfis.bizfocused.com login: 220@fs_bfis.bizfocused.com profile: external event_type: presence alt_event_type: dialog Presence-Call-Direction: outbound answer-state: confirmed sofia global siptrace on logfile shows NO packets with 220 in them!! What am I missing??? Thanks, Sean From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Brian West Sent: Tuesday, June 24, 2014 1:16 PM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] sendevent PRESENCE_IN Make sure your domains are properly aliased to the profile otherwise it won't find the proper profile to send the notify out. I would have to double check but I'm pretty sure you might be missing this element. -- Brian West brian@freeswitch.org<mailto:brian@freeswitch.org> [cid:image001.png@01CF8FD1.67D19900] Twitter: @FreeSWITCH , @briankwest http://www.freeswitchbook.com http://www.freeswitchcookbook.com T: +1.918.420.9001 | F: +1.918.420.9002 | M: +1.918.424.WEST iNUM: +883 5100 1420 9001 ISN: 410*543 Skype:briankwest PGP Key: http://www.bkw.org/key.txt (AB93356707C76CED) On Jun 24, 2014, at 12:03 PM, Sean Devoy <sdevoy@bizfocused.com<mailto:sdevoy@bizfocused.com>> wrote: Thanks Brian. Please confirm, my phone registers to 220@xyz.dom.com<mailto:220@xyz.dom.com> through a port that is sofia profile external, should I have profile: external and leave 220@xyz.domain.com<mailto:220@xyz.domain.com>? I have it setup as multi-tennant, if that matters. Thanks again, Sean
Bump ... Nothing? From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Sean Devoy Sent: Tuesday, June 24, 2014 5:26 PM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] sendevent PRESENCE_IN OK, no redacting here .... fs_bfis.bizfocused.com is aliased to external sofia status profile external user 220@fs_bfis.bizfocused.com<mailto:220@fs_bfis.bizfocused.com> Registrations: ================================================================================================= Call-ID: bc443fed-451b172@192.168.1.32<mailto:bc443fed-451b172@192.168.1.32> User: 220@fs_bfis.bizfocused.com<mailto:220@fs_bfis.bizfocused.com> Contact: "BFIS Line1" <sip:220@68.54.94.72:5063;fs_nat=yes> Agent: Cisco/SPA504G-7.5.5 Status: Registered(AUTO-NAT)(unknown) EXP(2014-06-24 17:23:56) EXPSECS(77) Host: fs_bfis.bizfocused.com IP: 68.54.94.72 Port: 5063 Auth-User: 220 Auth-Realm: fs_bfis.bizfocused.com MWI-Account: 220@voicemail_BFIS Total items returned: 1 telnet into port 8021 and authenticate, then send exactly this with 2 <enters> at the end: sendevent PRESENCE_IN proto: sip from: 220@fs_bfis.bizfocused.com<mailto:220@fs_bfis.bizfocused.com> login: 220@fs_bfis.bizfocused.com<mailto:220@fs_bfis.bizfocused.com> profile: external event_type: presence alt_event_type: dialog Presence-Call-Direction: outbound answer-state: confirmed sofia global siptrace on logfile shows NO packets with 220 in them!! What am I missing??? Thanks, Sean From: freeswitch-users-bounces@lists.freeswitch.org<mailto:freeswitch-users-bounces@lists.freeswitch.org> [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Brian West Sent: Tuesday, June 24, 2014 1:16 PM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] sendevent PRESENCE_IN Make sure your domains are properly aliased to the profile otherwise it won't find the proper profile to send the notify out. I would have to double check but I'm pretty sure you might be missing this element. -- Brian West brian@freeswitch.org<mailto:brian@freeswitch.org> [cid:image001.png@01CF90B6.C8503120] Twitter: @FreeSWITCH , @briankwest http://www.freeswitchbook.com http://www.freeswitchcookbook.com T: +1.918.420.9001 | F: +1.918.420.9002 | M: +1.918.424.WEST iNUM: +883 5100 1420 9001 ISN: 410*543 Skype:briankwest PGP Key: http://www.bkw.org/key.txt (AB93356707C76CED) On Jun 24, 2014, at 12:03 PM, Sean Devoy <sdevoy@bizfocused.com<mailto:sdevoy@bizfocused.com>> wrote: Thanks Brian. Please confirm, my phone registers to 220@xyz.dom.com<mailto:220@xyz.dom.com> through a port that is sofia profile external, should I have profile: external and leave 220@xyz.domain.com<mailto:220@xyz.domain.com>? I have it setup as multi-tennant, if that matters. Thanks again, Sean
Look at the code for what it needs, it's MESSAGE_NOTIFY if I recall Sent from my iPhone
On Jun 25, 2014, at 7:48 PM, Sean Devoy <sdevoy@bizfocused.com> wrote:
Bump …
Nothing?
From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Sean Devoy Sent: Tuesday, June 24, 2014 5:26 PM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] sendevent PRESENCE_IN
OK, no redacting here ….
fs_bfis.bizfocused.com is aliased to external
sofia status profile external user 220@fs_bfis.bizfocused.com Registrations: ================================================================================================= Call-ID: bc443fed-451b172@192.168.1.32 User: 220@fs_bfis.bizfocused.com Contact: "BFIS Line1" <sip:220@68.54.94.72:5063;fs_nat=yes> Agent: Cisco/SPA504G-7.5.5 Status: Registered(AUTO-NAT)(unknown) EXP(2014-06-24 17:23:56) EXPSECS(77) Host: fs_bfis.bizfocused.com IP: 68.54.94.72 Port: 5063 Auth-User: 220 Auth-Realm: fs_bfis.bizfocused.com MWI-Account: 220@voicemail_BFIS
Total items returned: 1
telnet into port 8021 and authenticate, then send exactly this with 2 <enters> at the end: sendevent PRESENCE_IN proto: sip from: 220@fs_bfis.bizfocused.com login: 220@fs_bfis.bizfocused.com profile: external event_type: presence alt_event_type: dialog Presence-Call-Direction: outbound answer-state: confirmed
sofia global siptrace on logfile shows NO packets with 220 in them!!
What am I missing???
Thanks, Sean
From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Brian West Sent: Tuesday, June 24, 2014 1:16 PM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] sendevent PRESENCE_IN
Make sure your domains are properly aliased to the profile otherwise it won’t find the proper profile to send the notify out. I would have to double check but I’m pretty sure you might be missing this element.
-- Brian West brian@freeswitch.org
<image001.png>
Twitter: @FreeSWITCH , @briankwest http://www.freeswitchbook.com http://www.freeswitchcookbook.com
T: +1.918.420.9001 | F: +1.918.420.9002 | M: +1.918.424.WEST iNUM: +883 5100 1420 9001 ISN: 410*543 Skype:briankwest PGP Key: http://www.bkw.org/key.txt (AB93356707C76CED)
On Jun 24, 2014, at 12:03 PM, Sean Devoy <sdevoy@bizfocused.com> wrote:
Thanks Brian.
Please confirm, my phone registers to 220@xyz.dom.com through a port that is sofia profile external, should I have profile: external and leave 220@xyz.domain.com?
I have it setup as multi-tennant, if that matters.
Thanks again, Sean
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
SWITCH_EVENT_NOTIFY in mod_sofia.c Sent from my iPhone
On Jun 25, 2014, at 7:48 PM, Sean Devoy <sdevoy@bizfocused.com> wrote:
Bump …
Nothing?
From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Sean Devoy Sent: Tuesday, June 24, 2014 5:26 PM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] sendevent PRESENCE_IN
OK, no redacting here ….
fs_bfis.bizfocused.com is aliased to external
sofia status profile external user 220@fs_bfis.bizfocused.com Registrations: ================================================================================================= Call-ID: bc443fed-451b172@192.168.1.32 User: 220@fs_bfis.bizfocused.com Contact: "BFIS Line1" <sip:220@68.54.94.72:5063;fs_nat=yes> Agent: Cisco/SPA504G-7.5.5 Status: Registered(AUTO-NAT)(unknown) EXP(2014-06-24 17:23:56) EXPSECS(77) Host: fs_bfis.bizfocused.com IP: 68.54.94.72 Port: 5063 Auth-User: 220 Auth-Realm: fs_bfis.bizfocused.com MWI-Account: 220@voicemail_BFIS
Total items returned: 1
telnet into port 8021 and authenticate, then send exactly this with 2 <enters> at the end: sendevent PRESENCE_IN proto: sip from: 220@fs_bfis.bizfocused.com login: 220@fs_bfis.bizfocused.com profile: external event_type: presence alt_event_type: dialog Presence-Call-Direction: outbound answer-state: confirmed
sofia global siptrace on logfile shows NO packets with 220 in them!!
What am I missing???
Thanks, Sean
From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Brian West Sent: Tuesday, June 24, 2014 1:16 PM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] sendevent PRESENCE_IN
Make sure your domains are properly aliased to the profile otherwise it won’t find the proper profile to send the notify out. I would have to double check but I’m pretty sure you might be missing this element.
-- Brian West brian@freeswitch.org
<image001.png>
Twitter: @FreeSWITCH , @briankwest http://www.freeswitchbook.com http://www.freeswitchcookbook.com
T: +1.918.420.9001 | F: +1.918.420.9002 | M: +1.918.424.WEST iNUM: +883 5100 1420 9001 ISN: 410*543 Skype:briankwest PGP Key: http://www.bkw.org/key.txt (AB93356707C76CED)
On Jun 24, 2014, at 12:03 PM, Sean Devoy <sdevoy@bizfocused.com> wrote:
Thanks Brian.
Please confirm, my phone registers to 220@xyz.dom.com through a port that is sofia profile external, should I have profile: external and leave 220@xyz.domain.com?
I have it setup as multi-tennant, if that matters.
Thanks again, Sean
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (2)
-
Brian West
-
Sean Devoy