Sending arbitrary NOTIFY messages
Has anyone gotten the magic formula down for doing this? I'm trying to send a NOTIFY to a non-registered endpoint but I can't quite get the event headers correct. I found this old commit that Tony did about 3 years ago that suggests it's possible: http://fisheye.freeswitch.org/changelog/freeswitch.git/?showid=1fa1e961e4587... If you know what the necessary headers are, or better yet, if you have a working example please let me know. And yes, I will gladly pay the wiki tax on this one. ;) Thanks, MC
Hi michael, Doesn't Notify need a subscribe? If not the remote might return Call does not exists here or sth. I had played some in the old days and eventually I made a patch http://jira.freeswitch.org/browse/FS-3802 It looks that the current notify queries the sip_registrations table so non-regged doesn't work. Attached some lua I played in the old days. they should work without the above patch, however, in n.lua I might had another patch which added an aor header(at least) so it's possible to use another remote ip but I cannot find the patch. Included a patch that similar to that. Note: all the code was I played in the old days so I don't know if they are working. Let me know if it helps. -- About: http://about.me/dujinfang Blog: http://www.dujinfang.com Proj: http://www.freeswitch.org.cn Sent with Sparrow (http://www.sparrowmailapp.com) On Saturday, June 2, 2012 at 3:18 AM, Michael Collins wrote:
Has anyone gotten the magic formula down for doing this? I'm trying to send a NOTIFY to a non-registered endpoint but I can't quite get the event headers correct. I found this old commit that Tony did about 3 years ago that suggests it's possible: http://fisheye.freeswitch.org/changelog/freeswitch.git/?showid=1fa1e961e4587...
If you know what the necessary headers are, or better yet, if you have a working example please let me know. And yes, I will gladly pay the wiki tax on this one. ;)
Thanks, MC _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org (mailto: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
Join Us At ClueCon - Aug 7-9, 2012
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org (mailto: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
it's the gratuitous notify on register for mwi Sent from my iPad On Jun 6, 2012, at 6:57 PM, Seven Du <dujinfang@gmail.com> wrote: Hi michael, Doesn't Notify need a subscribe? If not the remote might return Call does not exists here or sth. I had played some in the old days and eventually I made a patch http://jira.freeswitch.org/browse/FS-3802 It looks that the current notify queries the sip_registrations table so non-regged doesn't work. Attached some lua I played in the old days. they should work without the above patch, however, in n.lua I might had another patch which added an aor header(at least) so it's possible to use another remote ip but I cannot find the patch. Included a patch that similar to that. Note: all the code was I played in the old days so I don't know if they are working. Let me know if it helps. -- About: http://about.me/dujinfang Blog: http://www.dujinfang.com Proj: http://www.freeswitch.org.cn Sent with Sparrow <http://www.sparrowmailapp.com> On Saturday, June 2, 2012 at 3:18 AM, Michael Collins wrote: Has anyone gotten the magic formula down for doing this? I'm trying to send a NOTIFY to a non-registered endpoint but I can't quite get the event headers correct. I found this old commit that Tony did about 3 years ago that suggests it's possible: http://fisheye.freeswitch.org/changelog/freeswitch.git/?showid=1fa1e961e4587... If you know what the necessary headers are, or better yet, if you have a working example please let me know. And yes, I will gladly pay the wiki tax on this one. ;) Thanks, MC _________________________________________________________________________ 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 Join Us At ClueCon - Aug 7-9, 2012 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 <notify.tar.gz> _________________________________________________________________________ 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 Join Us At ClueCon - Aug 7-9, 2012 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 (3)
-
Brian West
-
Michael Collins
-
Seven Du